{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Handler.UnmarshalCaddyfile (cyclomatic 255): Handler.UnmarshalCaddyfile has cyclomatic complexity 255 (threshold 15). Of this number, 244 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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a420ddf454e62c824abf919fdf970a0a3a8708a370f4f87ec30c6c9db293b45"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerType.serversFromPairings (cyclomatic 131): ServerType.serversFromPairings has cyclomatic complexity 131 (threshold 15). Of this number, 114 points are the body\u0027s own statements and 17 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"3316d8e3fdf62cee31262b4622a4b0508e34fb2f2a3304ae1c7947a4a61a295e"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerType.buildTLSApp (cyclomatic 124): ServerType.buildTLSApp has cyclomatic complexity 124 (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":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36cf045e48fd50ce80d9599a7e4871eed7193f501d36581092222e0880a8154"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.parseTLS (cyclomatic 121): httpcaddyfile.parseTLS has cyclomatic complexity 121 (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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"455624b01ef5792c4f54ca59b67a6b3dc66ec11342a70ab5547b59528c5dc340"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPTransport.UnmarshalCaddyfile (cyclomatic 104): HTTPTransport.UnmarshalCaddyfile has cyclomatic complexity 104 (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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"243f228e987e8097e1d32e4ddd9f1acdf3d70cbb8efbbb3f5ddd18c4c0a99cb7"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.unmarshalCaddyfileServerOptions (cyclomatic 100): httpcaddyfile.unmarshalCaddyfileServerOptions has cyclomatic complexity 100 (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":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"babc218f992725a79445d0643eecd4f4957f440905262133d624dbec5267fab5"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.addHTTPVarsToReplacer (cyclomatic 95): caddyhttp.addHTTPVarsToReplacer has cyclomatic complexity 95 (threshold 15). Most of this is not in the body itself: 1 of the 95 points is its own statement and the rest belongs to one function literal inside it that branches (line 62). 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":"modules/caddyhttp/replacer.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"67aeec4f3fe7104dab1d156f669ea58ff0c4a22e3b9e390e29c58d4a8597b0ba"}},{"ruleId":"D1","level":"warning","message":{"text":"lexer.next (cyclomatic 93): lexer.next has cyclomatic complexity 93 (threshold 15). Of this number, 92 points are the body\u0027s own statements and 1 belongs 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":"caddyconfig/caddyfile/lexer.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0effdbb9604f467a228cee4ab7e5c0cb5df82b3a8a6e09698f8cd2c58a1a033"}},{"ruleId":"D1","level":"warning","message":{"text":"App.automaticHTTPSPhase1 (cyclomatic 78): App.automaticHTTPSPhase1 has cyclomatic complexity 78 (threshold 15). Of this number, 65 points are the body\u0027s own statements and 13 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":"modules/caddyhttp/autohttps.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca30a72d1762067621235da8ed06c957942add3b3c8c3b0e63d5c536ed7782d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ACMEIssuer.UnmarshalCaddyfile (cyclomatic 77): ACMEIssuer.UnmarshalCaddyfile has cyclomatic complexity 77 (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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2266c3f3ad1dd335107984374d17a7815938be083c665c84528826399b8ba82"}},{"ruleId":"D1","level":"warning","message":{"text":"FileServer.ServeHTTP (cyclomatic 74): FileServer.ServeHTTP has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ddd42c44329446069c07a827e37d0d6a4380e61149809d7ebee9550c4327dc"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.consolidateConnPolicies (cyclomatic 68): httpcaddyfile.consolidateConnPolicies has cyclomatic complexity 68 (threshold 15). Of this number, 67 points are the body\u0027s own statements and 1 belongs 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc3459cd767ddb547d313a3af9d90602a551f5a1df71c77289cfb80d764be09"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerType.Setup (cyclomatic 68): ServerType.Setup has cyclomatic complexity 68 (threshold 15). Of this number, 63 points are the body\u0027s own statements and 5 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dc01b3b5d34d3a0f812a6620c7ecb6ae63de6b17f2bf7c1e7ad5094f6a7053"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPTransport.NewTransport (cyclomatic 64): HTTPTransport.NewTransport has cyclomatic complexity 64 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 26 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":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ec2549f4ca002deb56389b8ce0b86835e889d4e3ebfaf141b80932c1fdf510"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.parseLogHelper (cyclomatic 63): httpcaddyfile.parseLogHelper has cyclomatic complexity 63 (threshold 15). Of this number, 62 points are the body\u0027s own statements and 1 belongs 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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"5782427fcee5890ee15f6d06b1d0284bd1cd9e66a982c1e9e8eee3071de3fe16"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyfile.formatTokens (cyclomatic 60): caddyfile.formatTokens has cyclomatic complexity 60 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 1 belongs 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":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e407ec3b899a62b5f5658ec30f04c42368c1bfc4fe03839ce25ebf13a8290f"}},{"ruleId":"D1","level":"warning","message":{"text":"MatchFile.selectFile (cyclomatic 59): MatchFile.selectFile has cyclomatic complexity 59 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 22 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":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d2f138eeb2565065eb9eac4d94450c39f727d7197a3d55f3ae7f5fbcd0854d"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.celMatchLiteral (cyclomatic 57): caddyhttp.celMatchLiteral has cyclomatic complexity 57 (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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"147d9399b3105f020c374f929ca8d915117a17a597108e78b3eb3726faa56211"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.fillInGlobalACMEDefaults (cyclomatic 55): httpcaddyfile.fillInGlobalACMEDefaults has cyclomatic complexity 55 (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":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef14c336ef4b11901613d36917f3e2a506ed2043615702a20e66b789f234005"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.doImport (cyclomatic 50): parser.doImport has cyclomatic complexity 50 (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":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e087fea575bd66d5324a1a1a4f4ad2c3a566fc443a7568b26f09966414d8cf7"}},{"ruleId":"D1","level":"warning","message":{"text":"App.Provision (cyclomatic 50): App.Provision has cyclomatic complexity 50 (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":"modules/caddyhttp/app.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b5ce42f1bc4120468a72ba5880f7849585dc73b8c91c1b3eeba19913c348c7"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.Provision (cyclomatic 49): Handler.Provision has cyclomatic complexity 49 (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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"4582d38441c754da58bcfbebaa64dc57f146441d78ebc9a4c57456fa924302ed"}},{"ruleId":"D1","level":"warning","message":{"text":"reverseproxy.cmdReverseProxy (cyclomatic 48): reverseproxy.cmdReverseProxy has cyclomatic complexity 48 (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":"modules/caddyhttp/reverseproxy/command.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ad316101db1d0e9d0273fc1b1ac3f9ce7b8679ceff829d666c8e0d4f3c5c4e"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.ServeHTTP (cyclomatic 48): Server.ServeHTTP has cyclomatic complexity 48 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 6 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":"modules/caddyhttp/server.go"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d2284ea00486c929da67c864cdcfd5f3b1fc1facf775a6f7e524942686c0c6"}},{"ruleId":"D1","level":"warning","message":{"text":"FileWriter.UnmarshalCaddyfile (cyclomatic 46): FileWriter.UnmarshalCaddyfile has cyclomatic complexity 46 (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":"modules/logging/filewriter.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1c801a761b7d6477709f5c8a2d193a80f8784209fba6d6a100e87c3558c557"}},{"ruleId":"D1","level":"warning","message":{"text":"FileServer.UnmarshalCaddyfile (cyclomatic 45): FileServer.UnmarshalCaddyfile has cyclomatic complexity 45 (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":"modules/caddyhttp/fileserver/caddyfile.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc84311433605e154dc828c06346f3003ce28f49fb0da0806af3669df0653701"}},{"ruleId":"D1","level":"warning","message":{"text":"TLS.Provision (cyclomatic 45): TLS.Provision has cyclomatic complexity 45 (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":"modules/caddytls/tls.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd54a694de817e19c4b9156413d084acb8988ed3c29a7172b45102872515cd84"}},{"ruleId":"D1","level":"warning","message":{"text":"caddy.unsyncedConfigAccess (cyclomatic 44): caddy.unsyncedConfigAccess has cyclomatic complexity 44 (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":"admin.go"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c106d825f3ef86a894e50c6f30b3feceaf12b1b291296cc321e9a28c4584733e"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewrite.Rewrite (cyclomatic 44): Rewrite.Rewrite has cyclomatic complexity 44 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 2 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":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8fa1e17d6fea752d4161f1ed083eb8a1affc3ae89ce11921a2d28c2371c484"}},{"ruleId":"D1","level":"warning","message":{"text":"TLS.publishECHConfigs (cyclomatic 44): TLS.publishECHConfigs has cyclomatic complexity 44 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 3 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":"modules/caddytls/ech.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e40e15a3116dc2718d96b040f7666f368eeffb4ff46845aa4ff78cc6fe136c3"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.parsePKIApp (cyclomatic 42): httpcaddyfile.parsePKIApp has cyclomatic complexity 42 (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":"caddyconfig/httpcaddyfile/pkiapp.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b67da89cd71c5f0d92266c28c231b23945e55aa1b7c7374fa9f045372abb8e1"}},{"ruleId":"D1","level":"warning","message":{"text":"App.createAutomationPolicies (cyclomatic 39): App.createAutomationPolicies has cyclomatic complexity 39 (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":"modules/caddyhttp/autohttps.go"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1a135977318b2be7e43bc31312dc3dc15913396fcb5828a8c52e96f80fe7fb"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.getTLSReplacement (cyclomatic 37): caddyhttp.getTLSReplacement has cyclomatic complexity 37 (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":"modules/caddyhttp/replacer.go"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a42593f395a377502afecef50dbb83a0408cfc2a0e8a07144f7d7a601e0e346"}},{"ruleId":"D1","level":"warning","message":{"text":"App.Start (cyclomatic 37): App.Start has cyclomatic complexity 37 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 1 belongs 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":"modules/caddyhttp/app.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dfc03560fce3ac18970485071001254751f6cbb7244511c8709dd91b4e487c"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.cmdFmt (cyclomatic 35): caddycmd.cmdFmt has cyclomatic complexity 35 (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":"cmd/commandfuncs.go"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e799bf24a03dd4b1b2021cb243095b23f30abee6a9dff93e2af7282ca42ab8e"}},{"ruleId":"D1","level":"warning","message":{"text":"fastcgi.parsePHPFastCGI (cyclomatic 35): fastcgi.parsePHPFastCGI has cyclomatic complexity 35 (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":"modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dac2c346db89c630b769b98edae9f335f873ea7a716e91fd0e318d7aaaf8ba6"}},{"ruleId":"D1","level":"warning","message":{"text":"Transport.buildEnv (cyclomatic 35): Transport.buildEnv has cyclomatic complexity 35 (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":"modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f8ef31b40913b9a1fd4e72c2d78835cd44fab894911725b221f0382c938168"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionPolicy.UnmarshalCaddyfile (cyclomatic 35): ConnectionPolicy.UnmarshalCaddyfile has cyclomatic complexity 35 (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":"modules/caddytls/connpolicy.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"93397a6abdb0804e8c4bb0b1ec6007386f6b056e2b06a7be9198240de9fb830c"}},{"ruleId":"D1","level":"warning","message":{"text":"HeaderOps.ApplyTo (cyclomatic 34): HeaderOps.ApplyTo has cyclomatic complexity 34 (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":"modules/caddyhttp/headers/headers.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d289e8a935ba0645af9b47b4e3201d0cc632fedfd94e0e286df3fabf96386bc0"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.doActiveHealthCheck (cyclomatic 34): Handler.doActiveHealthCheck has cyclomatic complexity 34 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 9 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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e94b62aae108ad326391bf64f9c7ccfd59e5d6b0151bf08da91d02e0b05781"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.serveHTTP (cyclomatic 33): Server.serveHTTP has cyclomatic complexity 33 (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":"modules/caddyhttp/server.go"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a6fdb6fdc7d020f9bf72ff53a71770db4a73b305658abc23683079cd94f29c"}},{"ruleId":"D1","level":"warning","message":{"text":"TLSConfig.MakeTLSClientConfig (cyclomatic 32): TLSConfig.MakeTLSClientConfig has cyclomatic complexity 32 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 3 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":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"6200c2ddfe44d75f0a1c71e14296ca4bbb12b94f49878502433fccf663c562d0"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.proxyLoopIteration (cyclomatic 32): Handler.proxyLoopIteration has cyclomatic complexity 32 (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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a16043380ed5ce295c222ed4b99f80ed77dba3a72da16d54f4d4e7e2d7b7156"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.cmdRespond (cyclomatic 31): caddyhttp.cmdRespond 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":"modules/caddyhttp/staticresp.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2283631fe8e1e4f795dea43f7a366ccf9e756cf3754fce975dd55af7e748d0"}},{"ruleId":"D1","level":"warning","message":{"text":"ACMEIssuer.Provision (cyclomatic 31): ACMEIssuer.Provision 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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"88860b4f5aabe181d41913e43f66a3183435237ad4be0cac304a2879f1ef4ffa"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.cmdRun (cyclomatic 30): caddycmd.cmdRun has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs 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":"cmd/commandfuncs.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"1762220dfcec6840bf5d3f63c9735a856d8159d247130a9091e10d3db50bc1ff"}},{"ruleId":"D1","level":"warning","message":{"text":"acmeserver.parseACMEServer (cyclomatic 30): acmeserver.parseACMEServer has cyclomatic complexity 30 (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":"modules/caddypki/acmeserver/caddyfile.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"09855f56caadee217b5fa67f741de30e19b27df4b84754f4d0115004c968ca5d"}},{"ruleId":"D1","level":"warning","message":{"text":"ZeroSSLIssuer.UnmarshalCaddyfile (cyclomatic 30): ZeroSSLIssuer.UnmarshalCaddyfile has cyclomatic complexity 30 (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":"modules/caddytls/zerosslissuer.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b02ccb0e646b99cc35955ddd8af43a136420ac65099a435ec177ffe4eeb2c5"}},{"ruleId":"D1","level":"warning","message":{"text":"App.stop (cyclomatic 29): App.stop has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 14 of the 29 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 803, 785, 893). 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":"modules/caddyhttp/app.go"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1aff8ffc9f1d6fd02f82b084c8e707ef6b6e745d1eb0f4cb2b67264a17fc34"}},{"ruleId":"D1","level":"warning","message":{"text":"FileServer.Provision (cyclomatic 29): FileServer.Provision has cyclomatic complexity 29 (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":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"69326fc746e5d1e676f8fd2738adfeefaac90fa06c06d99384865de173e9045e"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.prepareRequest (cyclomatic 29): Handler.prepareRequest has cyclomatic complexity 29 (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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e670b3c51aa537d80032bb7b3c96721cb90a4c41d78ec0eeffdaad8612ca41"}},{"ruleId":"D1","level":"warning","message":{"text":"AUpstreams.UnmarshalCaddyfile (cyclomatic 29): AUpstreams.UnmarshalCaddyfile has cyclomatic complexity 29 (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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ab549e9c57a5591b29cdfee1b6a0070abf1e3b7d73aefe58fd76bb73b28aff"}},{"ruleId":"D1","level":"warning","message":{"text":"TLS.Start (cyclomatic 29): TLS.Start has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 14 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 443). 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":"modules/caddytls/tls.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"47717753975db0db6eb546bf17d6ff1164c74fe20ff4c67458aaaab3d109e534"}},{"ruleId":"D1","level":"warning","message":{"text":"FileWriter.OpenWriter (cyclomatic 29): FileWriter.OpenWriter has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 1 belongs 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":"modules/logging/filewriter.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"85181c166d499af05b20de41e8286e8e2be79e44fa3c4c29caa96c08e6d2e953"}},{"ruleId":"D1","level":"warning","message":{"text":"reverseproxy.parseUpstreamDialAddress (cyclomatic 28): reverseproxy.parseUpstreamDialAddress 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":"modules/caddyhttp/reverseproxy/addresses.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e15270c1f0d0d9fc9eb6418c763ec42920a3166b8363279859c9c2f97643295"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.handleUpgradeResponse (cyclomatic 28): Handler.handleUpgradeResponse has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 3 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":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"373db4961d94d3c36c189c1907565f265651900cefb182bfbe53f18330d471f5"}},{"ruleId":"D1","level":"warning","message":{"text":"SRVUpstreams.UnmarshalCaddyfile (cyclomatic 28): SRVUpstreams.UnmarshalCaddyfile 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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"f304b7fc6210bb9e9cbd5826c4c2b1504f21e91c064f9f3312de378cb3d190ba"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionPolicy.buildStandardTLSConfig (cyclomatic 28): ConnectionPolicy.buildStandardTLSConfig has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 3 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":"modules/caddytls/connpolicy.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbc85d8b06eef1296ded67faae16fd8d6b148d40cd97c27a30d21a4b29ae2b4"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientAuthentication.UnmarshalCaddyfile (cyclomatic 28): ClientAuthentication.UnmarshalCaddyfile 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":"modules/caddytls/connpolicy.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0fecee192c26eeb04c0c4fbe0e5fcdb6a0266ac0fccfa1c8af2c5853a4cd2e"}},{"ruleId":"D1","level":"warning","message":{"text":"Replacer.replace (cyclomatic 28): Replacer.replace 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":"replacer.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97abbaf24a06cbb057691409397e5311326f1079eb2ba8ab07412e30b566e4d"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.consolidateAutomationPolicies (cyclomatic 27): httpcaddyfile.consolidateAutomationPolicies has cyclomatic complexity 27 (threshold 15). Of this number, 25 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":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7e9010b679734c83466f1a8c6e1a4f8f5cf8d929a1bb726970f073e9291c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.finalizeResponse (cyclomatic 27): Handler.finalizeResponse has cyclomatic complexity 27 (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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cb4a1d1076eca8fdeac4b7e93a14f4a9dbb63d4b4421b2b1f1e9c4af365630"}},{"ruleId":"D1","level":"warning","message":{"text":"LogEncoderConfig.ZapcoreEncoderConfig (cyclomatic 27): LogEncoderConfig.ZapcoreEncoderConfig has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. 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":"modules/logging/encoders.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dd5830017e5d229d21354765fd513d7ba188d347e5a406ab5bcdedebc57736"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.cmdListModules (cyclomatic 26): caddycmd.cmdListModules has cyclomatic complexity 26 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 8 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":"cmd/commandfuncs.go"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"470ffabd60fe8982d44c83d3405d8254044884bb47c77e4aeaf3c746d018ea13"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.ServeHTTP (cyclomatic 26): Handler.ServeHTTP 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce4bc0c841bf57693df59ba8ac7a06a53c2ccf59e109a5aa2197675282d2b03"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.reverseProxy (cyclomatic 26): Handler.reverseProxy has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c64ddbfada22f8d3d73f123d03db808ad884160ae5c5b0f1b840b8126b4ae5"}},{"ruleId":"D1","level":"warning","message":{"text":"caddy.Version (cyclomatic 25): caddy.Version has cyclomatic complexity 25 (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":"caddy.go"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"693ca489eb172ca73532d1809caaf5f4c3db470fb7eeda5f95ecb1d544c2893b"}},{"ruleId":"D1","level":"warning","message":{"text":"FileServer.serveBrowse (cyclomatic 25): FileServer.serveBrowse has cyclomatic complexity 25 (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":"modules/caddyhttp/fileserver/browse.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2d32ced2b2ae397db7bcb6dce6df0ad316816abf75d1dc0dffad3f4ef0df66"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationPolicy.makeCertMagicConfig (cyclomatic 25): AutomationPolicy.makeCertMagicConfig has cyclomatic complexity 25 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 12 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":"modules/caddytls/automation.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b4b6ba2b65023d49cbaa2c7203e4dd099dbea12400ddbdac0bf7a6d1db5c97"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomLog.loggerAllowed (cyclomatic 24): CustomLog.loggerAllowed has cyclomatic complexity 24 (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":"logging.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"458e14aefb2bbcdce43d19426cfdc7aa9c80c32b6e8d9f78332c48a46cdb53b1"}},{"ruleId":"D1","level":"warning","message":{"text":"App.Emit (cyclomatic 24): App.Emit has cyclomatic complexity 24 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 9 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":"modules/caddyevents/app.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d62b80657b9f26ee60c59de2e6ddaf2476895a88457472678022d53d725d6ff"}},{"ruleId":"D1","level":"warning","message":{"text":"echConfig.UnmarshalBinary (cyclomatic 24): echConfig.UnmarshalBinary has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1f0678a881735d4eb165edca872b7a749eb0140cbf847b67418fd6499b890f"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerType.listenersForServerBlockAddress (cyclomatic 23): ServerType.listenersForServerBlockAddress 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":"caddyconfig/httpcaddyfile/addresses.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"368eea5b31800f4dd56e475ee9c38f6a23c5e85ba081bacf971fcb0653e7a8e6"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.loadConfigWithLogger (cyclomatic 23): caddycmd.loadConfigWithLogger 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":"cmd/main.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7f51ffca11e7ab0d28c16b1f7eb73695895b803b570f003fe02a413e21b8d7"}},{"ruleId":"D1","level":"warning","message":{"text":"Context.LoadModule (cyclomatic 23): Context.LoadModule 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":"context.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01b802b2d3f140e48445072bebb2564989bf70e567090d5439db8ee676fdc57"}},{"ruleId":"D1","level":"warning","message":{"text":"headers.parseCaddyfile (cyclomatic 23): headers.parseCaddyfile has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs 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":"modules/caddyhttp/headers/caddyfile.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"116b32aea2835b95ebcee2f473dade6d945bbda2941db5f083133bd8e6706714"}},{"ruleId":"D1","level":"warning","message":{"text":"ECH.rotateECHKeys (cyclomatic 23): ECH.rotateECHKeys has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 3 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":"modules/caddytls/ech.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c4323af9bf50dbd2f4505083bd74d7e9ff8d4538b461d0dc18bd421d822b0b"}},{"ruleId":"D1","level":"warning","message":{"text":"caddy.replaceRemoteAdminServer (cyclomatic 22): caddy.replaceRemoteAdminServer has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 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":"admin.go"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f152257b00a10ab9aef524fe03720ec726e69ecba0bb6aa30c0e51a327faef95"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.newBaseAutomationPolicy (cyclomatic 22): httpcaddyfile.newBaseAutomationPolicy has cyclomatic complexity 22 (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":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"9056619ce3223c85952df621583b7213560130d1adaa0de0c8e278dcccc13381"}},{"ruleId":"D1","level":"warning","message":{"text":"Transport.UnmarshalCaddyfile (cyclomatic 22): Transport.UnmarshalCaddyfile 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":"modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"59df49c4246c5b8d2c6a22453056fc6932c9210c4ce2e281db42bb83177253e8"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.addForwardedHeaders (cyclomatic 22): Handler.addForwardedHeaders 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2a0dacf407bebe985bd65c05a33d0e362a66cc42cdd56cd78b30455a4d8a1d"}},{"ruleId":"D1","level":"warning","message":{"text":"StaticResponse.ServeHTTP (cyclomatic 22): StaticResponse.ServeHTTP 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":"modules/caddyhttp/staticresp.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb65262afab9ed111fa1722144fdde51ce581a648286f355da9c78bb1026694"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionPolicies.TLSConfig (cyclomatic 22): ConnectionPolicies.TLSConfig has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee00b3b25d0f805a1a16995e651526f72a7c9ad3a6be67160c6b45411562daa"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyfile.isSingleUnbracedSite (cyclomatic 21): caddyfile.isSingleUnbracedSite 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":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f5de84e5a457d058a3b4be761d9ed26ba6689c9fd01cf1f91e5d7d4f1f7338"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerType.buildPKIApp (cyclomatic 21): ServerType.buildPKIApp 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":"caddyconfig/httpcaddyfile/pkiapp.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b288d4ce693e4f2af85d8b4f39762d9b400cd3770ac970618f4d740274debf"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.cmdImportStorage (cyclomatic 21): caddycmd.cmdImportStorage 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":"cmd/storagefuncs.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94137c50e6aec996e25c165cbe5f50cab25551318c65aa817891a730e54382a"}},{"ruleId":"D1","level":"warning","message":{"text":"forwardauth.parseCaddyfile (cyclomatic 21): forwardauth.parseCaddyfile 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":"modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e979a9270837de6463529d0118f02a66329daac293160ba2c49530e734b0ad57"}},{"ruleId":"D1","level":"warning","message":{"text":"LoadBalancing.tryAgain (cyclomatic 21): LoadBalancing.tryAgain 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"58733b18117046dddbb5e98db1eab9be13ddcbeb6356d19112df1a87fee2c263"}},{"ruleId":"D1","level":"warning","message":{"text":"CA.Provision (cyclomatic 21): CA.Provision 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":"modules/caddypki/ca.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f06d0fa4f7fe7a49b20f2dcaecb37913ece680a747ac041eb95107ca89fd3a"}},{"ruleId":"D1","level":"warning","message":{"text":"FilterEncoder.UnmarshalCaddyfile (cyclomatic 21): FilterEncoder.UnmarshalCaddyfile has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 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":"modules/logging/filterencoder.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8318f54d12ea2d3914cd8e801646b7e52738f9a19063f897d711af5c8750af12"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerType.compileEncodedMatcherSets (cyclomatic 20): ServerType.compileEncodedMatcherSets has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c031ba42769c191b9aab42349088693d554f4f42fcc6134db3b7315ec721c19d"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.cmdExportStorage (cyclomatic 20): caddycmd.cmdExportStorage has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/storagefuncs.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f494e5c5fe49b0f8ff4a53cb8c982fd708d8c22bbc93fb412f4217d7373d68bf"}},{"ruleId":"D1","level":"warning","message":{"text":"rewrite.parseCaddyfileURI (cyclomatic 20): rewrite.parseCaddyfileURI has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/rewrite/caddyfile.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7211f2d2d52a00f9c755866548e8344e08f3aefb19a3313fb4782a7f9835a8f"}},{"ruleId":"D1","level":"warning","message":{"text":"queryOps.do (cyclomatic 20): queryOps.do has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a89b3f55c3a2b271b3f864d065e71cdc1ee2031ee336c8f11acd1fda6c473f"}},{"ruleId":"D1","level":"warning","message":{"text":"caddy.changeConfig (cyclomatic 19): caddy.changeConfig has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddy.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c57f04602668e137a8399deb1e185d8bbec27278bc08f9412087375649d8b15"}},{"ruleId":"D1","level":"warning","message":{"text":"caddy.finishSettingUp (cyclomatic 19): caddy.finishSettingUp has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 9 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":"caddy.go"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d6f07a0aee0b114e3bbd8b099711e48d25b31f88f50504c5d98527d5812967"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.addresses (cyclomatic 19): parser.addresses has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c1c82e42e1655f7083d005e4f2909da2129fb1740e95b496d495c696e160be"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.detectConflictingSchemes (cyclomatic 19): httpcaddyfile.detectConflictingSchemes has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"104473fae7a5798b50f8ec930d8fda1d9ec2b6a064c360aa5500d673379e5245"}},{"ruleId":"D1","level":"warning","message":{"text":"Context.LoadModuleByID (cyclomatic 19): Context.LoadModuleByID has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs 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":"context.go"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdcb771448c90520192a33e66b606f80fc3090213ce4205bfbc26c5dc8794f4"}},{"ruleId":"D1","level":"warning","message":{"text":"browseTemplateContext.applySortAndLimit (cyclomatic 19): browseTemplateContext.applySortAndLimit has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browsetplcontext.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fce2c4cb5006b3f8e896610ed2ac871cda8588b8394cd04a896fd9817800ed"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.doActiveHealthCheckForAllHosts (cyclomatic 19): Handler.doActiveHealthCheckForAllHosts has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 299). 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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a6fa54c56e36005b72a34a0197276269f4136dc5dd78ee770ae92cf3b0d715"}},{"ruleId":"D1","level":"warning","message":{"text":"caddytls.tlsCertFromCertAndKeyPEMBundle (cyclomatic 19): caddytls.tlsCertFromCertAndKeyPEMBundle has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/folderloader.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"197b76b315642e3b3b26fb9790c09276d666110bb5a46c32e19f5f70b01f7489"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationPolicy.Provision (cyclomatic 19): AutomationPolicy.Provision has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/automation.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"15569cb11ff6240a68de69f01df9348d1097aeeeb3c7062a603e165a7056f1e2"}},{"ruleId":"D1","level":"warning","message":{"text":"TLS.cleanStorageUnits (cyclomatic 19): TLS.cleanStorageUnits has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"37288b3e8fbd19b100eb12331891fc4f0943a99904dca6b707bd04a794fb1c63"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.directive (cyclomatic 18): parser.directive 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":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34b2668eff5a073cc70b7fea96dd783228afde7e2475c6c60e291b4b2507eff"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerType.evaluateGlobalOptionsBlock (cyclomatic 18): ServerType.evaluateGlobalOptionsBlock 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4b163bcbb5e3e0f06b296f653611f1aad644c4576568817455a03f41802bd6"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.cmdStart (cyclomatic 18): caddycmd.cmdStart has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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":"cmd/commandfuncs.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7c75fb072a1260d59cf21445c30e69d2e3eaf155b792ba09d872e7de24f33d"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.atomicReplaceFormattedFile (cyclomatic 18): caddycmd.atomicReplaceFormattedFile has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"cmd/commandfuncs.go"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"957bd9cfd3d304b1cdaade56bd3f8b67b94c948cd9805a3b39b87e0157357d26"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.CleanPath (cyclomatic 18): caddyhttp.CleanPath 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":"modules/caddyhttp/caddyhttp.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bd2f4f6ac7bfd10b5b53d3e658f4d9fc16120ad25a6c4b5559db6e387be66b"}},{"ruleId":"D1","level":"warning","message":{"text":"fileserver.cmdFileServer (cyclomatic 18): fileserver.cmdFileServer 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":"modules/caddyhttp/fileserver/command.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9171867b968f0dc7a9bf486802468b5759d3ec8c84e407a097c6688e691285e3"}},{"ruleId":"D1","level":"warning","message":{"text":"FileServer.directoryListing (cyclomatic 18): FileServer.directoryListing 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":"modules/caddyhttp/fileserver/browsetplcontext.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a95426492ea6a960be8f4cfd768f5198aadd798432cfca4e59ce3b1fa51528"}},{"ruleId":"D1","level":"warning","message":{"text":"Intercept.ServeHTTP (cyclomatic 18): Intercept.ServeHTTP has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 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":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"004904cbfc23989b59ef53442b7abd24595a00c9934c63941a5753ab0f80ffd1"}},{"ruleId":"D1","level":"warning","message":{"text":"MatchPath.matchPatternWithEscapeSequence (cyclomatic 18): MatchPath.matchPatternWithEscapeSequence 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":"modules/caddyhttp/matchers.go"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b7be414760e24ee4128215109d433cb7264dc08e1013c3fcb7e375a8a78a13"}},{"ruleId":"D1","level":"warning","message":{"text":"ActiveHealthChecks.Provision (cyclomatic 18): ActiveHealthChecks.Provision has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bcb10eb7e243f3160915707349fa8a6240969baea6a76a644d60317e7f4944"}},{"ruleId":"D1","level":"warning","message":{"text":"rewrite.buildQueryString (cyclomatic 18): rewrite.buildQueryString has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 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":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"310c53efe97a3200aae73c42e8060c7cce49fba5a570ea3ef29450e316bf3522"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.logRequest (cyclomatic 18): Server.logRequest 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":"modules/caddyhttp/server.go"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca0c5deed73fe2e1bcf4bd63c42e000c93a90cedca369565dbe8c5740ae078b"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomCertSelectionPolicy.UnmarshalCaddyfile (cyclomatic 18): CustomCertSelectionPolicy.UnmarshalCaddyfile 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":"modules/caddytls/certselection.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"35223a5fc1778bb332d8d0d2e7f8c4c52fb789e89d4ca22698c45c6f9541c8e0"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientAuthentication.ConfigureTLSConfig (cyclomatic 18): ClientAuthentication.ConfigureTLSConfig 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":"modules/caddytls/connpolicy.go"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c2cb5ba3560f9a366e8420c1a507adfa99a5459f88ddd0cf9c42b1b46df5fd"}},{"ruleId":"D1","level":"warning","message":{"text":"caddy.unsyncedDecodeAndRun (cyclomatic 17): caddy.unsyncedDecodeAndRun 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":"caddy.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4404446b5d1893ef05809666b4fcdb0493ce572ec2ef72e1477d074d9d91809f"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.CELMatcherDecorator (cyclomatic 17): caddyhttp.CELMatcherDecorator has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 575). 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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c77a45a9c404a859734f37aa1ea8871aab0402547422c37a1f9d5afc1848f76"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.matchHeaders (cyclomatic 17): caddyhttp.matchHeaders 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":"modules/caddyhttp/matchers.go"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"084cec4da79c9c7e15837009a2a67b9b3f069af261536a7243331827e3f2bd93"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyauth.cmdHashPassword (cyclomatic 17): caddyauth.cmdHashPassword 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":"modules/caddyhttp/caddyauth/command.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"50206337d8192ee6e60f04b0e5e74c36ad9ca04a20ef7c7a35129fbb8c142f93"}},{"ruleId":"D1","level":"warning","message":{"text":"headers.applyHeaderOp (cyclomatic 17): headers.applyHeaderOp 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":"modules/caddyhttp/headers/caddyfile.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab480fd229b92df5bbb6920270d42897f05fcfbe496359dbfc953b3bf90da60a"}},{"ruleId":"D1","level":"warning","message":{"text":"MatchPath.MatchWithError (cyclomatic 17): MatchPath.MatchWithError 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":"modules/caddyhttp/matchers.go"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ef3dcdc494a116d567c307aaf703dd90a5fd2238df75763e2c8754a0cddbd3"}},{"ruleId":"D1","level":"warning","message":{"text":"timeouts.parseCaddyfile (cyclomatic 17): timeouts.parseCaddyfile 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":"modules/caddyhttp/timeouts/caddyfile.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"958ec4d83704a0b56fde31b95cc1cce7decf6e7b4c4b716aa451ea7ba716c191"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteAdmin.enforceAccessControls (cyclomatic 16): RemoteAdmin.enforceAccessControls has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b8f84afbd114ebad9fc47cdd2a434fe6f180e98d4b932352ec0d082f602a69"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.sortRoutes (cyclomatic 16): httpcaddyfile.sortRoutes has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 470). 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":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9025b29d9f2e4f018abce763a7b12b11b441a9f6dd0af364468207b22fbddf3"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.appendSubrouteToRouteList (cyclomatic 16): httpcaddyfile.appendSubrouteToRouteList has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2ea6cd5613db1da70fb056b0a601ab1416dcf572a6c67a798e03d17718d876"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.buildSubroute (cyclomatic 16): httpcaddyfile.buildSubroute has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0195692fc52a8b6f7c0b57ab8c174daf963fd89e52015db28f295fe6245eab"}},{"ruleId":"D1","level":"warning","message":{"text":"httpcaddyfile.parseOptOnDemand (cyclomatic 16): httpcaddyfile.parseOptOnDemand has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/options.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4abfc68bc731fcbf8b04c977d403d3f183733545ef061c4f9da26aedf4da73"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.cmdAdaptConfig (cyclomatic 16): caddycmd.cmdAdaptConfig 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":"cmd/commandfuncs.go"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb1ea790f7c5cbc5bce0d85885690c8e335b95c5b693280746cce143e1f1bda"}},{"ruleId":"D1","level":"warning","message":{"text":"caddycmd.parseEnvFile (cyclomatic 16): caddycmd.parseEnvFile has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/main.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d653b0228b5400638f8e75648189923b296c32360f8156c5f38ab3114084783"}},{"ruleId":"D1","level":"warning","message":{"text":"caddyhttp.CELValueToMapStrList (cyclomatic 16): caddyhttp.CELValueToMapStrList has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c233a9187dcc92f63a79d952ff590dc81be49c490d7732c8480bffe9665060f"}},{"ruleId":"D1","level":"warning","message":{"text":"Encode.UnmarshalCaddyfile (cyclomatic 16): Encode.UnmarshalCaddyfile has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/encode/caddyfile.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d107b5017d172124201ee929904e01dedcf89d6accfe7bec6dfb70d76780fec"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomCertSelectionPolicy.SelectCertificate (cyclomatic 16): CustomCertSelectionPolicy.SelectCertificate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/certselection.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de97923070ba44988729427edeb8cdc81e2d426ffaa99d177410067e3424b8d"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.UnmarshalCaddyfile (cognitive 559): Handler.UnmarshalCaddyfile has cognitive complexity 559 (threshold 15). Drivers by points: if/else 170 (505 pts), boolean chains 19, loops 8 (19 pts), match/switch 6 (16 pts) (nesting depth added 356). Of this number, 548 points are the body\u0027s own statements and 11 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bdf0ca17fab51a9a10b65babf39470eb7914c05b77482163cc3e172df94707"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.serversFromPairings (cognitive 356): ServerType.serversFromPairings has cognitive complexity 356 (threshold 15). Drivers by points: if/else 68 (233 pts), loops 34 (98 pts), boolean chains 22, match/switch 1 (3 pts) (nesting depth added 231). Of this number, 321 points are the body\u0027s own statements and 35 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b75841c4a03604deecfdf9fce10b26ab8c4db47da7a3eb3a291d0f3ae970cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.buildTLSApp (cognitive 311): ServerType.buildTLSApp has cognitive complexity 311 (threshold 15). Drivers by points: if/else 83 (219 pts), loops 27 (78 pts), boolean chains 14 (nesting depth added 187). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a1424b972af3c04811faeedba6825603e222dc36a9c9c1db686e3e3c8ee0c5"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.unmarshalCaddyfileServerOptions (cognitive 240): httpcaddyfile.unmarshalCaddyfileServerOptions has cognitive complexity 240 (threshold 15). Drivers by points: if/else 54 (204 pts), loops 8 (22 pts), match/switch 3 (10 pts), boolean chains 4 (nesting depth added 171). 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":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fba4805091ad6670fcff540f2da2132a481e33618325f5fbf32df440007679"}},{"ruleId":"D2","level":"warning","message":{"text":"lexer.next (cognitive 227): lexer.next has cognitive complexity 227 (threshold 15). Drivers by points: if/else 62 (190 pts), boolean chains 24, loops 4 (13 pts) (nesting depth added 137). Of this number, 226 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/lexer.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fcad3f566b32d2e7d71ae445e1de1c1acb4398630c4d7d8590a9d83fec0f71"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.parseTLS (cognitive 226): httpcaddyfile.parseTLS has cognitive complexity 226 (threshold 15). Drivers by points: if/else 78 (202 pts), loops 6 (12 pts), boolean chains 8, match/switch 3 (4 pts) (nesting depth added 131). 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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cddb160cdd2037b59ba88ebc482504361b08bef63dcbb13df83793438122868"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPTransport.UnmarshalCaddyfile (cognitive 214): HTTPTransport.UnmarshalCaddyfile has cognitive complexity 214 (threshold 15). Drivers by points: if/else 67 (202 pts), match/switch 4 (11 pts), loops 1 (nesting depth added 142). 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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe516066019285901f26f87e7106721ce4364d5845bc3e97588d22b6b3110c4"}},{"ruleId":"D2","level":"warning","message":{"text":"App.automaticHTTPSPhase1 (cognitive 179): App.automaticHTTPSPhase1 has cognitive complexity 179 (threshold 15). Drivers by points: if/else 40 (115 pts), loops 21 (46 pts), boolean chains 16, jumps 2 (nesting depth added 100). Of this number, 162 points are the body\u0027s own statements and 17 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/autohttps.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3399cf2b9f130b525f96891fadaa4ea169318438f1c390519bd0549c112074b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ACMEIssuer.UnmarshalCaddyfile (cognitive 168): ACMEIssuer.UnmarshalCaddyfile has cognitive complexity 168 (threshold 15). Drivers by points: if/else 56 (165 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 110). 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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"510e2bbf3f63219858f11b0fba78fee08b67af67260792e3849b2ff56f61d9fc"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.consolidateConnPolicies (cognitive 165): httpcaddyfile.consolidateConnPolicies has cognitive complexity 165 (threshold 15). Drivers by points: if/else 31 (135 pts), boolean chains 22, loops 3 (8 pts) (nesting depth added 109). Of this number, 164 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb961aa830410e7fcdd586bc00e3f5c8de163ec3ea817bf31f24effde18b7cc"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.celMatchLiteral (cognitive 165): caddyhttp.celMatchLiteral has cognitive complexity 165 (threshold 15). Drivers by points: if/else 37 (120 pts), loops 7 (29 pts), boolean chains 8, match/switch 3 (8 pts) (nesting depth added 110). 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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1309ae406fe322d92632c934696c54f89fc9c333b58073955a7de5530c8e747"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.parseLogHelper (cognitive 151): httpcaddyfile.parseLogHelper has cognitive complexity 151 (threshold 15). Drivers by points: if/else 45 (129 pts), loops 5 (13 pts), match/switch 3 (9 pts) (nesting depth added 98). Of this number, 150 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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"9465d57d6b4155c7f48c066030db70bf50b8afb74445031683861c543f394057"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.addHTTPVarsToReplacer (cognitive 142): caddyhttp.addHTTPVarsToReplacer has cognitive complexity 142 (threshold 15). Drivers by points: if/else 48 (130 pts), boolean chains 6, loops 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 85). None of this is in the body itself: all 142 points belong to one function literal inside it that branches (line 62). 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":"modules/caddyhttp/replacer.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e306821b1ae5e46ecf586efe962708b53e05e66e1905162340906bbecf3f8e"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.parsePKIApp (cognitive 140): httpcaddyfile.parsePKIApp has cognitive complexity 140 (threshold 15). Drivers by points: if/else 20 (107 pts), match/switch 4 (18 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 111). 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":"caddyconfig/httpcaddyfile/pkiapp.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d9345a013c72825ffe77ea631feafa0ebe4e4f34d4037c49ed94aa2d282f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.publishECHConfigs (cognitive 131): TLS.publishECHConfigs has cognitive complexity 131 (threshold 15). Drivers by points: if/else 28 (75 pts), loops 15 (53 pts), boolean chains 3 (nesting depth added 85). Of this number, 127 points are the body\u0027s own statements and 4 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":"modules/caddytls/ech.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"971ebb8a1027ba4da59b5fe90b30cb83b2b4c32216c9e5e9dcc8e3148298b271"}},{"ruleId":"D2","level":"warning","message":{"text":"FileServer.ServeHTTP (cognitive 130): FileServer.ServeHTTP has cognitive complexity 130 (threshold 15). Drivers by points: if/else 60 (115 pts), boolean chains 12, loops 2 (3 pts) (nesting depth added 56). 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":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd91ff7b6856ead5496fca665c71f95d3182f0422d781b2f6a332e20ae1cd969"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.Setup (cognitive 120): ServerType.Setup has cognitive complexity 120 (threshold 15). Drivers by points: if/else 42 (81 pts), loops 16 (31 pts), boolean chains 8 (nesting depth added 54). Of this number, 116 points are the body\u0027s own statements and 4 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed63960ec989c94d0f26a530c6a3db7dc7ba511309c6bf954aad9c6ab08ea26e"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.unsyncedConfigAccess (cognitive 114): caddy.unsyncedConfigAccess has cognitive complexity 114 (threshold 15). Drivers by points: if/else 28 (97 pts), match/switch 3 (10 pts), boolean chains 5, jumps 1, loops 1 (nesting depth added 76). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"1069024686b04016c587cb2f8041a601426cc264eb27af777d43a2a306837556"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Provision (cognitive 112): App.Provision has cognitive complexity 112 (threshold 15). Drivers by points: if/else 39 (93 pts), loops 7 (16 pts), boolean chains 3 (nesting depth added 63). 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":"modules/caddyhttp/app.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9196e479f89aa7702418a2616a8c8ed3cce224de7b7cd7bc0250355ac86fed"}},{"ruleId":"D2","level":"warning","message":{"text":"FileServer.UnmarshalCaddyfile (cognitive 112): FileServer.UnmarshalCaddyfile has cognitive complexity 112 (threshold 15). Drivers by points: if/else 23 (87 pts), match/switch 4 (13 pts), loops 4 (12 pts) (nesting depth added 81). 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":"modules/caddyhttp/fileserver/caddyfile.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4cbc570e5ad8ede620986731274607d59de85d1686c252e9bc3582f2aaf686"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchFile.selectFile (cognitive 107): MatchFile.selectFile has cognitive complexity 107 (threshold 15). Drivers by points: if/else 37 (75 pts), loops 9 (21 pts), boolean chains 8, match/switch 2 (3 pts) (nesting depth added 51). Of this number, 75 points are the body\u0027s own statements and 32 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":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e063058f2a7be9922f4bb1ab4b10a6127614a34079897ff97a3a1410bcf950"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWriter.UnmarshalCaddyfile (cognitive 101): FileWriter.UnmarshalCaddyfile has cognitive complexity 101 (threshold 15). Drivers by points: if/else 25 (78 pts), loops 5 (15 pts), match/switch 3 (8 pts) (nesting depth added 68). 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":"modules/logging/filewriter.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a693e70461ade5fea9ca95ec75b517b7c3799d7651d4530f1e749b1d4222f1"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Start (cognitive 99): App.Start has cognitive complexity 99 (threshold 15). Drivers by points: if/else 20 (72 pts), loops 6 (19 pts), boolean chains 8 (nesting depth added 65). Of this number, 97 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":"modules/caddyhttp/app.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e802dfff4ed1e99737b9b2e7e9b9b9bb01369a16c03676cf2d4e1344990369"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPTransport.NewTransport (cognitive 99): HTTPTransport.NewTransport has cognitive complexity 99 (threshold 15). Drivers by points: if/else 47 (83 pts), boolean chains 8, match/switch 4 (8 pts) (nesting depth added 40). Of this number, 57 points are the body\u0027s own statements and 42 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":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2453006a72f6c840b9bf1c94c730b4ca08520340d4f923fa1d600e9691928c4c"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.doImport (cognitive 95): parser.doImport has cognitive complexity 95 (threshold 15). Drivers by points: if/else 32 (65 pts), loops 7 (17 pts), boolean chains 9, match/switch 2 (4 pts) (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"c467a60fbbed3a9f277d5c8ac0f77e13c1e8dc3b8fe45f4d331fb567e11ae3e9"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.ServeHTTP (cognitive 90): Server.ServeHTTP has cognitive complexity 90 (threshold 15). Drivers by points: if/else 37 (74 pts), boolean chains 8, loops 3 (8 pts) (nesting depth added 42). Of this number, 84 points are the body\u0027s own statements and 6 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":"modules/caddyhttp/server.go"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc02ef7dd7d52f3124291451322eef34bb70176766ae74a058c1fcdf4e587349"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.Provision (cognitive 82): Handler.Provision has cognitive complexity 82 (threshold 15). Drivers by points: if/else 43 (76 pts), boolean chains 3, loops 3 (nesting depth added 33). 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b6783e2a27e6f6fab3109d3b7b522df36bec1c78bedaa6f97518dd5c758a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.Provision (cognitive 76): TLS.Provision has cognitive complexity 76 (threshold 15). Drivers by points: if/else 33 (59 pts), loops 7 (12 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0315e2ecc3eb91a2c0d13d460c1122328fb8a07d4322dc716e683e005bf3df7"}},{"ruleId":"D2","level":"warning","message":{"text":"App.createAutomationPolicies (cognitive 75): App.createAutomationPolicies has cognitive complexity 75 (threshold 15). Drivers by points: if/else 33 (66 pts), loops 5 (7 pts), boolean chains 2 (nesting depth added 35). 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":"modules/caddyhttp/autohttps.go"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"b536b7b7ce0e82423b21413c25b16ec2fbd895a13c74d104778dfdcd70673012"}},{"ruleId":"D2","level":"warning","message":{"text":"HeaderOps.ApplyTo (cognitive 74): HeaderOps.ApplyTo has cognitive complexity 74 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 14 (30 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 42). 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":"modules/caddyhttp/headers/headers.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c667bf8cc4968754f8646b689e0c2166296d03ac8c442b1939791046d4cc2ae4"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyfile.formatTokens (cognitive 73): caddyfile.formatTokens has cognitive complexity 73 (threshold 15). Drivers by points: if/else 21 (46 pts), boolean chains 18, loops 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 29). Of this number, 72 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":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"3481db9affde99d016bfafc732d3f36919cb0f16a7f7f57a57d228698b1913c6"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewrite.Rewrite (cognitive 71): Rewrite.Rewrite has cognitive complexity 71 (threshold 15). Drivers by points: if/else 27 (52 pts), boolean chains 11, loops 3 (4 pts), match/switch 1 (3 pts), jumps 1 (nesting depth added 28). Of this number, 69 points are the body\u0027s own statements and 2 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":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"623d4a9251d37f7777a80bada0785a6ed5bf1481da00747ccf76f9ef3b72096f"}},{"ruleId":"D2","level":"warning","message":{"text":"fastcgi.parsePHPFastCGI (cognitive 69): fastcgi.parsePHPFastCGI has cognitive complexity 69 (threshold 15). Drivers by points: if/else 22 (62 pts), loops 3 (4 pts), match/switch 1 (3 pts) (nesting depth added 43). 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":"modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"900f47d48a00db67c8b3254e4e5e9d50531a2c793da24262d70b87d298c2bb96"}},{"ruleId":"D2","level":"warning","message":{"text":"reverseproxy.cmdReverseProxy (cognitive 66): reverseproxy.cmdReverseProxy has cognitive complexity 66 (threshold 15). Drivers by points: if/else 34 (48 pts), loops 5 (9 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 19). 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":"modules/caddyhttp/reverseproxy/command.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40915eb6d8f4b0a78bd7b479858961fbeaf57ff138c68894e86ba239c92a7ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPolicy.UnmarshalCaddyfile (cognitive 64): ConnectionPolicy.UnmarshalCaddyfile has cognitive complexity 64 (threshold 15). Drivers by points: if/else 21 (60 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 40). 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":"modules/caddytls/connpolicy.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2c09c5143a6025a28e62c114f9efa04e8fbacebfed80cee0e5c262935e3651"}},{"ruleId":"D2","level":"warning","message":{"text":"ZeroSSLIssuer.UnmarshalCaddyfile (cognitive 64): ZeroSSLIssuer.UnmarshalCaddyfile has cognitive complexity 64 (threshold 15). Drivers by points: if/else 22 (61 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 40). 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":"modules/caddytls/zerosslissuer.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95c3c655eb1e8cf639fbe82560903474f6faa21d85403ba1070faf964ac8c3d"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.fillInGlobalACMEDefaults (cognitive 63): httpcaddyfile.fillInGlobalACMEDefaults has cognitive complexity 63 (threshold 15). Drivers by points: if/else 25 (40 pts), boolean chains 23 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f91e5745aa267cf0804cd05c342c9eea14ca65f0e30a964c3b717da7945718"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPolicies.TLSConfig (cognitive 62): ConnectionPolicies.TLSConfig has cognitive complexity 62 (threshold 15). Drivers by points: loops 9 (32 pts), if/else 10 (27 pts), boolean chains 2, jumps 1 (nesting depth added 40). Of this number, 52 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb99f0f9bb33da69533d2cef341c0d675ab93c8aa1fd45550cc3bb942aed6c7a"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.Start (cognitive 62): TLS.Start has cognitive complexity 62 (threshold 15). Drivers by points: if/else 18 (49 pts), boolean chains 6, loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 35). Of this number, 20 points are the body\u0027s own statements and 42 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":"modules/caddytls/tls.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"caea32194b7298cdafa610dcb440d3dfc45b70893657632c1d3f3b96e70082cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.serveHTTP (cognitive 58): Server.serveHTTP has cognitive complexity 58 (threshold 15). Drivers by points: if/else 19 (48 pts), boolean chains 7, match/switch 1 (2 pts), loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"4202fa56a7daed37534a0408835ece39e79badc028b2cdfb66161902cde0282f"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.cmdFmt (cognitive 57): caddycmd.cmdFmt has cognitive complexity 57 (threshold 15). Drivers by points: if/else 21 (34 pts), loops 4 (10 pts), match/switch 2 (8 pts), boolean chains 5 (nesting depth added 25). 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":"cmd/commandfuncs.go"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6396fec40ef91001bfd77e4e17a38be32f750f7a4009039b18821deacebdd5c"}},{"ruleId":"D2","level":"warning","message":{"text":"AUpstreams.UnmarshalCaddyfile (cognitive 56): AUpstreams.UnmarshalCaddyfile has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (46 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 35). 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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"15db8d3b3e675cf299b376f3fff6ddb0f46e9e107369308c2dab490f71d0e652"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientAuthentication.UnmarshalCaddyfile (cognitive 56): ClientAuthentication.UnmarshalCaddyfile has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (52 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 35). 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":"modules/caddytls/connpolicy.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"486729fa78d967131145693113fded5506e74fe0560945379241ef3637dac1a5"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteAdmin.enforceAccessControls (cognitive 55): RemoteAdmin.enforceAccessControls has cognitive complexity 55 (threshold 15). Drivers by points: if/else 7 (32 pts), loops 6 (21 pts), boolean chains 2 (nesting depth added 40). 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":"admin.go"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"17659a1314842b164d6b93135a85077c36a2549f6a2797ac8acfec383773dc7d"}},{"ruleId":"D2","level":"warning","message":{"text":"acmeserver.parseACMEServer (cognitive 55): acmeserver.parseACMEServer has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (38 pts), match/switch 3 (10 pts), loops 3 (7 pts) (nesting depth added 35). 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":"modules/caddypki/acmeserver/caddyfile.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1e6464c3b0dd3d7feaaf3477475735a17bc001d2231a6ec1bf0dcb585a0aa2"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.doActiveHealthCheck (cognitive 53): Handler.doActiveHealthCheck has cognitive complexity 53 (threshold 15). Drivers by points: if/else 31 (49 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 19). Of this number, 38 points are the body\u0027s own statements and 15 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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"543efe6bc46edc0ab973ca20a77936dfcc7f30b0c5804c12db3aa1f98d23297c"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.handleUpgradeResponse (cognitive 53): Handler.handleUpgradeResponse has cognitive complexity 53 (threshold 15). Drivers by points: if/else 29 (53 pts) (nesting depth added 24). Of this number, 49 points are the body\u0027s own statements and 4 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":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c137734151fca4d8f3a8e43e22b536b96fd0576ec5bd92c557c41b261cf3d2a1"}},{"ruleId":"D2","level":"warning","message":{"text":"SRVUpstreams.UnmarshalCaddyfile (cognitive 53): SRVUpstreams.UnmarshalCaddyfile has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (50 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 33). 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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f10a22d3d6bebdafbc5685d326e25e150282f2f126b4343921a43315d9876e"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.proxyLoopIteration (cognitive 51): Handler.proxyLoopIteration has cognitive complexity 51 (threshold 15). Drivers by points: if/else 25 (44 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72ead294ad01b2ce1d3cb5f91ddd4910789110397cb596936d11b09504393e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Context.LoadModule (cognitive 50): Context.LoadModule has cognitive complexity 50 (threshold 15). Drivers by points: if/else 15 (35 pts), loops 4 (13 pts), boolean chains 1, match/switch 1 (nesting depth added 29). 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":"context.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4eb396ceb2832865ac220967249217a068965b7be12bb3a0c164e360ac3d0e"}},{"ruleId":"D2","level":"warning","message":{"text":"ACMEIssuer.Provision (cognitive 50): ACMEIssuer.Provision has cognitive complexity 50 (threshold 15). Drivers by points: if/else 25 (46 pts), boolean chains 2, loops 1 (2 pts) (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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c7926f5becf885bef8685ccbd9239fc042e7cf09ee96cb3c86e12d410ce99a"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.consolidateAutomationPolicies (cognitive 48): httpcaddyfile.consolidateAutomationPolicies has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 4 (9 pts), boolean chains 4, jumps 2 (nesting depth added 26). Of this number, 46 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":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e13b440ccb08074a426f524d1a01b7db8af3d430bc1d2249ba5422da7a21df"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.buildPKIApp (cognitive 48): ServerType.buildPKIApp has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 7 (16 pts), boolean chains 1 (nesting depth added 28). 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":"caddyconfig/httpcaddyfile/pkiapp.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb517a0e7b1874644161926376cd229ceed04ea68eef50d08cfc0b4a47ef5d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"reverseproxy.parseUpstreamDialAddress (cognitive 48): reverseproxy.parseUpstreamDialAddress has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (39 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/addresses.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"289ca507f8a096b1ed522eae125bfebeaaceb1cdfb182fa11d901bc158b6ca5c"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.getTLSReplacement (cognitive 47): caddyhttp.getTLSReplacement has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (36 pts), match/switch 4 (9 pts), boolean chains 2 (nesting depth added 28). 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":"modules/caddyhttp/replacer.go"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c7e724a04eb53451c2f44ed58dc573de5a37fd7221a34cc40058dc0a734a45"}},{"ruleId":"D2","level":"warning","message":{"text":"App.stop (cognitive 47): App.stop has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (28 pts), loops 8 (15 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 18). Of this number, 28 points are the body\u0027s own statements and 19 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":"modules/caddyhttp/app.go"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a811c9197ba266a570dbba5acef80645f74306289e4e425e942117df25e3e8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"forwardauth.parseCaddyfile (cognitive 47): forwardauth.parseCaddyfile has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 6 (13 pts), match/switch 1 (3 pts) (nesting depth added 27). 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":"modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"db303be826b75c90b3746c75191bb5da6cc8a53bed0b3025fd97dc7c00b47b4c"}},{"ruleId":"D2","level":"warning","message":{"text":"TLSConfig.MakeTLSClientConfig (cognitive 47): TLSConfig.MakeTLSClientConfig has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (34 pts), loops 4 (7 pts), boolean chains 5, match/switch 1 (nesting depth added 18). Of this number, 40 points are the body\u0027s own statements and 7 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":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"5985ff6d13cbdf73fb582e93c5292b8111b732140243722503af0b1728bf5c64"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.cmdRespond (cognitive 46): caddyhttp.cmdRespond has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (32 pts), loops 5 (8 pts), boolean chains 5, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/staticresp.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7203310a31259f66d574e3cc10f49bcf43ed884746fac3767a67169e9654268"}},{"ruleId":"D2","level":"warning","message":{"text":"FileServer.Provision (cognitive 45): FileServer.Provision has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 4 (5 pts), boolean chains 3, match/switch 1 (3 pts) (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":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"522bd22b09d5d63c1d8949e3c0c554ca474f3e1ab08d4fd52a7795683af31569"}},{"ruleId":"D2","level":"warning","message":{"text":"Transport.buildEnv (cognitive 45): Transport.buildEnv has cognitive complexity 45 (threshold 15). Drivers by points: if/else 25 (33 pts), boolean chains 6, loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 10). 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":"modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f1f50fe1dcede49c547a7d659e7efc86c59f48d7402af590e1bb8775f4af97"}},{"ruleId":"D2","level":"warning","message":{"text":"Replacer.replace (cognitive 45): Replacer.replace has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 6, loops 2 (3 pts), jumps 1 (nesting depth added 18). 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":"replacer.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91333719ae7a29bb36913c4fffb974c58ac2bd81f82f0f905784e72f955199f"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.Version (cognitive 44): caddy.Version has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (37 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (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":"caddy.go"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a947b70a9a05896e089c4ad275346a14b21cd998ff5a8bbc3e512d5a36fdafe"}},{"ruleId":"D2","level":"warning","message":{"text":"headers.parseCaddyfile (cognitive 44): headers.parseCaddyfile has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 4 (7 pts) (nesting depth added 22). Of this number, 43 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":"modules/caddyhttp/headers/caddyfile.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6ed85f7544ce6875757255379814f043028ae18af732ce9d23ce38353bf797"}},{"ruleId":"D2","level":"warning","message":{"text":"ECH.rotateECHKeys (cognitive 44): ECH.rotateECHKeys has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (38 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 22). Of this number, 38 points are the body\u0027s own statements and 6 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":"modules/caddytls/ech.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced0b097d4eaea953114f2e75d669ec6bfd5b60b832f452288318a86706be1ac"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.finishSettingUp (cognitive 43): caddy.finishSettingUp has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (35 pts), match/switch 1 (4 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 27). Most of this is not in the body itself: 12 of the 43 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 636, 621). 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":"caddy.go"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed3d45f033f8cf9c0446439faa0c42fa684466119ccb7a5eb35e158b6b99e11"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.reverseProxy (cognitive 42): Handler.reverseProxy has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 17). Of this number, 41 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d7cb72502ec446a80a377868023cbf380d6eb0d2771e4719147c46c873b6d8"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationPolicy.makeCertMagicConfig (cognitive 42): AutomationPolicy.makeCertMagicConfig has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (37 pts), boolean chains 5 (nesting depth added 20). Most of this is not in the body itself: 15 of the 42 points are its own statements and the rest belongs to one function literal inside it that branches (line 351). 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":"modules/caddytls/automation.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3fa1fc031c05e7de734767e8d9a48e1d30ed10b9b9b6179766b76601af8c86"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.mapAddressToProtocolToServerBlocks (cognitive 41): ServerType.mapAddressToProtocolToServerBlocks has cognitive complexity 41 (threshold 15). Drivers by points: loops 9 (24 pts), if/else 5 (17 pts) (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/addresses.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaec0189537697865ee8abeb9aa5c485fe0e56a47c63c8a6c9f5d15beaadfb8"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.cmdRun (cognitive 41): caddycmd.cmdRun has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 4, match/switch 2 (nesting depth added 12). Of this number, 39 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":"cmd/commandfuncs.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2247793cc6d5f37de553ed357e3175f381ab45fe77b5dbc24ad54f281399e9b"}},{"ruleId":"D2","level":"warning","message":{"text":"queryOps.do (cognitive 41): queryOps.do has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 8 (14 pts), boolean chains 1 (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":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"56139af5696e8fb791796bb951077dbe3deefa61e4630f67a802b795b4e09f49"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.loadConfigWithLogger (cognitive 40): caddycmd.loadConfigWithLogger has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (37 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 16). 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":"cmd/main.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"816ae06a07141b8dac8b28af5b9f071d677a327f994efa23c1e46d3b6838fcc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPolicy.buildStandardTLSConfig (cognitive 40): ConnectionPolicy.buildStandardTLSConfig has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 2, loops 2 (nesting depth added 13). Of this number, 36 points are the body\u0027s own statements and 4 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":"modules/caddytls/connpolicy.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfc6da02958f50a847b98f9df21291eeeaf8f4d81a95785deae7edcd28f05dd"}},{"ruleId":"D2","level":"warning","message":{"text":"FilterEncoder.UnmarshalCaddyfile (cognitive 40): FilterEncoder.UnmarshalCaddyfile has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 4 (8 pts), match/switch 1 (2 pts) (nesting depth added 20). Of this number, 33 points are the body\u0027s own statements and 7 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":"modules/logging/filterencoder.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e428fee0c24e725edc28c1cfc96cd5e7a3ec3c1724c8eac1f620052113853e10"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.cmdListModules (cognitive 39): caddycmd.cmdListModules has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 5 (11 pts), boolean chains 5 (nesting depth added 14). Of this number, 27 points are the body\u0027s own statements and 12 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":"cmd/commandfuncs.go"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"8152b01799da84860fbfc89c9d5fd13cdeef88087ceb79795c437adf1cd480be"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Emit (cognitive 39): App.Emit has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 3 (6 pts), match/switch 2 (5 pts) (nesting depth added 21). Of this number, 35 points are the body\u0027s own statements and 4 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":"modules/caddyevents/app.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56bc7877efdb1c8f7c824aae4684d242a724c41127144f0115ddfbc56a09282"}},{"ruleId":"D2","level":"warning","message":{"text":"Transport.UnmarshalCaddyfile (cognitive 39): Transport.UnmarshalCaddyfile has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (36 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 25). 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":"modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d65c4584115f6ca28af7f39cbb9b051222cb7fa1de36c8c8203cde687e1f8b0"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.ServeHTTP (cognitive 39): Handler.ServeHTTP has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 3, loops 1 (nesting depth added 16). 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"186db704707c5bb0c64a4279dbd118092a1e1f54da01abc883aaeb038ec46543"}},{"ruleId":"D2","level":"warning","message":{"text":"caddytls.tlsCertFromCertAndKeyPEMBundle (cognitive 39): caddytls.tlsCertFromCertAndKeyPEMBundle has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 2, loops 1 (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":"modules/caddytls/folderloader.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5375f1177aef70970f69b9fcb3db6c7688a2cc17196f1756cacd2de61bf950"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.doActiveHealthCheckForAllHosts (cognitive 38): Handler.doActiveHealthCheckForAllHosts has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 2, loops 1 (nesting depth added 20). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to one function literal inside it that branches (line 299). 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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ccc619e6aaa30404f1beef0c725001b69768bed6af99e3f917179231420ee6"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWriter.OpenWriter (cognitive 38): FileWriter.OpenWriter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (34 pts), boolean chains 3, match/switch 1 (nesting depth added 11). Of this number, 37 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":"modules/logging/filewriter.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15648dc614bb2546de079d4075e73dbbf5c00b64095059f4b985ebfbdc30d8d"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.addresses (cognitive 37): parser.addresses has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (32 pts), boolean chains 4, loops 1 (nesting depth added 18). 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":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bd358df6fe4bf3343d6b7c7cd98a0b008ab1c07d49e7c53ea8e153cf1cbfb0"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.evaluateGlobalOptionsBlock (cognitive 37): ServerType.evaluateGlobalOptionsBlock has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 2 (3 pts), boolean chains 1 (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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"80330ec293cb5e17236b0d804fe6a74ce3949ec0b1623dd0bacc20192803520e"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.cmdExportStorage (cognitive 37): caddycmd.cmdExportStorage has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 1, loops 1 (nesting depth added 16). 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":"cmd/storagefuncs.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"317a72a32c7bf9474424c07e0f79705e6b90ced5564b23ce729ccdd542b17104"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchPath.MatchWithError (cognitive 37): MatchPath.MatchWithError has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (35 pts), boolean chains 1, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"149703c7de247d41b61ac431b0a9c89778e51f1f6f185d78797393cd49845b8d"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchPath.matchPatternWithEscapeSequence (cognitive 37): MatchPath.matchPatternWithEscapeSequence has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (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":"modules/caddyhttp/matchers.go"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"850cd25284d6c0766418187d6535b6580b881aefefd84632d08767f3b1cfa959"}},{"ruleId":"D2","level":"warning","message":{"text":"timeouts.parseCaddyfile (cognitive 37): timeouts.parseCaddyfile has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (32 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 23). 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":"modules/caddyhttp/timeouts/caddyfile.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"939587b29a8397c8d405c49110a66d42d1c437526347cf0607a740920b53f5a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomCertSelectionPolicy.SelectCertificate (cognitive 37): CustomCertSelectionPolicy.SelectCertificate has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 3 (7 pts), boolean chains 1, jumps 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/certselection.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e9aeaf4e8cf30832b2e799a4a20192f987379cea15d7b5895a91d46feeade1"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.consolidateAddrMappings (cognitive 36): ServerType.consolidateAddrMappings has cognitive complexity 36 (threshold 15). Drivers by points: loops 9 (23 pts), if/else 2 (11 pts), boolean chains 2 (nesting depth added 23). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/addresses.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c980c84b10f32c3bfa48e88946afb3965f980cfada5b89d5ca50e38f30b4a2db"}},{"ruleId":"D2","level":"warning","message":{"text":"FileServer.serveBrowse (cognitive 36): FileServer.serveBrowse has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 2, loops 1 (2 pts), match/switch 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1163deed20ba5169944f78a8acb19f55cf0f6089f3dced64d7d2ec338798a5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"FileServer.directoryListing (cognitive 36): FileServer.directoryListing has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (32 pts), boolean chains 3, loops 1 (nesting depth added 18). 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":"modules/caddyhttp/fileserver/browsetplcontext.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f424b985fe1dbf8e52aa07762b6f93cf51f1f2ce1bde1d54e9121e4b994d43c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Metrics.scanConfigForHosts (cognitive 36): Metrics.scanConfigForHosts has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 7 (16 pts) (nesting depth added 23). Most of this is not in the body itself: 6 of the 36 points are its own statements and the rest belongs to one function literal inside it that branches (line 239). 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":"modules/caddyhttp/metrics.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceac3a66e58a4454d5e0022d13f24a12af5f05202941d7685d1b5a41277be513"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomLog.loggerAllowed (cognitive 35): CustomLog.loggerAllowed has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 10, loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logging.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c22dfd1b2598f96122de6f3383170b773b5a128ea97532f5b4b6849bdacd9d5"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.cleanStorageUnits (cognitive 35): TLS.cleanStorageUnits has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc12695a060e366244363727dad1aeb2934ae15348c306af8b486942d3c2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.replaceRemoteAdminServer (cognitive 34): caddy.replaceRemoteAdminServer has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 4 (8 pts), boolean chains 4 (nesting depth added 13). Of this number, 30 points are the body\u0027s own statements and 4 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":"admin.go"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cad2b498191244dfd8fc2a9ff2d9d29765aea17a4ae33c6e6763049d66d75ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.listenersForServerBlockAddress (cognitive 34): ServerType.listenersForServerBlockAddress has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 5 (10 pts), boolean chains 3, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/addresses.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0131c928aff8a8d029420d1d66664ae0dfa81b069b5e7052a7eb85cdfaab878"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomCertSelectionPolicy.UnmarshalCaddyfile (cognitive 34): CustomCertSelectionPolicy.UnmarshalCaddyfile has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/certselection.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a44ab7cde46656beeed10182041881165d80386cf4136b5d87b850006ebcb03"}},{"ruleId":"D2","level":"warning","message":{"text":"Context.LoadModuleByID (cognitive 33): Context.LoadModuleByID has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (33 pts) (nesting depth added 15). Of this number, 31 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":"context.go"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5308fae035a62c114237803043a6c1b70ad0b8dcd6c0dd6ebaf06ee22d0cf3"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.prepareRequest (cognitive 33): Handler.prepareRequest has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 7, loops 1 (nesting depth added 6). 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e81ee38b46238c7989b795137503822450df98886b4b469357cb17dfc86ef0"}},{"ruleId":"D2","level":"warning","message":{"text":"templates.parseCaddyfile (cognitive 33): templates.parseCaddyfile has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (27 pts), loops 2 (4 pts), match/switch 1 (2 pts) (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":"modules/caddyhttp/templates/caddyfile.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5788978b129521bf00cfb7ffbdd8a0f221f09bcb735ce3976298dab5c3060ba0"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.compileEncodedMatcherSets (cognitive 32): ServerType.compileEncodedMatcherSets has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 5, loops 4 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a696f7dcfde1069143d005b9d0a6924108bd4d4d0202e65ea2b6ec784f2619"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.cmdImportStorage (cognitive 32): caddycmd.cmdImportStorage has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 2, 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":"cmd/storagefuncs.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bae52d4d257853d5f6b6363317c478f08c005015d1bf1e7ed7c8ae1f7d5129"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyauth.cmdHashPassword (cognitive 32): caddyauth.cmdHashPassword has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 1, match/switch 1 (nesting depth added 16). 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":"modules/caddyhttp/caddyauth/command.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ceea3575ade9e164559a038fdca943a669e24753a53680ce6d9984c1ce5358"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.addForwardedHeaders (cognitive 31): Handler.addForwardedHeaders has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3, loops 1 (3 pts) (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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdf52a92d85a88d9e4fd91bb9c2540fd211f57f894aaf54b1b4764baa912d6c"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.finalizeResponse (cognitive 31): Handler.finalizeResponse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 6). 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39374e213e1c8de94f7fb3df3c3adc03a6eed7a8d9ff6346967ad1596b48489"}},{"ruleId":"D2","level":"warning","message":{"text":"ECHDNSPublisher.PublishECHConfigList (cognitive 31): ECHDNSPublisher.PublishECHConfigList has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (3 pts), boolean chains 2, jumps 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":"modules/caddytls/ech.go"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bb7eb35614fde1f9a58acc74ca53d65fea4c76e5e5737d6ec1ab09d723b502"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.detectConflictingSchemes (cognitive 30): httpcaddyfile.detectConflictingSchemes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). Of this number, 24 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4eb71541b551e87e678b0522ed7aeff67a2da9f358997c53f121f079e0b1d4a"}},{"ruleId":"D2","level":"warning","message":{"text":"Encode.UnmarshalCaddyfile (cognitive 30): Encode.UnmarshalCaddyfile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 16). 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":"modules/caddyhttp/encode/caddyfile.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f655d168a927c03eb05486847fea5c6e6722ae392406a63972aa36e512d438b5"}},{"ruleId":"D2","level":"warning","message":{"text":"rewrite.parseCaddyfileURI (cognitive 30): rewrite.parseCaddyfileURI has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 16). 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":"modules/caddyhttp/rewrite/caddyfile.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d985f1e1bb33a187488a962d80fc9e76c84b2b5a8a9bb1ec7cb0031632f295d8"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.changeConfig (cognitive 29): caddy.changeConfig has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 2, match/switch 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":"caddy.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"caef7c911b896d989aab14ca9e026dd70eaea03240f919f8e08628c7d4f34ff5"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.parseHandleErrors (cognitive 29): httpcaddyfile.parseHandleErrors has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 1 (2 pts) (nesting depth added 16). 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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b566ce316cc821d61a72d289be25ad68c84defecbf0a4eee04bee20f3cfb79c"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.appendSubrouteToRouteList (cognitive 29): httpcaddyfile.appendSubrouteToRouteList has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (9 pts), boolean chains 4, jumps 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5044028fe82726b0e6948fa0c72c6636439ec2e08dfeca287174ab27c7ac47"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.parseOptOnDemand (cognitive 29): httpcaddyfile.parseOptOnDemand has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (26 pts), match/switch 1 (2 pts), loops 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":"caddyconfig/httpcaddyfile/options.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb29c6b575cd1ace0ef579a934db60e4fbd56b163391c8f9121d7bc17fe28949"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.ParseNamedResponseMatcher (cognitive 29): caddyhttp.ParseNamedResponseMatcher has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/responsematchers.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6b0e8cafe3b3227dc2523712749502ec277b761a757d521765ca6d55e69c48"}},{"ruleId":"D2","level":"warning","message":{"text":"fileserver.cmdFileServer (cognitive 29): fileserver.cmdFileServer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (26 pts), loops 1 (2 pts), match/switch 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":"modules/caddyhttp/fileserver/command.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"80eae7da8e4022ce765535bf72c44a11a62c3a0a98e71942c2ac5aedf3c900a8"}},{"ruleId":"D2","level":"warning","message":{"text":"fileserver.fileHidden (cognitive 29): fileserver.fileHidden has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 2 (4 pts) (nesting depth added 16). 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":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"293d9cba16f6ede4cb813610d1c585df8451ecceb387bda3875ba61df384f417"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchHost.MatchWithError (cognitive 29): MatchHost.MatchWithError has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (4 pts), boolean chains 2, jumps 1 (nesting depth added 14). Of this number, 27 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":"modules/caddyhttp/matchers.go"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dc0a7ad9ce16b43113bc58dd8dd041234110e9ded75a48c020b6982e2cd63a"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.copyBuffer (cognitive 29): Handler.copyBuffer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 1, loops 1 (nesting depth added 16). 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":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6443ae6ec5b4e6cfdc37b5b670a056ac6f218e7979ccf7e750381a7f69c3a6"}},{"ruleId":"D2","level":"warning","message":{"text":"Tracing.UnmarshalCaddyfile (cognitive 29): Tracing.UnmarshalCaddyfile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 16). Of this number, 26 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":"modules/caddyhttp/tracing/module.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc9a5f6f032f1e95fcbe056cc7c60bce092b08bcc03517299e3a5cf4362777f"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.buildSubroute (cognitive 28): httpcaddyfile.buildSubroute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (7 pts), match/switch 1 (2 pts), 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"58de7aad90ad78da1c1b5c4efed89be9d965b2716389b53cea8a52b4bc55bbb5"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.matchHeaders (cognitive 28): caddyhttp.matchHeaders has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), match/switch 1 (4 pts), boolean chains 3, jumps 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da3c099539c9238af7da03091b55d34e97c1f55e5df221c488824c87be83ef4"}},{"ruleId":"D2","level":"warning","message":{"text":"Authentication.ServeHTTP (cognitive 28): Authentication.ServeHTTP has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/caddyauth/caddyauth.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a86fcc5c97ebfd995a31330ce44f58aa1b73ee111c724ccf768017b4be45fef"}},{"ruleId":"D2","level":"warning","message":{"text":"Transport.splitPos (cognitive 28): Transport.splitPos has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"01752be2c68412f4e345d1450ac8bd95726ecf858a68fb8a893660b1a9b064a9"}},{"ruleId":"D2","level":"warning","message":{"text":"LoadBalancing.tryAgain (cognitive 28): LoadBalancing.tryAgain has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 6, match/switch 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":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d74375eb46f838a0af8816a646db575f27980beb505b1ba921c58a15d784aca"}},{"ruleId":"D2","level":"warning","message":{"text":"CookieHashSelection.UnmarshalCaddyfile (cognitive 28): CookieHashSelection.UnmarshalCaddyfile has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 2 (3 pts), loops 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":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"7346e5d6880d32c5d333cbf515a36255eac4afbeab86d24572844eb18a3f595a"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyfile.isSingleUnbracedSite (cognitive 27): caddyfile.isSingleUnbracedSite has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, loops 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e7eed6c28ae4c04e7b751287b6444b6a804d782d79dde5b58c72e2d9dec80c"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.parseEnvFile (cognitive 27): caddycmd.parseEnvFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/main.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4be2d31b7a3da846f19d385b69e993e1fcc510a3845ccc3ee3b0fcd825fbec"}},{"ruleId":"D2","level":"warning","message":{"text":"Intercept.UnmarshalCaddyfile (cognitive 27): Intercept.UnmarshalCaddyfile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (23 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 16). 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":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"42431a1cf2edc53c07ff123bd66a087cbb9cf1816010615d866e672f18d7b214"}},{"ruleId":"D2","level":"warning","message":{"text":"maphandler.parseCaddyfile (cognitive 27): maphandler.parseCaddyfile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 5 (9 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/map/caddyfile.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1524f3c048c621749464f20a75338b25ee5ec8b52a2a4f1e31212cdf9b44569d"}},{"ruleId":"D2","level":"warning","message":{"text":"StaticResponse.ServeHTTP (cognitive 27): StaticResponse.ServeHTTP has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 6, loops 2 (3 pts) (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":"modules/caddyhttp/staticresp.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7f177e0f73ab6124367613c1c712026b3769915d8b456a91c1104440861c64"}},{"ruleId":"D2","level":"warning","message":{"text":"CA.Provision (cognitive 27): CA.Provision has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/ca.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8052fadc1a53f97536699adf713ea2b08b461351cdbed36ac9f230ff8e0f59c7"}},{"ruleId":"D2","level":"warning","message":{"text":"caddytls.ParseCaddyfilePreferredChainsOptions (cognitive 27): caddytls.ParseCaddyfilePreferredChainsOptions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 1 (2 pts), boolean chains 1, loops 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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63793942c87c4e26c70e65cbfe9ac3a60b4de7a573c5caf551036ad7cd28dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationPolicy.Provision (cognitive 27): AutomationPolicy.Provision has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/automation.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa39fb16d46d0e8973521aced2cf087832fb5a5d84daf919b0810166432f0628"}},{"ruleId":"D2","level":"warning","message":{"text":"TLSConfig.unmarshalCaddyfile (cognitive 27): TLSConfig.unmarshalCaddyfile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (21 pts), match/switch 2 (5 pts), loops 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":"modules/caddytls/capools.go"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed95ceb95ba46d74dabf7f5cdad6a51378e5abe3599bb5fa99845992f91e2035"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.Cleanup (cognitive 27): TLS.Cleanup has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"257b6a81472096cbdac7dcee1074bd1beb1bac7dd7e9833de5fd26e0d2f01d0a"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.directive (cognitive 26): parser.directive has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 5, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ee03a8a0088eba759716962cd73c735107eefba67a46f60f6df5184fe70689"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.CELValueToMapStrList (cognitive 26): caddyhttp.CELValueToMapStrList has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (9 pts), match/switch 2 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"14dce564be682a6f873f59f1e30591efda53fb6806732d60d45177b175e91715"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.parseSegmentAsConfig (cognitive 25): httpcaddyfile.parseSegmentAsConfig has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 5 (10 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b6a3c8f020db4d017fca1e519cd32e5e7d504d6c0a55b3828f9ddab4caa311"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.CELMatcherRuntimeFunction (cognitive 25): caddyhttp.CELMatcherRuntimeFunction has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (25 pts) (nesting depth added 12). None of this is in the body itself: all 25 points belong to one function literal inside it that branches (line 660). 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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"340879ef46cc9b59292e44fc0e9fa254dd79918d3f003eb84392ca1cc16d75c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Intercept.ServeHTTP (cognitive 25): Intercept.ServeHTTP has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 3, loops 2 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 10 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":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab12fe1c77bb1645e0c7743259f31f8bf7adb2c4821278f4c67647f5ef0669c"}},{"ruleId":"D2","level":"warning","message":{"text":"push.parseCaddyfile (cognitive 25): push.parseCaddyfile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 16). 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":"modules/caddyhttp/push/caddyfile.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"210e334bbdb936532f23d1f0846a2714c426baecd717c9ec7c480fa4ae2c9e99"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.logRequest (cognitive 25): Server.logRequest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59980be8350c22bc6e32bb6b9b64b538cfccda34783c91304e0bddcf236f3e9"}},{"ruleId":"D2","level":"warning","message":{"text":"AppendEncoder.UnmarshalCaddyfile (cognitive 25): AppendEncoder.UnmarshalCaddyfile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 14). Of this number, 22 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":"modules/logging/appendencoder.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae0b51a0db59b481f8cc155305f52aca2f388d2614ba7310ccb89aae3473bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.overwriteFormattedFiles (cognitive 24): caddycmd.overwriteFormattedFiles has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2, 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":"cmd/commandfuncs.go"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd09fe914e7833a2189561f11cbcba7516a071450fbfe2527f982f2a9b8a70b"}},{"ruleId":"D2","level":"warning","message":{"text":"rewrite.buildQueryString (cognitive 24): rewrite.buildQueryString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 8). Of this number, 19 points are the body\u0027s own statements and 5 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":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95ec30576f9060a36798fc6e79d8ccbd6de4714109c82dfc73db8bee14348c1"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPCertPool.Provision (cognitive 24): HTTPCertPool.Provision has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/capools.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cec76e530fad4090261fcb0915f352dadc5189b9cb97c267d4e67a42c2f9ff"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.HandleHTTPChallenge (cognitive 24): TLS.HandleHTTPChallenge has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"055416bb32c2ab80614db8bd8eab5558d81661652849ced310e8f1e96b7700c8"}},{"ruleId":"D2","level":"warning","message":{"text":"IPMaskFilter.UnmarshalCaddyfile (cognitive 24): IPMaskFilter.UnmarshalCaddyfile has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filters.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"346a0756d090b585ea5b67e327d51719d333c6341fe851ece3f5902403fdd1d2"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.applyServerOptions (cognitive 23): httpcaddyfile.applyServerOptions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3, boolean chains 1 (nesting depth added 10). Of this number, 22 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":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2ec378a43cf5d0c3339a0e02b1e65828805d167edef489c7b146c22d2093ed"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPLoader.makeClient (cognitive 23): HTTPLoader.makeClient has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httploader.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7efbbafb42fa672718473c806e47ae9de2febaa502a5afc117471dc7238c5de"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPolicies.Provision (cognitive 23): ConnectionPolicies.Provision has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1943f12fbc01bc3ff6c0ad8cdca28d0dee398071e78dfc003db88f9c508d82"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.indexConfigObjects (cognitive 22): caddy.indexConfigObjects has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 2 (5 pts), loops 2 (4 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddy.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade1f52f5a42886b8ce1e5022a967242060815441a78a75c61dc7c7d350915c5"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.listenReusable (cognitive 22): caddy.listenReusable has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (22 pts) (nesting depth added 8). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 43, 67, 88). 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":"listen_unix.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"df68515f52d293579341fd9314dd221e44fac352398d21d6448ad024a4cd6ea9"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyfile.hasUnformattableToken (cognitive 22): caddyfile.hasUnformattableToken has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, loops 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":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4093c93b34f8b17f0a51cbe72991051ec85f129ecbd2bf49a1abc6d9150afdf"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.CELMatcherDecorator (cognitive 22): caddyhttp.CELMatcherDecorator has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 2 (nesting depth added 6). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 575). 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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bb2396e1312d2c6fcead63acaa9d324756478d9b91c70f27ac1a61296d06ce"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Validate (cognitive 22): App.Validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 4 (9 pts) (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":"modules/caddyhttp/app.go"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20a79d02b6e5e75d5e66bb859cb0c286a54863bfcd761eb378e5373d0c37d26"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchFile.UnmarshalCaddyfile (cognitive 22): MatchFile.UnmarshalCaddyfile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f8097cdf88940afc9c2da20c8039e570707b25911778ae1f0f1295b4aab34b"}},{"ruleId":"D2","level":"warning","message":{"text":"headers.applyHeaderOp (cognitive 22): headers.applyHeaderOp has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/headers/caddyfile.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa650594e05cb0732b22bf15ac7a823c7944de8d3e5a07115df588aabd9496f6"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.Manage (cognitive 22): TLS.Manage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1abed9d3fa54ca97a7b0b695ee079f7b7dffd2e1d32cc19c7d35e0d2fe0321b"}},{"ruleId":"D2","level":"warning","message":{"text":"Zstd.UnmarshalCaddyfile (cognitive 21): Zstd.UnmarshalCaddyfile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 2 (3 pts), 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":"modules/caddyhttp/encode/zstd/zstd.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"880abdd0c14d318d54d1a674fd7ee12732cbf030b3b5edb69e527a54f0e9186e"}},{"ruleId":"D2","level":"warning","message":{"text":"fileserver.parseTryFiles (cognitive 21): fileserver.parseTryFiles has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (5 pts), loops 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":"modules/caddyhttp/fileserver/caddyfile.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"533a5bcb2ed3c5ecc7c7c5119051baedce743de8e60d0fcbe23d0a024c5db698"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveHealthChecks.Provision (cognitive 21): ActiveHealthChecks.Provision has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 3 (4 pts) (nesting depth added 4). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4f01f04977f15cf554ef9cae3f5b9e7ef0533896bc30f0bc158d78341196c4"}},{"ruleId":"D2","level":"warning","message":{"text":"templates.extractFrontMatter (cognitive 21): templates.extractFrontMatter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, 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":"modules/caddyhttp/templates/frontmatter.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ccaf874bbf59c2dff0961c41b6ca221a069d2893ea8ced57dfb8246dbe6ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"StoragePool.Provision (cognitive 21): StoragePool.Provision has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/capools.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"4213741007853ed0a4a0387c218d1b868bb3fa126f156a1050252228d17d874b"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerType.extractNamedRoutes (cognitive 20): ServerType.extractNamedRoutes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"8520a1f3af2f7464f1d0f2c5fe22eabc35f417d3da2d8c198d89c15305c2f7c4"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.cmdStart (cognitive 20): caddycmd.cmdStart has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2, match/switch 1 (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"cmd/commandfuncs.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa42be9ce74fd84c23b236bc2c1853c3d5ca00e261ee47557bfc102e2af6084"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.cmdAdaptConfig (cognitive 20): caddycmd.cmdAdaptConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/commandfuncs.go"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9d328a66d35d12954ec60cb3c1e8e34f5467be6b02eb1424caa91c9a70805f"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkAddress.listen (cognitive 20): NetworkAddress.listen has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 1 (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":"listeners.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"515adc113304383c16889289f6348da3e58c770d48eb53840ece45826ea92cbf"}},{"ruleId":"D2","level":"warning","message":{"text":"Logging.Logger (cognitive 20): Logging.Logger has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logging.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f000cea751ab7870658df776548eb74c9ad88653d66cf51b926e3d58720a357f"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.CleanPath (cognitive 20): caddyhttp.CleanPath has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (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":"modules/caddyhttp/caddyhttp.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5764049c3057339eb028906b1ddbe145b76d37c7839aa624930ce0b8eb672c6"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.Validate (cognitive 20): TLS.Validate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44b5299e88f3b54d3f6d39df068e497607eb97bd59f3e736db856ade2765c46"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.provisionContext (cognitive 19): caddy.provisionContext has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 540, 505, 573). 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":"caddy.go"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1bf3f89e90ebda308ff127d2f979e49997980496b6eec94eb6221afb80b586"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.newBaseAutomationPolicy (cognitive 19): httpcaddyfile.newBaseAutomationPolicy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 1 (2 pts) (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":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cbdfcbd987eaf3b6b687a4a9ca07b3f86a200293b59696ebc39d8d3cc7ad5f"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.getModules (cognitive 19): caddycmd.getModules has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/packagesfuncs.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6cfdc0b95d3fa33df3ffcb78a29f5eade55282cef653fced5193089ecd45f5"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomLog.provision (cognitive 19): CustomLog.provision has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (7 pts), boolean chains 2, jumps 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logging.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea7e308682ff3bf15647ced81f3747c0998eb7a1356fda231f87508c2b6376a"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.DetachResponseWriterAfterHijack (cognitive 19): caddyhttp.DetachResponseWriterAfterHijack has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/responsewriter.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d36621fbe6ae7d472a6015407513e26e1ee91ec183f4444179313c1905099b"}},{"ruleId":"D2","level":"warning","message":{"text":"Intercept.FinalizeUnmarshalCaddyfile (cognitive 19): Intercept.FinalizeUnmarshalCaddyfile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 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":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0962b1ead1ad610d14d28f36c3cb334faa67e67d86acdcb1578819c79db6c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.FinalizeUnmarshalCaddyfile (cognitive 19): Handler.FinalizeUnmarshalCaddyfile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"d460de54c4e97c8daac40f7bc59f1e1196d8040260561f0349f7ac856cdc3bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"StaticResponse.UnmarshalCaddyfile (cognitive 19): StaticResponse.UnmarshalCaddyfile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (3 pts), boolean chains 1, 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":"modules/caddyhttp/staticresp.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d11fca8a47f6c151b4d72b5dba88906cf5c082cc72a06c852bcf224337957dc"}},{"ruleId":"D2","level":"warning","message":{"text":"caddytls.loadECHConfig (cognitive 19): caddytls.loadECHConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 pts) (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":"modules/caddytls/ech.go"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20d0cf589d407caaa26a0426b3f6e31c83d09154425e272107f7b451ef5d007"}},{"ruleId":"D2","level":"warning","message":{"text":"ACMEIssuer.makeIssuerTemplate (cognitive 19): ACMEIssuer.makeIssuerTemplate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 pts) (nesting depth added 7). 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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e43ca911912a6cee788fa074158d5745a1fbb3fba625a752afe084044eddd21"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientAuthentication.ConfigureTLSConfig (cognitive 19): ClientAuthentication.ConfigureTLSConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (2 pts) (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":"modules/caddytls/connpolicy.go"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd821e7b394e4f91e2242e099b17d866423dd83cee21c4d7f008d965aa8b3af"}},{"ruleId":"D2","level":"warning","message":{"text":"ECH.Provision (cognitive 19): ECH.Provision has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 4 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":"modules/caddytls/ech.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05a4a267369fa640face7bb6fc41fe8ee43f3b3cf2fc549ed7d8af9128e6858"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiRegexpFilter.UnmarshalCaddyfile (cognitive 19): MultiRegexpFilter.UnmarshalCaddyfile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filters.go"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"634ef29ccd3b5b957a82e6e8b9cba0b5c21d238c7c3a9f3982048af366ea4bd9"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.ParseNetworkAddressWithDefaults (cognitive 18): caddy.ParseNetworkAddressWithDefaults has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (18 pts) (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":"listeners.go"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4a067a6ee6ba5f4f071dc89785ab209cbb88635173a44a8804424bc3fbbe39"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyfile.makeArgsReplacer (cognitive 18): caddyfile.makeArgsReplacer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2 (nesting depth added 7). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 100). 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":"caddyconfig/caddyfile/importargs.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"434dde4a370d36c57d8723f94cce9cb8ee275f23507c3d093acbabc1273b61d3"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.DetermineAdminAPIAddress (cognitive 18): caddycmd.DetermineAdminAPIAddress has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (18 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/commandfuncs.go"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12ae0d23655baa6b7586d28dc4c96c3405afb300636190a22f82f3a47fdc234"}},{"ruleId":"D2","level":"warning","message":{"text":"caddycmd.upgradeBuild (cognitive 18): caddycmd.upgradeBuild has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 1 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"cmd/packagesfuncs.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3882720b298683027a0d6f536b6c07d9d1a8094df529d8f92ee9cf0eafe1e08f"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseLog.provisionCommon (cognitive 18): BaseLog.provisionCommon has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (18 pts) (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":"logging.go"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabe8e55f5642d7946b736da253a1ce1f7b3fa92c12334a4351e308c8daa8b74"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.HasWindowsShortName (cognitive 18): caddyhttp.HasWindowsShortName has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 6). Of this number, 17 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":"modules/caddyhttp/matchers.go"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f00691feae176250e693e0d7b9821a7723beecdf0e63e60a847010f93d96c3"}},{"ruleId":"D2","level":"warning","message":{"text":"caddyhttp.ParseCaddyfileNestedMatcherSet (cognitive 18): caddyhttp.ParseCaddyfileNestedMatcherSet has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd9912b5260d183bd99b39b7a75d0e7b63d9ab20ec6173b8921ade5df0b82bb"}},{"ruleId":"D2","level":"warning","message":{"text":"HeaderOps.Provision (cognitive 18): HeaderOps.Provision has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/headers/headers.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0168eb702827daa478c1fe264dd5a7068071eeb5d5c6ccb21d89d8705016ba10"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchHeader.UnmarshalCaddyfile (cognitive 18): MatchHeader.UnmarshalCaddyfile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"07df8e9521de94cbc12350b0f2b04eb526ecefb502291a40da4c4f1e04f25cde"}},{"ruleId":"D2","level":"warning","message":{"text":"reverseproxy.handleUpgradeTunnel (cognitive 18): reverseproxy.handleUpgradeTunnel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), jumps 2, match/switch 1 (2 pts), boolean chains 1, loops 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":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a17f95bf4b767beca6238f522a90c4ca26e56961e6d393a79d953528b08154b"}},{"ruleId":"D2","level":"warning","message":{"text":"echConfig.UnmarshalBinary (cognitive 18): echConfig.UnmarshalBinary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 1 (nesting depth added 3). 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":"modules/caddytls/ech.go"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"963cbf8a17c80f354b372cd33e7b6e23173053c1fc61009f7f01c9d83397496c"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchRemoteIP.UnmarshalCaddyfile (cognitive 18): MatchRemoteIP.UnmarshalCaddyfile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/matchers.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"5383c81a039f705682e4ae2cedc6de82049729d14168459436b95f6eb2654cd0"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.exitProcess (cognitive 17): caddy.exitProcess has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 2 (nesting depth added 3). Of this number, 9 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"caddy.go"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f84e72e52edc2d550c12391393613ace2be82d5acdc9e0520f69e20db31636a"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.begin (cognitive 17): parser.begin has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts) (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":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc56e77f72d6b3b2fa048aaaa65439b1c68e27637e5483ded1e063dae86f3aad"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.sortRoutes (cognitive 17): httpcaddyfile.sortRoutes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, loops 1 (nesting depth added 2). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 470). 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":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9c2729051e2ce809012ffebc01ec7f04930251a2b030ed568197c6e22613a8"}},{"ruleId":"D2","level":"warning","message":{"text":"httpcaddyfile.parseMatcherDefinitions (cognitive 17): httpcaddyfile.parseMatcherDefinitions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2, boolean chains 1 (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 5 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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13fb2070b4945e8864f8266941ded3c5a29f7f8434cfef05b699801f6e07540"}},{"ruleId":"D2","level":"warning","message":{"text":"Tester.initServer (cognitive 17): Tester.initServer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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":"caddytest/caddytest.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b820957f99233850648dfbf5e53e194fda99777d4e40b78daa26600d656ddc16"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPBasicAuth.Provision (cognitive 17): HTTPBasicAuth.Provision has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/caddyauth/basicauth.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e295260ab4d65f7a4013f84e6e09fd2212c5c90d74fe72a49328ece72700ed78"}},{"ruleId":"D2","level":"warning","message":{"text":"fileserver.isCELTryFilesLiteral (cognitive 17): fileserver.isCELTryFilesLiteral has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0656c12423325c6a4a9e9dbf651bf8e8727a55b84a583310c652708fbb22e5"}},{"ruleId":"D2","level":"warning","message":{"text":"browseTemplateContext.applySortAndLimit (cognitive 17): browseTemplateContext.applySortAndLimit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browsetplcontext.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d929bd63fdac43403d3f24b0ec757adb401754022d812f22fe682b3b55e79335"}},{"ruleId":"D2","level":"warning","message":{"text":"FolderLoader.LoadCertificates (cognitive 17): FolderLoader.LoadCertificates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 70). 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":"modules/caddytls/folderloader.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e90119f56de68900f6843514da88241ded2c4565f63a1ca803681a4a4688d1"}},{"ruleId":"D2","level":"warning","message":{"text":"NetWriter.UnmarshalCaddyfile (cognitive 17): NetWriter.UnmarshalCaddyfile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/netwriter.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6f81dc94b64ae0a8c1eee6c970b7e403d69c6951465ea61784835237811837"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.handleConfig (cognitive 16): caddy.handleConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79f5e7ea118ca7b3312265f07ffa5ac0d51fce349ff585109539de127b7196e"}},{"ruleId":"D2","level":"warning","message":{"text":"caddy.run (cognitive 16): caddy.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts) (nesting depth added 7). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 444, 430). 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":"caddy.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"8437ee674055f92567866a7968a1ac082a1d22137ba2fd0a998c9b1d0e0e1a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"ListenerWrapper.Provision (cognitive 16): ListenerWrapper.Provision has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4, boolean chains 1 (nesting depth added 4). Most of this is not in the body itself: 6 of the 16 points are its own statements 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":"modules/caddyhttp/proxyprotocol/listenerwrapper.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adb72aa7f28f218561f99da241c06837a6fc87ac32d2f9d5e0eeb190ec960d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ListenerWrapper.UnmarshalCaddyfile (cognitive 16): ListenerWrapper.UnmarshalCaddyfile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/proxyprotocol/module.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b97f7e8b476208149fa8e7de382a9263975f386e8871f24801aca0f6a27d91"}},{"ruleId":"D2","level":"warning","message":{"text":"CookieHashSelection.Select (cognitive 16): CookieHashSelection.Select has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1 (nesting depth added 2). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e8d240ac50bedd5fdceae2cee6c1d6f969c1ac796a3763803104727c7be3ea"}},{"ruleId":"D2","level":"warning","message":{"text":"MatcherSet.MatchWithError (cognitive 16): MatcherSet.MatchWithError has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/routes.go"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f18dd8c8036f3ec33938c553155e45f19d99699ca120f2c125ce5c4243cb82"}},{"ruleId":"D2","level":"warning","message":{"text":"StaticError.UnmarshalCaddyfile (cognitive 16): StaticError.UnmarshalCaddyfile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (3 pts), boolean chains 1, loops 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":"modules/caddyhttp/staticerror.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"adddbd7c0455ab90d446ac4cf38ffc4d04157956af3f5493618f3adbd696bc5f"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateContext.funcMaybe (cognitive 16): TemplateContext.funcMaybe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/templates/tplcontext.go"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"920943ddd221e169d8035af70f578ffe247895543470f31ea4acb7c6ea5a58b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Timeouts.ServeHTTP (cognitive 16): Timeouts.ServeHTTP has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (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":"modules/caddyhttp/timeouts/timeouts.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b37f81945dc5b9f04792c32419eaca43772fdf2da31993be79c2ce1f4a9334"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchURLPattern.UnmarshalCaddyfile (cognitive 16): MatchURLPattern.UnmarshalCaddyfile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/urlpatternmatcher.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5b365972b900b4b7bb5e99645cce8da3635c02cc3543c6ba638c09353a69e4"}},{"ruleId":"D2","level":"warning","message":{"text":"VarsMatcher.MatchWithError (cognitive 16): VarsMatcher.MatchWithError has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/vars.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0066b49778b2459c7283ad817b11632af3768bea23d4ced4182dcbb2fdb01bd5"}},{"ruleId":"D2","level":"warning","message":{"text":"CA.loadOrGenRoot (cognitive 16): CA.loadOrGenRoot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (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":"modules/caddypki/ca.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde7d6e2bcbb72ddbb8df7bb32687750e71d4f956faa308bf5bf7e0a223f8aa9"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyPair.Load (cognitive 16): KeyPair.Load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/crypto.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b607930aa6b5868ecf6354c1ff77fb737eea2c0b7755f740e62f133e20d4e41"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.AddAutomationPolicy (cognitive 16): TLS.AddAutomationPolicy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), boolean chains 1, jumps 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":"modules/caddytls/tls.go"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ead2eb9bab7ff12b405b1ffcd1a76ba38f09eb4275780c729bfdf028f49202"}},{"ruleId":"D2","level":"warning","message":{"text":"FileStorage.UnmarshalCaddyfile (cognitive 16): FileStorage.UnmarshalCaddyfile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 pts), 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":"modules/filestorage/filestorage.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc878bf3df1c62cf80c5734b0fe9940f846faf729b8b5fc96311c69ebb13a96"}},{"ruleId":"D2","level":"warning","message":{"text":"LogEncoderConfig.ZapcoreEncoderConfig (cognitive 16): LogEncoderConfig.ZapcoreEncoderConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 4 (5 pts) (nesting depth added 2). 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: 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":"modules/logging/encoders.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f4a061c25e370c948e83e4e2e8e11803d422332d2849d1718e1a35a3530f2f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Handler.UnmarshalCaddyfile: MethodTooLong \u2014 UnmarshalCaddyfile runs 544 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 444 over it, 5.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ca01e9f7e589013ec5f2e2642ab391be491220a21b6c8381ec444193f3687c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: httpcaddyfile.parseTLS: FunctionTooLong \u2014 parseTLS runs 321 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 221 over it, 3.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"81616f0041119d52dcbd2f5fcadbccaf31498ed5df35b7fa90e96ede5d72fd51"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerType.serversFromPairings: MethodTooLong \u2014 serversFromPairings runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cafa617039d5b0b27a28a520eebd17df4aac4f131f8200daf97bc801b1dc0d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPTransport.UnmarshalCaddyfile: MethodTooLong \u2014 UnmarshalCaddyfile runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d4d67bae2759ac5b6b7ac9fae3313f35ec72fcc223e812afd6de1b5292a96f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerType.buildTLSApp: MethodTooLong \u2014 buildTLSApp runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4a32ea9232ede58a62b62fc2ea394649d5916387156a34f89bf0680d1bcf75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: caddyhttp.addHTTPVarsToReplacer: FunctionTooLong \u2014 addHTTPVarsToReplacer runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e2d8604c93535cc0ea2e289eadc9318bdecf3018b6d63594ac7f799fe08305"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: httpcaddyfile.unmarshalCaddyfileServerOptions: FunctionTooLong \u2014 unmarshalCaddyfileServerOptions runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"119211b222edc54d2a538912dc60b279801468c569b9e213924cbd582460f0d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Server: TooManyFields \u2014 71 stored fields beside 41 methods. The bar is 30 stored fields; this is 41 over it, 2.37\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"00669e0cd935e877776dd92c8adfd1abdf1aa23a703d06fc52ba19416d7beb90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reverseproxy/reverseproxy.go: FileTooLong \u2014 1127 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: Handler (20 blocks, 107-2299). The bar is 500 significant lines; this is 627 over it, 2.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36320261d719a77204b2b20fbb9f4e765a4436d69bd10543a49607c745e9bbf8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reverseproxy/caddyfile.go: FileTooLong \u2014 1054 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 554 over it, 2.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec9a9978ef428bb5293ac6a7dc12b22b88051eaaa58750d73020571c22a6ad9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: httpcaddyfile/httptype.go: FileTooLong \u2014 1018 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: ServerType (5 blocks, 59-1698). The bar is 500 significant lines; this is 518 over it, 2.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"291b173cc2e8105c4f3b4c1857b614943af7bba6e32463c2498f091f3b1974e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: caddycmd.init: FunctionTooLong \u2014 init runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/commands.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cbce616b9f5ed4d63eaa93c20fea2907811795e4be7ea3345d7d4c9e0a61e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPTransport.NewTransport: MethodTooLong \u2014 NewTransport runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fdb50be3af4693aed4b40f3a56bab64c2b0467b97b82e6577e52aa9e8c1d34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: caddyhttp/matchers.go: FileTooLong \u2014 951 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 451 over it, 1.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ce1d7548fe78954e8791b6da1b7e24888de51511a5880d8bf34a9f4b0f8b10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.automaticHTTPSPhase1: MethodTooLong \u2014 automaticHTTPSPhase1 runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/autohttps.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5767c1c1d75698675eebe6340ce262af7eece419e82a00e105c03b70987437d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: caddyhttp/server.go: FileTooLong \u2014 909 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: Server (40 blocks, 50-1802). The bar is 500 significant lines; this is 409 over it, 1.82\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5050b26e99c5b4ee0818fbad2359d2de58692ce1f5652ec72b132d1d6354169e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: httpcaddyfile.parseLogHelper: FunctionTooLong \u2014 parseLogHelper runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e1743c74d89eba8af6c185e40b0135f74770d27774c3a96543551a6c4de016"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: lexer.next: MethodTooLong \u2014 next runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/lexer.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec39971f11632c8359f199f84c954dca2eef2f4ac283a56cccefa534348d8528"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Handler: ClassTooLong \u2014 706 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods, 20 blocks, lines 107-2299. The bar is 400 significant lines; this is 306 over it, 1.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"66511ae48b1ac45dbe607af50291f3f8a78a41719e60cbfe07ef6e9ce1f4245b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Server: ClassTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods, 40 blocks, lines 50-1802. The bar is 400 significant lines; this is 296 over it, 1.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae93803a8f91be1546b91c310f0bba4177f6668c82f178274c29220a8bcbf10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerType.Setup: MethodTooLong \u2014 Setup runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2062d9b2cd40209121e8f5007111fa6548301913656603ed5fba9b1ea874edea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileServer.ServeHTTP: MethodTooLong \u2014 ServeHTTP runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"20662249215a01485b81bbfa802b0fdef998a8673d256a2a99770946d9bca296"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ACMEIssuer.UnmarshalCaddyfile: MethodTooLong \u2014 UnmarshalCaddyfile runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/acmeissuer.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"b357372b3b90fdee3ed9a5ee5cd7f76ab23e65960e5979569a1f461390ac5b20"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MatchFile.selectFile: MethodTooLong \u2014 selectFile runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02d66e6eef01e3d9676378eb93392e925ffc563ae9e7d0c85de913cf999b832"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./admin.go: FileTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 273 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c5c92f8a3d77964b0ea2c7dcb5d0fb0471ca6d37d0032dd56d6eef8068c685"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ServerType: ClassTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods, 5 blocks, lines 59-1698. The bar is 400 significant lines; this is 210 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4e56fbeedd69259bec43109cf5af09901b497cb66571b1b6e0c20e6c0840d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: httpcaddyfile/builtins.go: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 232 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3479d7eed4c7165e7104d1b390a886fb78a19351680d145571f25c773d4a4e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.ServeHTTP: MethodTooLong \u2014 ServeHTTP runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e8c4dbafabc260ae3cafee69b1d40d1a2e41651bb2b0596d606f05d6729277"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: reverseproxy.cmdReverseProxy: FunctionTooLong \u2014 cmdReverseProxy runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/command.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ce3dc6dffe9eaeaadfebdfa692f0c442f482ff3f8efc359b8479c09d17b8b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: fastcgi.parsePHPFastCGI: FunctionTooLong \u2014 parsePHPFastCGI runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe49d7d78b9e677fefdefa903b351fc376b666cec981d47bbd64b3783404979"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: caddyhttp/celmatcher.go: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3892f20ec878e869e6e404fa4ff875d4813aab8785dc8b96eca765a47d2b462a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Server: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de04b7a4d005eed2bbf72130dbcd2943139cab4b1b5f69803b95dca9db6fd5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: httpcaddyfile/tlsapp.go: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 172 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c481046f8fca27f139488695d3c400781901a3f7317682d2d47cbb6aefc50a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/commandfuncs.go: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 140 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/commandfuncs.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b5f8f2a6fe9134879124a964133dc1539031d94bd1f248ce8546913e5ebe67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: caddyhttp.celMatchLiteral: FunctionTooLong \u2014 celMatchLiteral runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75229358e00f245aa0a9e0342b267d11859a95e3a1295cff67488f852b7738f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TLS.Provision: MethodTooLong \u2014 Provision runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b941e4959b74664106c2ee3c52ddd8fdd06eeaab4004509a68d9bddfa4f919"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: caddytls/ech.go: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33d1397a8a71e0fffb74e97aa98d309d17e7b39d895e92ac2583ea006559caa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.Provision: MethodTooLong \u2014 Provision runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/app.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac0dcd89900f365757c2e6c7021a04e3c9939946b67d8409c04c992f719b839"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./caddy.go: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 124 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04682fb1aa5b7c2c6877837359baa4a5c355e58019ffb4fdff1af9f17618d08"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileWriter.UnmarshalCaddyfile: MethodTooLong \u2014 UnmarshalCaddyfile runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filewriter.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"260848c5e267c7c8994bd085e0f8b612ae4d72263ce8051bd351343b75d3e1da"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TLS.publishECHConfigs: MethodTooLong \u2014 publishECHConfigs runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd058a43e58201323cfb831ebb52b5285ae1349e06e5d6d03e5fae9f3778a962"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TLS: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods, 22 blocks, lines 54-1094. The bar is 400 significant lines; this is 88 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2e4575521135208d2a2fb3c7d2c298c258bc2f9aae2843948cb7dc8cc4595b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Handler.handleUpgradeResponse: MethodTooLong \u2014 handleUpgradeResponse runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"67600549ea39a0d371f98cb7a2cc7278d1f0290f79a70538458331cbe5a1bd38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: caddytls/connpolicy.go: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 94 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ece30e85eb6dae650566ab5ea538e737e0880d9e5e6af5fe5a78f692759af8b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Dispenser: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/dispenser.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec225647c6aade62ae236b344cb808eab4dfc507cae3b1bad0675d225e0b393"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Handler: TooManyFields \u2014 35 stored fields beside 31 methods. The bar is 30 stored fields; this is 5 over it, 1.17\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbc7c58c44bd29413de370d6a12a84f259ca455f00085d7fffa4ff82d4182bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: logging/filters.go: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 71 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filters.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef50fe5548fbc272ad8faa3e23fbe1ba8db530efd6b4ea085db4dfedc23d8de"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Handler.Provision: MethodTooLong \u2014 Provision runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc9e7d5d28722e78cde797876478315f04caa2ba69743678f06f6bed61bb30a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: caddytls/tls.go: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: TLS (22 blocks, 54-1094). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9b4f4cbbbeafa7cf38460c9db47ba82e851775ce068e73a86394760f4ac473"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: caddy.unsyncedConfigAccess: FunctionTooLong \u2014 unsyncedConfigAccess runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"19272170bf3b839783b482858aade39bd10b9eba1f095dc1083844d50df1b976"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.Start: MethodTooLong \u2014 Start runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/app.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c224fa922c473ec5fc7eb5a9e6a951dc0f6e9090724e36ec47ff6fffda8a891"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Handler.doActiveHealthCheck: MethodTooLong \u2014 doActiveHealthCheck runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd4c54479f9644e20b77850939d738355cbe53bd6d2bafd71649cdbd1ff6dc9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: caddytls/capools.go: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 52 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/capools.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13940f1712e81fa7784e19da9bf3f3b510424d8b6d7968421db1f8df28ef23c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileServer.UnmarshalCaddyfile: MethodTooLong \u2014 UnmarshalCaddyfile runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/caddyfile.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaccb6a8e2bdddb026603a0d6d6afa368c8105b76244e2e68b22a9b48449d19"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Handler.reverseProxy: MethodTooLong \u2014 reverseProxy runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb10015864380952ecfcfbb67dd483363306ba00429e85090287cad1ba2dfe20"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Transport.buildEnv: MethodTooLong \u2014 buildEnv runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e84a5bda972ad5e2e9e0cc943971a26fd5576ef5a0c4f5120c126daba8e51e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reverseproxy/streaming.go: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbb63ce26ac0229cd05d8b164a96898ab103775ec6132c7949a53509f7add85"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: forwardauth.parseCaddyfile: FunctionTooLong \u2014 parseCaddyfile runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1641a2604666d782c0674c85a03845d8c7f304b88cb9c92e8dd883bdc96a9ff0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FilterEncoder: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filterencoder.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6bf5a28ed06dc4581936c4fa38bfdd1a5e4dedf7515139902debf047adf6f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Handler: TooManyMethods \u2014 31 methods, declared across 5 files: reverseproxy/reverseproxy.go (20), reverseproxy/healthchecks.go (4), reverseproxy/streaming.go (4), reverseproxy/caddyfile.go (2), \u002B1 more file(s). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd8e60f78f79dd1700496a443f9b304e4f948808ff51ed68ccfc9c33d1f61e0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppendEncoder: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/appendencoder.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e750c9b05a37eb4d2c8c629448f601fef130612c6726dbccc8da5be2f0bbbb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: serverOptions: TooManyFields \u2014 31 stored fields. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"147ac8a5d658c2340c4ff904288ffbaf7ad2b28981b55f6f983ad529284b76ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reverseproxy/selectionpolicies.go: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e36cf1329f4420e08118fee7a7be12340bf8addc8ea9c39051acb6b0159509"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): modules/caddyhttp/intercept/intercept.go:232-294 | modules/caddyhttp/intercept/intercept.go:300-362 | modules/caddyhttp/reverseproxy/caddyfile.go:152-977 | modules/caddyhttp/reverseproxy/caddyfile.go:981-1043 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b84befd054cfeabe4b0faafac3523a6302212fab63202135891c9c285a6488"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): modules/caddyhttp/matchers.go:931-978 | modules/caddyhttp/matchers.go:1406-1460 | modules/caddyhttp/urlpatternmatcher.go:156-199 | modules/caddyhttp/vars.go:383-437 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9e95ae323cdb6410d53d4a12e7bb8d2fcdab8ae19f87a46c08d27f367419a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): modules/caddyhttp/reverseproxy/caddyfile.go:1517-1610 | modules/caddyhttp/reverseproxy/caddyfile.go:1623-1723 \u2014 These two members are one piece of code written twice and then edited apart: 94 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"c107c540b0fe9e54104e45b8214c4337258abfa65b35a1e64a3a034daa26829d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): modules/caddyhttp/matchers.go:1841-1899 | modules/caddytls/connpolicy.go:1135-1178 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e572ea3cc2bef0251fe30e5cf132297a7a13470d9743201e49603ab32ecc5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): modules/caddyhttp/vars.go:177-232 | modules/caddyhttp/vars.go:326-374 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/vars.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d49910a88f89902036e8c25f64daceff4200fa5db6813959327712269d9fa50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): modules/caddyhttp/reverseproxy/upstreams.go:98-128 | modules/caddyhttp/reverseproxy/upstreams.go:258-291 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/upstreams.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a171b51158df5a8d767e0be9086ab57a582c9baa773c90cc9991d6530a727d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): modules/caddypki/ca.go:277-316 | modules/caddypki/ca.go:345-381 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/ca.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8227641776a7bc140b5340173380f6998467585f9d68e9c5cd4ac89ba783c3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): modules/caddypki/ca.go:318-343 | modules/caddypki/ca.go:383-408 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/ca.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4940cd47936a712fa4b2183edab554e3c1c98004ad4db52a611ea4f192e55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): modules/caddyhttp/staticerror.go:62-95 | modules/caddyhttp/staticresp.go:141-179 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/staticerror.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5cacd594b83a85528f73a6a117932414aced1406058e74526616db585c08f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): modules/caddytls/fileloader.go:80-116 | modules/caddytls/storageloader.go:76-112 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/fileloader.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2eaadefc0a109707155acc54524f7e41beb8f8542714d0e9ba28cf1e029ea17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): modules/caddytls/capools.go:232-260 | modules/caddytls/capools.go:317-345 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/capools.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce604daa6ad946490dca46bcf058dc63c1cdff643cb807ed48096d62627ff5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): cmd/packagesfuncs.go:76-102 | cmd/packagesfuncs.go:104-130 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/packagesfuncs.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65e5ccefa50a3ea319b2f4ece181fd514f9c719d228723b897425a1ca538740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): modules/caddyhttp/matchers.go:1302-1341 | modules/caddyhttp/vars.go:274-306 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f1c6c1dfe1fb7c801525c98d683e13621364993d079bc8482f1d0b68bfb529"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): caddyconfig/httpcaddyfile/builtins.go:640-679 | modules/caddyhttp/rewrite/caddyfile.go:41-70 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6ccef29e1cf68d48884e20bd2e64035e9ccbd92ca98af64beec351fec7d592"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): modules/caddyhttp/reverseproxy/selectionpolicies.go:517-544 | modules/caddyhttp/reverseproxy/selectionpolicies.go:597-624 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c3ab48f650643cc7404ddd2369da2e5cd49c5201b3cc2d234370493f12aab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): modules/caddyhttp/ip_matchers.go:155-180 | modules/caddyhttp/ip_matchers.go:262-282 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/ip_matchers.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5d1b14dfa5f7a462bb1f88409029df22f73e7aca3242d61d4d73f153ddbb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): modules/caddyhttp/matchers.go:1806-1837 | modules/caddytls/matchers.go:235-268 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b5ea4b047f62b1b37bf44b7005d7a20d7e05eadee2fa7e8bc6a9e624b89f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): caddyconfig/httpcaddyfile/builtins.go:64-85 | caddyconfig/httpcaddyfile/options.go:340-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fee9f11c084e7d4a31067f1c2f5ad3ee2515504345c841107a5256e91ae91aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): listen_unix.go:239-259 | listen_unix.go:268-288 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listen_unix.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"699089a34dabf5d467c48e083b4c10e27807ffefaef3660987a8abfc1d9701e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): modules/caddyhttp/reverseproxy/healthchecks.go:271-293 | modules/caddyhttp/reverseproxy/metrics.go:139-165 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef1f2bd5e9a63ff0b6cd9480422ccc10acc3595e01eb799c848f8f53ae409da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): modules/logging/appendencoder.go:73-96 | modules/logging/journaldencoder.go:65-87 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/appendencoder.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc38f87f2dd8af5a0573e39502f7b4fed1060bde0dbb968cc782eff75b17434"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): modules/caddyfs/filesystem.go:89-112 | modules/logging/journaldencoder.go:127-154 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyfs/filesystem.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4bd5a631baa508753f0026af71cadce8137063ce17f831c7b0fdd961afce73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): modules/caddytls/distributedstek/distributedstek.go:207-237 | modules/caddytls/standardstek/stek.go:84-128 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/distributedstek/distributedstek.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8a80cf84ee6bed8b53ba26a56a48a1bb4e86df3aef192a2955c1ea946fedef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): modules/caddytls/matchers.go:357-372 | modules/caddytls/matchers.go:473-487 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/matchers.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0366359cfed6dd15c1cbf8e7520fe89d0d78872905326b2c19f4d1d50e6a9fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): modules/caddyhttp/reverseproxy/upstreams.go:140-159 | modules/caddyhttp/reverseproxy/upstreams.go:305-319 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/upstreams.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a7921c27e00c64a2cb3929a073eed60a14746a585d651000a40656a9d70282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): modules/caddytls/fileloader.go:34-51 | modules/caddytls/pemloader.go:34-50 | modules/caddytls/storageloader.go:53-73 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/fileloader.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9307438f941d24acb9329c15ffdaca535d9861442de59d76a61b71f7edd8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): modules/caddyhttp/matchers.go:1682-1703 | modules/caddyhttp/routes.go:444-461 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b54b76a020f345504d848074464d542e63cf30898fb1de328c6143a5c8c80dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): caddyconfig/httpcaddyfile/options.go:184-201 | caddyconfig/httpcaddyfile/options.go:278-301 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/options.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"419b9816c49a21ff48eeb8b50c6a978e060ff15a4428f02d7130264233bc8076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): modules/caddyhttp/ip_matchers.go:75-93 | modules/caddytls/matchers.go:517-542 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/ip_matchers.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe2ca7e0fb4f49f88f072fb5721925e04f1b26a28339beb7f8851a91f30a3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): modules/caddytls/capools.go:95-112 | modules/caddytls/capools.go:185-200 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/capools.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2510f12b6dc988e055817b573a024d4290f54c25f55742a37df63caca2af76a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): modules/caddytls/connpolicy.go:781-802 | modules/caddytls/leaffileloader.go:80-101 | modules/caddytls/leafstorageloader.go:106-123 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f604bc449777d157c82042bbf338000c16553d2063ce4f4529deae7a23dde7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): modules/caddytls/leaffileloader.go:64-78 | modules/caddytls/leafstorageloader.go:85-104 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/leaffileloader.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d84074c99b23e3d6d3f658274ff5bdb9b008dc0314b3d2c21d17d74c88fb2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): modules/caddyhttp/reverseproxy/streaming.go:917-933 | modules/caddyhttp/reverseproxy/streaming.go:935-951 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31226a6b559f07ef03fda6a557a13868a2f96752b72eeb6983cd5b6b4585fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): modules/caddyhttp/reverseproxy/selectionpolicies.go:485-498 | modules/caddyhttp/reverseproxy/selectionpolicies.go:566-579 | modules/caddyhttp/reverseproxy/selectionpolicies.go:650-663 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaf1bae7ce577dc84b316f3764a217c3a9e08fc472b7e71ac090535c1461552"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): modules/caddyhttp/reverseproxy/httptransport.go:945-955 | modules/caddyhttp/reverseproxy/httptransport.go:957-967 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"847af71318d9e254543d6fd85343a318962e77954e064676616bb6109097f3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): caddyconfig/caddyfile/dispenser.go:104-119 | caddyconfig/caddyfile/dispenser.go:125-140 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/dispenser.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3b7b114ac42a50cd57027943d30d7699548bc20565f21aec4811b5c55a4c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): caddyconfig/httpcaddyfile/directives.go:241-257 | caddyconfig/httpcaddyfile/directives.go:613-632 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7899d2e8e3f79622eb6ddda8aa8c7d62fae16540ac6e5e9177c710b0d3b8d639"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): modules/caddyhttp/ip_matchers.go:214-238 | modules/caddyhttp/matchers.go:376-392 | modules/caddyhttp/matchers.go:856-876 | modules/caddyhttp/matchers.go:1026-1040 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/ip_matchers.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd13fc3d63376a258b33ea10e6e4c0680de59dec7db273bbe08a8a9ec09cfec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): caddyconfig/caddyfile/parse.go:799-806 | caddyconfig/caddyfile/parse.go:808-815 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c45ce27f6c42b09c914541d3bdeb952bc6c1cba73f00c2f3dbcff01f2ce2ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): modules/caddyhttp/celmatcher.go:1123-1134 | modules/caddyhttp/fileserver/matcher.go:774-785 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a88e3d892eb224e0a41d97c9108a86f4c75d59618ac88511ab3e18bb006eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): modules/caddyhttp/templates/tplcontext.go:113-131 | modules/caddyhttp/templates/tplcontext.go:224-239 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/templates/tplcontext.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ef4ee9b8339c9bdc1b7c3725e19ade245992882bfbe3dc728b7749928f795b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): caddyconfig/caddyfile/formatter.go:467-480 | caddyconfig/caddyfile/lexer.go:633-655 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"53af6544994d07aa5e85599fef76e5b16fab9b28b3ac7144da67493874effd08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): modules/caddypki/certificates.go:26-36 | modules/caddypki/certificates.go:38-48 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/certificates.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2e2a4d519e9a9d5b002da1dd72f8017470c1dfb1d53ae3d0e2f840e338b303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): caddyconfig/httpcaddyfile/options.go:203-216 | caddyconfig/httpcaddyfile/options.go:465-478 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/options.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8955bc4eb397aa94619f0e1c85a9191116572be5e402a6edda1c7ad37a82f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): modules/caddyhttp/ip_matchers.go:191-206 | modules/caddyhttp/ip_range.go:90-102 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/ip_matchers.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fcd9153919d1edf3eda5d5891a229cabd6b4d1e2f95f0c906acb3af964fb67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): modules/caddypki/acmeserver/policy.go:43-51 | modules/caddypki/acmeserver/policy.go:56-64 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/acmeserver/policy.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4a7371e593c4b6f062476e5cb8ce875946a2a4ad64a792b61e2d97851cb5f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): modules/caddyhttp/reverseproxy/fastcgi/writer.go:31-39 | modules/caddyhttp/reverseproxy/fastcgi/writer.go:131-137 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/writer.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1ebe5bb88c03a97210e504ff91da132a8bb34699f65f57c76592cddd8bcc78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): caddyconfig/caddyfile/dispenser.go:460-466 | caddyconfig/caddyfile/dispenser.go:470-476 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/dispenser.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ac13b3935e0a6c66bbb875975f5b2955b4fc3dbec67944028c45ec6b640f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): modules/caddyhttp/idletimeout.go:335-345 | modules/caddyhttp/idletimeout.go:487-496 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/idletimeout.go"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8a4484d015124e88668b48b8e9836266ff372d1afe9357a761bee9b3bc7d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): modules/caddyhttp/matchers.go:1133-1146 | modules/caddyhttp/matchers.go:1217-1230 | modules/caddyhttp/vars.go:241-254 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9904cae0b20eae69a4ee1efc3b8d7e608f47890344738826b0632508dceb2cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): modules/caddyhttp/reverseproxy/reverseproxy.go:641-657 | modules/caddyhttp/reverseproxy/reverseproxy.go:2411-2424 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d6f4c824f42919000ed7959cc6d2186662b0dfa6e94d56d038251130ba622b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): modules/caddytls/folderloader.go:48-57 | modules/caddytls/leaffileloader.go:45-54 | modules/caddytls/leaffolderloader.go:48-57 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/folderloader.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4526c2e99c1dfed79d7da1cb4230e91ed06bd181f968e518344c3224aff343dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): listen.go:203-215 | listen.go:217-230 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listen.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e420bfe347016c05cfc791b33a0d0dedf59c429f039f09c2b86dc6d782f5bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): caddyconfig/httpcaddyfile/httptype.go:1851-1866 | modules/caddyhttp/server.go:1006-1017 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"b267e509f89fae46e422e44c446772a1eb46eab1b9c37bb77c1074242197d252"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): caddyconfig/httpcaddyfile/builtins.go:684-693 | modules/caddyhttp/rewrite/caddyfile.go:75-84 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cc6013678b2f3d073fc9319cb74e047739b3165e16ef28ae0fa75b4e03c48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): modules/caddyhttp/reverseproxy/selectionpolicies.go:190-203 | modules/caddyhttp/encode/gzip/gzip.go:46-58 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a97d629a3da7954071a857d00d365fc5c8453ce11953007e0934933c53e1d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): modules/caddyhttp/fileserver/caddyfile.go:38-49 | modules/caddyhttp/reverseproxy/caddyfile.go:45-56 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/caddyfile.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2618a1058c17fd06df7ee455afb21a80f5a15134e06b71f3ee3f9e9ddd16c849"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): modules/caddyhttp/reverseproxy/selectionpolicies.go:421-428 | modules/caddyhttp/templates/tplcontext.go:305-312 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb84e95f40e2131bc5389fdbb29da4eaa3c6fd4ab5fb4a522eb58000f82f4d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): modules/caddyhttp/matchers.go:1752-1759 | modules/caddytls/matchers.go:180-188 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b7a0d577fcbb6ba8e39a105596d5b2317f9b888cc6c2e4f06f9f46c2e102c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): modules/caddyhttp/encode/caddyfile.go:31-38 | modules/caddyhttp/reverseproxy/caddyfile.go:1428-1435 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/encode/caddyfile.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"97832583f498ecc4cdd16a37d368cbaab74f3567ff10b4711fdb2c84ff85bc1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): modules/caddyhttp/intercept/intercept.go:301-362 | modules/caddyhttp/reverseproxy/caddyfile.go:982-1043 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a3b1c6d7aa3cab18a23c069e8869b9e062c19542444831720ae3167c6a0419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): modules/logging/filters.go:539-579 | modules/logging/filters.go:662-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filters.go"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"64be5eacbef1c6b085b9360863622bdf92e832879042f3de2656ebe2a069f9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): modules/logging/appendencoder.go:146-183 | modules/logging/filterencoder.go:198-235 \u2014 before extracting anything, compare \u0060modules/logging/appendencoder.go\u0060 and \u0060modules/logging/filterencoder.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/logging/appendencoder.go:146\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/appendencoder.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12ec61b98bbf49699ae78488b28df4e4c10522837405e586e2a27c7e86f3682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): modules/caddyhttp/intercept/intercept.go:250-286 | modules/caddyhttp/reverseproxy/caddyfile.go:883-919 \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 \u0060modules/caddyhttp/intercept/intercept.go:250\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":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f1ea7b3fdf3c1b9e7b452d8aecd0f36e8445a129178c3778eac8d7c94eb440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): modules/caddyhttp/vars.go:186-216 | modules/caddyhttp/vars.go:332-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/vars.go:186\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":"modules/caddyhttp/vars.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0002fb31be7acaaeb435962f34b114f632feffc5d3cdc7d204ce3afebb79e686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): modules/caddyhttp/matchers.go:1774-1803 | modules/caddytls/matchers.go:203-232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98a706765f745c9e3fb52b0b4ac95b53e733d670f851f8de37150a8c944f593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): modules/caddytls/fileloader.go:88-116 | modules/caddytls/storageloader.go:84-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddytls/fileloader.go:88\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/fileloader.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd81c38a2aa7d2ae77badda16b91a801c50cc9352d98bcb6e5c509a327d98f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): listen.go:36-63 | listen_unix.go:119-145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060listen_unix.go:119\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 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":"listen.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"557932c4ec158c6d571d27caf9617c2fa80edff8cc3632386fa5797dda64e384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): modules/caddyhttp/matchers.go:1808-1832 | modules/caddytls/matchers.go:237-263 \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 \u0060modules/caddyhttp/matchers.go:1808\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":"modules/caddyhttp/matchers.go"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8fad80b229c1bad0076420e87ef3a7cb9962ffe67a60f28eb215523be12194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:1557-1583 | modules/caddyhttp/reverseproxy/caddyfile.go:1657-1683 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:1557\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df7d091de5477e4693f6356aa1c4da5099012e15dd81c107b64cec33c41e3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): modules/caddyhttp/reverseproxy/upstreams.go:104-128 | modules/caddyhttp/reverseproxy/upstreams.go:267-291 \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 \u0060modules/caddyhttp/reverseproxy/upstreams.go:104\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/upstreams.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85527136c84af2f76b2e454d04d10e25995af7d1329bb057095583b70803c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): modules/caddyhttp/matchers.go:1303-1326 | modules/caddyhttp/vars.go:275-298 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:1303\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060modules/caddyhttp/matchers.go:1331\u0060 calls \u0060Errf\u0060 and \u0060modules/caddyhttp/vars.go:300\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ca433d6fa7c6e39822b71f631324cc3ea54afbb40cf76f5f10747592b8d52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): cmd/storagefuncs.go:77-97 | cmd/storagefuncs.go:164-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"cmd/storagefuncs.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57a24371fed4a38b862c92035c5dd5e678eb7c9d1c871418bc871402c0e3781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): modules/caddyhttp/celmatcher.go:1139-1158 | modules/caddyhttp/fileserver/matcher.go:790-809 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb9089401b2aa9ce9b3baa39a9b038ba85808d00ac7e61225f5c635db308760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): modules/caddyhttp/reverseproxy/selectionpolicies.go:525-544 | modules/caddyhttp/reverseproxy/selectionpolicies.go:605-624 \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 \u0060modules/caddyhttp/reverseproxy/selectionpolicies.go:525\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"485f90c0640d971fd24f8000011797700ed359eba15dfd8f1a26359bbdf7d452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): modules/caddytls/automation.go:258-273 | modules/caddytls/automation.go:440-459 \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 \u0060modules/caddytls/automation.go:258\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/automation.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e739f3cd79aea0cb8da09042b334cb6e4154699334309a4562223f67b3b78db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201319 lines \u00D7 2): caddyconfig/httpcaddyfile/addresses.go:135-153 | caddyconfig/httpcaddyfile/addresses.go:198-211 \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 \u0060caddyconfig/httpcaddyfile/addresses.go:135\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":"caddyconfig/httpcaddyfile/addresses.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61b247a3ab5340cb0870e4134d812902eab6cfa8d0c48ae3bd8ab16c6fa9c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): modules/caddypki/adminapi.go:95-113 | modules/caddypki/adminapi.go:145-163 \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":"modules/caddypki/adminapi.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7194a0634932ed33d68d1f0f9fe00c22318028d3cd664345b5752dd47608d9d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): caddyconfig/load.go:76-93 | caddyconfig/load.go:147-164 \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. 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":"caddyconfig/load.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff523d72217ae2ee729626eceb5947ec73896847bb9069b10571d51d2c2eb888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): caddyconfig/httpcaddyfile/builtins.go:69-85 | caddyconfig/httpcaddyfile/options.go:350-366 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caddyconfig/httpcaddyfile/builtins.go:69\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"214777b91163bc4cfe687538ca1fc0f32071fd69f32ce3a06c3c8c67fcbfdca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): modules/caddyhttp/fileserver/command.go:193-209 | modules/caddyhttp/staticresp.go:420-434 \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 \u0060modules/caddyhttp/fileserver/command.go:193\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":"modules/caddyhttp/fileserver/command.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b292128e86194c49f3ecf59136a1474f322e05a41eb8c803059986c09292726e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): modules/caddytls/matchers.go:375-391 | modules/caddytls/matchers.go:490-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/matchers.go"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1805dfff2c0ab4bcc1e56565068c4a42064cf4824c857190683e04127351f9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): modules/logging/appendencoder.go:77-93 | modules/logging/filterencoder.go:86-102 \u2014 before extracting anything, compare \u0060modules/logging/appendencoder.go\u0060 and \u0060modules/logging/filterencoder.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060modules/logging/appendencoder.go:75\u0060 calls \u0060NewReplacer\u0060 and \u0060modules/logging/filterencoder.go:84\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/appendencoder.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f80fe8fdd739f9238b09cc947286ba7dc268ca98112c99558fb92c98cddc0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): modules/logging/appendencoder.go:103-119 | modules/logging/filterencoder.go:124-140 \u2014 before extracting anything, compare \u0060modules/logging/appendencoder.go\u0060 and \u0060modules/logging/filterencoder.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/appendencoder.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2425507337f973f598089af8b012dac6a2d540f420adc58fc2b8fe6654a1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): modules/caddyhttp/reverseproxy/caddyfile.go:1164-1179 | modules/caddyhttp/reverseproxy/caddyfile.go:1576-1591 | modules/caddyhttp/reverseproxy/caddyfile.go:1676-1691 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/caddyfile.go:1164\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6490ea22b9c5f54de3439e53c391bac683258d305020c95dfee1d7a201513d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): caddy.go:228-238 | caddy.go:248-262 \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 \u0060caddy.go:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddy.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70f4edf08d50ec0c9aff0ff26ef648f31eb3775da90114b2da04dc6abc08f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): modules/caddypki/command.go:109-123 | modules/caddypki/command.go:178-192 \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":"modules/caddypki/command.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"078b261234a67fadff0e0489689adc35118751047dc3d8d4454ae1e6ffef7a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): modules/caddytls/acmeissuer.go:624-638 | modules/caddytls/zerosslissuer.go:200-214 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddytls/acmeissuer.go:624\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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4228dd6d599ec89edfdfc59331d7a01aa1f0ad391132df325a518582783888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): modules/caddytls/capools.go:270-284 | modules/caddytls/capools.go:355-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/capools.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03b0cf6a13a98a8f57b45d6c1a16945e0cf615072578c1154ca81d0d5852653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): modules/caddyhttp/reverseproxy/selectionpolicies.go:525-538 | modules/caddyhttp/reverseproxy/selectionpolicies.go:605-618 | modules/caddyhttp/reverseproxy/selectionpolicies.go:742-755 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/selectionpolicies.go:525\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060modules/caddyhttp/reverseproxy/selectionpolicies.go:523\u0060 calls \u0060Val\u0060 and \u0060modules/caddyhttp/reverseproxy/selectionpolicies.go:741\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"0847cddaa78da45fe00efd350377efd16aa227c78755b270bca33ca566fd36fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): modules/caddypki/ca.go:111-124 | modules/caddytls/capools.go:407-420 | modules/caddytls/leafstorageloader.go:58-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/ca.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f9ab7d8c71d55f98d44ea49bbe1767ef8401feedfa18b75354b69476db0091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): modules/logging/appendencoder.go:152-165 | modules/logging/filterencoder.go:204-217 | modules/logging/journaldencoder.go:137-150 \u2014 before extracting anything, compare \u0060modules/logging/appendencoder.go\u0060 and \u0060modules/logging/filterencoder.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/appendencoder.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b40f12ae8af9290606325d10016eeeb9a54a85091b04f041c82d7ed6f11362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): modules/caddyhttp/celmatcher.go:1163-1176 | modules/caddyhttp/fileserver/matcher.go:814-827 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca99425076ca87d9ca4492fa1d786c6350b00d8b5c3c61d4f7ec0bddab4453f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): modules/caddyhttp/headers/caddyfile.go:83-95 | modules/caddyhttp/headers/caddyfile.go:127-140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"modules/caddyhttp/headers/caddyfile.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6efc55b1dbcf99ff6db692e2c85a580b7417e2c17b8bcd453328ecd33eef9bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): modules/caddyhttp/reverseproxy/httptransport.go:876-889 | modules/caddytls/capools.go:605-618 \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 \u0060modules/caddyhttp/reverseproxy/httptransport.go:876\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f30e1c99b76c29c5f6e2f885fdf874f7d1587ecab609ba229ecb9ee1692be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): caddyconfig/httpcaddyfile/options.go:76-88 | caddyconfig/httpcaddyfile/options.go:91-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/options.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f57a58050a63f8cf211ac982df41b075dca74cc57209d48b0be23f8640a30a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cmd/packagesfuncs.go:77-89 | cmd/packagesfuncs.go:105-117 \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 \u0060cmd/packagesfuncs.go:77\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":"cmd/packagesfuncs.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c8bc89543500cb9109c2a7b338e38d5051b0bfa7ef060c3e395c0fdd7297b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/caddyhttp/celmatcher.go:605-617 | modules/caddyhttp/celmatcher.go:628-640 \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 \u0060modules/caddyhttp/celmatcher.go:605\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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6e951609e8332b9ecb3e3597c02c047d22d64fec113b56f680b8f0aa7c26d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:576-588 | modules/caddyhttp/reverseproxy/caddyfile.go:630-642 \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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d738eef82bdce5fedd7d9b64ba9505a92faf867e2659f89434adb6e70c2681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): modules/caddyhttp/reverseproxy/command.go:301-312 | modules/caddyhttp/staticresp.go:432-444 \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":"modules/caddyhttp/reverseproxy/command.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82cbc580f5e7eb2c603c45f486f8cd29d6c3bff1b5a160a90fefd0867d410e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/caddytls/connpolicy.go:1033-1045 | modules/caddytls/connpolicy.go:1051-1063 \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":"modules/caddytls/connpolicy.go"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"401385042c4b9dfa8002bffccb04d5d86681ad4428909b7b8464d9e9a0a041b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/caddyhttp/celmatcher.go:1109-1120 | modules/caddyhttp/fileserver/matcher.go:760-771 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8b4bcab6cede60ac6022098555084d476be75b10748fb885efb668cd3d380a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/caddyhttp/matchers.go:1419-1430 | modules/caddyhttp/vars.go:396-407 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:1419\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4a18844fb4aafe1a34c8ce98858c900d91f5d9ea4784140e36ce5435095271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/caddyhttp/matchers.go:1446-1457 | modules/caddyhttp/vars.go:423-434 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:1446\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa956d0f3ec54000db0f7b95f1e7f7df7836c9c217182a0e9fb3209f77febd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/caddyhttp/replacer.go:344-355 | modules/caddyhttp/replacer.go:365-376 \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 \u0060modules/caddyhttp/replacer.go:344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060modules/caddyhttp/replacer.go:364\u0060 calls \u0060Context\u0060, \u0060Value\u0060 and \u0060modules/caddyhttp/replacer.go:343\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b45c504fa519a43a8c25084a24c1476f4587305348b7957f81138dbf328ec52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/caddytls/acmeissuer.go:656-667 | modules/caddytls/zerosslissuer.go:226-237 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddytls/acmeissuer.go:656\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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"c860921032fd457e90133129aa19d0c671455e21bd2bc95ee748b66a16a3d27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/caddytls/capools.go:237-248 | modules/caddytls/capools.go:322-333 \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 \u0060modules/caddytls/capools.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/capools.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd0b9de4a40c44916a00e1655dd19e480ed3aafe389560a10a8ecb5b8f3dee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/caddytls/capools.go:432-443 | modules/caddytls/capools.go:694-705 \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 \u0060modules/caddytls/capools.go:432\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":"modules/caddytls/capools.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3e05e52f09157eeef1a316ed4879b05b84d289b8b6d31ced65f712e26152ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): modules/caddyhttp/matchers.go:953-963 | modules/caddyhttp/matchers.go:1434-1444 | modules/caddyhttp/vars.go:411-421 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:953\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":"modules/caddyhttp/matchers.go"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70168f778204ee3bf01fd035f5c4aa62ac57b4b9192bd6337bcaef5dcefe287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): modules/caddytls/capools.go:156-166 | modules/caddytls/capools.go:433-443 | modules/caddytls/capools.go:695-705 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddytls/capools.go:156\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":"modules/caddytls/capools.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed87e743e3cc5f81b8da119fb28d6f8a46b8329ead93bcaada1427101d659f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): caddyconfig/caddyfile/formatter.go:468-478 | caddyconfig/caddyfile/lexer.go:636-649 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e6bc4e1c27bcc991683b250e078958e6b9bdcaaf5d8982efb1b78792ffd8fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): caddyconfig/httpcaddyfile/builtins.go:348-358 | caddyconfig/httpcaddyfile/builtins.go:437-447 \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 \u0060caddyconfig/httpcaddyfile/builtins.go:348\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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec702f375839011e4b229e40719083f467d835bb9014a967d06398295948dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): caddyconfig/httpcaddyfile/httptype.go:694-704 | caddyconfig/httpcaddyfile/httptype.go:705-715 \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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd3e945f530d34ee1361151dedbbf7abc116e87413cbf4a6298bedf0ec51e10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cmd/commandfuncs.go:747-757 | cmd/commandfuncs.go:789-799 \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 \u0060cmd/commandfuncs.go:747\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":"cmd/commandfuncs.go"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e352c2b03e646c5f620fc8d75ad0b8ab1121bca32f427a59d793919df13e637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddyhttp/celmatcher.go:671-681 | modules/caddyhttp/celmatcher.go:689-699 \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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5a3db8e9e67a7da3b3c7092316411e22434b25390ad81dad66e9598031cb60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddyhttp/matchers.go:1687-1697 | modules/caddyhttp/routes.go:445-455 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:1687\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":"modules/caddyhttp/matchers.go"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93bf003446ba667cc9759bccf7c0c569c6be37ddfa33727779c2ce14cf1d028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddyhttp/matchers.go:1864-1874 | modules/caddytls/connpolicy.go:1150-1160 \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":"modules/caddyhttp/matchers.go"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"070b7238c097d127c8ea6171be51e0fb595a2a73a5d5153190064dac6a22ada5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:452-462 | modules/caddyhttp/reverseproxy/caddyfile.go:468-478 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:452\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1b1879ece872bb9b7416954573ea6a4f03bcb0da93cc18b1926bf1317ccad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:528-538 | modules/caddyhttp/reverseproxy/caddyfile.go:544-554 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:528\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88e9f9a6feff4242d3478820f95f253a6e0065728d828ef368fa2099a9c4791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:560-570 | modules/caddyhttp/reverseproxy/caddyfile.go:592-602 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:560\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"83511585961723193b8b6f58ecd836f14c681f8f0d5a4618c750fdea15d96e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddypki/acmeserver/caddyfile.go:93-103 | modules/caddypki/acmeserver/caddyfile.go:112-122 \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 \u0060modules/caddypki/acmeserver/caddyfile.go:93\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":"modules/caddypki/acmeserver/caddyfile.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af2a5bf0c19819761071a0f591226715df2a169a74c5b9650496bec17ca5a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddytls/capools.go:543-553 | modules/caddytls/capools.go:914-924 \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 \u0060modules/caddytls/capools.go:543\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":"modules/caddytls/capools.go"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"73550276e70454c4c104d6b7d667966b3756bf08cc35c4b77afc7a1036854316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): modules/caddyhttp/intercept/intercept.go:264-271 | modules/caddyhttp/intercept/intercept.go:311-320 | modules/caddyhttp/reverseproxy/caddyfile.go:897-904 | modules/caddyhttp/reverseproxy/caddyfile.go:992-1001 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/intercept/intercept.go:264\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":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3d0bab4e9f0b80d44d704c0cfdc3f329024bdad1bf0284f231d7775cd05ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/caddyhttp/matchers.go:968-977 | modules/caddyhttp/matchers.go:1450-1459 | modules/caddyhttp/vars.go:427-436 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:968\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"modules/caddyhttp/matchers.go"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6e1276ec8055ce8e2a07a6d895729e44d2bf34f03b137471364e02d329945c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/caddyhttp/reverseproxy/selectionpolicies.go:489-498 | modules/caddyhttp/reverseproxy/selectionpolicies.go:570-579 | modules/caddyhttp/reverseproxy/selectionpolicies.go:654-663 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/selectionpolicies.go:489\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2f4ed5804c10109fab6502eb8f559c74d3ecccd9d92e54e8bb930539d4c1f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:1343-1352 | modules/caddyhttp/reverseproxy/caddyfile.go:1356-1365 \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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd405eda1311e498395695babd111df30b488a87b859cd50ed4b37433695017"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddyhttp/reverseproxy/healthchecks.go:272-281 | modules/caddyhttp/reverseproxy/healthchecks.go:300-309 \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 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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bfcd1e7ccc440a0c745a77fb2af0e8743b957c64b24254394af44bdeb234bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddyhttp/staticerror.go:63-72 | modules/caddyhttp/staticresp.go:142-151 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/staticerror.go:63\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":"modules/caddyhttp/staticerror.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f3951adfd9d98bce9621a988bc292b415665346e502a1348fee8ada52ef358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddytls/acmeissuer.go:551-560 | modules/caddytls/acmeissuer.go:567-576 \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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"be18e34e04ad0c3701cbe4d261d3dc19ed96a89f3bf766d5d9edf7a0ab887e2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddytls/matchers.go:335-344 | modules/caddytls/matchers.go:459-468 \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":"modules/caddytls/matchers.go"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd086639bd7aa5316df4ca8e6b2a62ba50c9532b0b5de13ad3671757dd2609b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddytls/tls.go:419-428 | modules/caddytls/tls.go:958-967 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060modules/caddytls/tls.go:957\u0060 calls \u0060keepStorageClean\u0060 and \u0060modules/caddytls/tls.go:417\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a0032b712677b1d9f8a0870ab94dbf09c4a2cb6d2289702f1a55312a3b92e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): caddyconfig/httpcaddyfile/builtins.go:350-358 | caddyconfig/httpcaddyfile/builtins.go:372-380 | caddyconfig/httpcaddyfile/builtins.go:400-408 | caddyconfig/httpcaddyfile/builtins.go:422-430 | caddyconfig/httpcaddyfile/builtins.go:439-447 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0350b373c51b3b34c67135119a0c3f01b18cd6b8145786599c489a32f0a500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): modules/caddyhttp/matchers.go:970-978 | modules/caddyhttp/matchers.go:1452-1460 | modules/caddyhttp/urlpatternmatcher.go:190-199 | modules/caddyhttp/vars.go:429-437 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:970\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":"modules/caddyhttp/matchers.go"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe20685a8425150665450851faaab4ddab4c39250d3cc1d302daa3421b26713c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): modules/caddyhttp/celmatcher.go:641-648 | modules/caddyhttp/celmatcher.go:700-708 \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 \u0060modules/caddyhttp/celmatcher.go:700\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. 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":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"0437678b895822263dbb497803af2c275b28d5ab79a49a75b9b9c01913ec7ea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/caddyhttp/reverseproxy/command.go:186-194 | modules/caddyhttp/reverseproxy/command.go:208-216 \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 \u0060modules/caddyhttp/reverseproxy/command.go:186\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":"modules/caddyhttp/reverseproxy/command.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06ed49cc026717c994e2a3e5603b159fee933c368b962a6ae7b0259ae52851f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/caddytls/leafpemloader.go:38-46 | modules/caddytls/leafstorageloader.go:74-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddytls/leafstorageloader.go:74\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/leafpemloader.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc58b02e93b9f7483f465d892493d0b34337ce9cacabe7d3b7ccb7de0df7e9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): modules/caddyhttp/matchers.go:952-959 | modules/caddyhttp/matchers.go:1410-1417 | modules/caddyhttp/vars.go:387-394 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/matchers.go:952\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":"modules/caddyhttp/matchers.go"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"57395b014702bad773347e925f714049105ad61d7941d8f49ced6fedbc06993b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): modules/logging/appendencoder.go:81-89 | modules/logging/filterencoder.go:90-98 | modules/logging/journaldencoder.go:71-78 \u2014 before extracting anything, compare \u0060modules/logging/appendencoder.go\u0060 and \u0060modules/logging/filterencoder.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/logging/appendencoder.go:81\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":"modules/logging/appendencoder.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2612e71855f30106ab2c3958ae98b4edb27248d3a4ea8e7e19267793bf0a6043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): caddyconfig/httpcaddyfile/httptype.go:576-583 | caddyconfig/httpcaddyfile/httptype.go:1167-1174 \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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e140edfe0327f1acc5563223510f6d684f43a89c42545cd8ea6f40ae74e0e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:1103-1118 | modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go:91-106 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:1103\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5adc53b86bcb49e0d5130b36ffc1a49b9e45d441cf9df83de5cb2819be984e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddytls/fileloader.go:35-42 | modules/caddytls/pemloader.go:35-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddytls/fileloader.go:35\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":"modules/caddytls/fileloader.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"67639fdfc0ab4f53ef8ab936f72eb2735ecf16cbf05302173dc3a3efa6607bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): context.go:554-560 | context.go:582-588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060context.go:552\u0060 calls \u0060App\u0060 and \u0060context.go:580\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"context.go"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fd962b98006459e1c50824bd89880eff43b1efb1ea117b79d3cdc67ee8f5d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/caddyhttp/fileserver/matcher.go:553-559 | modules/caddyhttp/fileserver/matcher.go:574-580 \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 \u0060modules/caddyhttp/fileserver/matcher.go:553\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":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f2ca7bc8b4582e98614812bcb887a6cda7d03b4f1f080816c329ba055b6b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:494-500 | modules/caddyhttp/reverseproxy/caddyfile.go:619-625 \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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6382de773acadcf8c71a5cf0acf1963abc71e4f0d590d2d77eacb4144842caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddyhttp/rewrite/rewrite.go:767-774 | modules/caddyhttp/rewrite/rewrite.go:782-789 \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 \u0060modules/caddyhttp/rewrite/rewrite.go:767\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060modules/caddyhttp/rewrite/rewrite.go:792\u0060 calls \u0060ReplaceAll\u0060 and \u0060modules/caddyhttp/rewrite/rewrite.go:775\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca832d38d1c5d6416d796eb46f29dd7d3372bed61c1a6e13b3bf1ab23eaaeb31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): modules/caddyhttp/fileserver/matcher.go:554-559 | modules/caddyhttp/fileserver/matcher.go:575-580 | modules/caddyhttp/fileserver/matcher.go:595-601 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/fileserver/matcher.go:554\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":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5eff94c3fea6ab7312a5362cad312c520dcccfb7592140eec501aafc693e443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): context.go:276-283 | context.go:294-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060context.go:292\u0060 calls \u0060Len\u0060, \u0060Index\u0060 and \u0060context.go:275\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"context.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f4ed993eda520879d6692148b4c04cee6dcea3f7ef6c615717782b59a5a1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): modules/caddyhttp/reverseproxy/command.go:190-194 | modules/caddyhttp/reverseproxy/command.go:212-216 | modules/caddyhttp/staticresp.go:375-379 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/command.go:190\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":"modules/caddyhttp/reverseproxy/command.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cc0db3bdf78784b48d03a0034103cb9f0edad425a0808c9960780c732ef681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): modules/caddyhttp/reverseproxy/httptransport.go:268-275 | modules/caddyhttp/reverseproxy/upstreams.go:114-121 | modules/caddyhttp/reverseproxy/upstreams.go:277-284 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/httptransport.go:268\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5de9e6be74afe9ed515c3de3d73132d5ec6bdcc53bb1bde89598fe72371566c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): caddyconfig/httpcaddyfile/httptype.go:1774-1779 | modules/caddytls/connpolicy.go:1142-1148 \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 \u0060caddyconfig/httpcaddyfile/httptype.go:1774\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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcbebc45e11be988278e7faf1b445ce398b6852a793ebe095f045e8cd3eaf8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): admin.go:1454-1460 | modules/caddyhttp/reverseproxy/httptransport.go:970-979 | modules/caddytls/connpolicy.go:957-963 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6dbd4a1c8ec20d33ac2f98aad6d1501c4efd1ec01565eeae4217efbbba4803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): modules/caddyhttp/celmatcher.go:223-229 | modules/caddyhttp/ip_matchers.go:146-152 | modules/caddyhttp/ip_matchers.go:253-259 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"804556bff52a1376d164ff46cb453e9de95bf173147d3f677429e363aee87df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/caddyhttp/matchers.go:1762-1767 | modules/caddytls/matchers.go:191-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":"modules/caddyhttp/matchers.go"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"4367170a20c2d9a0ebaee47a5465dda1decd4425200e267af2711e6d286fef2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): context.go:474-485 | context.go:489-499 \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 \u0060context.go:474\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":"context.go"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"775b8380ff7b2a5d7a6c4fc2d937cb46a5c30fb72c57633c3aad18ab52e8f47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): caddyconfig/httpcaddyfile/options.go:205-216 | caddyconfig/httpcaddyfile/options.go:467-478 \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 \u0060caddyconfig/httpcaddyfile/options.go:205\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/options.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f8d81c90db1b48fa6de51498b93315afafa000b1ac449a28b4450ce9ba3ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): caddyconfig/httpcaddyfile/builtins.go:1111-1121 | caddyconfig/httpcaddyfile/builtins.go:1130-1140 \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 \u0060caddyconfig/httpcaddyfile/builtins.go:1111\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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bc763b1f0912629edd04845f959fdf9226d2eff6673893cec258e9fc02751d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddyhttp/proxyprotocol/module.go:46-56 | modules/logging/netwriter.go:126-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/proxyprotocol/module.go:46\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":"modules/caddyhttp/proxyprotocol/module.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcea1463a90d84223c577c7993089ee284f3930f6c9ff3afd963831c0df522a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/caddyhttp/ip_matchers.go:83-93 | modules/caddyhttp/ip_matchers.go:196-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/ip_matchers.go:83\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/ip_matchers.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7478d9b551dd7dc3d0b5b4bcbb9537f2393fc7ef8b78e37bfdbaddc362efc490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddytls/acmeissuer.go:609-618 | modules/caddytls/acmeissuer.go:661-670 \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 \u0060modules/caddytls/acmeissuer.go:609\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":"modules/caddytls/acmeissuer.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5326a34b15a0461685ea42a03e7319072a2c7732d6ac1e336614b125868486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/caddyhttp/reverseproxy/caddyfile.go:357-366 | modules/caddyhttp/reverseproxy/caddyfile.go:439-448 | modules/caddyhttp/reverseproxy/caddyfile.go:451-460 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/caddyfile.go:357\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060modules/caddyhttp/reverseproxy/caddyfile.go:368\u0060 calls \u0060Log\u0060, \u0060Named\u0060, \u0060Warn\u0060 and \u0060modules/caddyhttp/reverseproxy/caddyfile.go:451\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cda6b66488fd7cb5b38f39de9a44f8cb3d4a0e9bf2cc0be68b9b21947468fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddytls/zerosslissuer.go:188-197 | modules/caddytls/zerosslissuer.go:231-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddytls/zerosslissuer.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":"modules/caddytls/zerosslissuer.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"43eadf9d2bebcc49b7af1bc717b2fe9a9cd7e5a528af8984dc86d991f3595906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/caddyhttp/reverseproxy/caddyfile.go:1204-1213 | modules/caddyhttp/reverseproxy/caddyfile.go:1567-1576 | modules/caddyhttp/reverseproxy/caddyfile.go:1667-1676 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/caddyfile.go:1204\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8875fa240f486ecba524dea1cbcc4691870ab36bab8d94da37575dacb60484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): modules/caddyhttp/reverseproxy/caddyfile.go:357-366 | modules/caddyhttp/reverseproxy/caddyfile.go:390-399 | modules/caddyhttp/reverseproxy/caddyfile.go:439-448 | modules/caddyhttp/reverseproxy/caddyfile.go:451-460 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/caddyfile.go:357\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060modules/caddyhttp/reverseproxy/caddyfile.go:368\u0060 calls \u0060Log\u0060, \u0060Named\u0060, \u0060Warn\u0060 and \u0060modules/caddyhttp/reverseproxy/caddyfile.go:451\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6a10fb0e77007a6f20bac1d6d003c3efce8a67ade46079b03003fc138095dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:467-476 | modules/caddyhttp/reverseproxy/caddyfile.go:483-492 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:467\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4af66dd85de5dad1325eb52627a9dbb876961aaecbfe4b75c3e478cb1c53de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:427-436 | modules/caddyhttp/reverseproxy/caddyfile.go:503-512 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:427\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e151686aa12cb69f2c6205e9e7fdc5f3d45a2fcd7b68261adfa9e154dc0d46f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/caddyhttp/reverseproxy/healthchecks.go:510-519 | modules/caddyhttp/reverseproxy/healthchecks.go:556-565 \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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d24b8dbfefc66dfe85d8f5f26b6bfcfdc8edfc24b157402c0dcd4a63013c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/caddyhttp/reverseproxy/caddyfile.go:345-354 | modules/caddyhttp/reverseproxy/caddyfile.go:357-366 | modules/caddyhttp/reverseproxy/caddyfile.go:439-448 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/caddyfile.go:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060modules/caddyhttp/reverseproxy/caddyfile.go:368\u0060 calls \u0060Log\u0060, \u0060Named\u0060, \u0060Warn\u0060 and \u0060modules/caddyhttp/reverseproxy/caddyfile.go:357\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9993011ac65517a44ab12a8470de1bebc42f653e20ffe52c27fc5c4a81f471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): caddyconfig/httpcaddyfile/httptype.go:425-434 | caddyconfig/httpcaddyfile/httptype.go:439-448 \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 \u0060caddyconfig/httpcaddyfile/httptype.go:425\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":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c70c4734bb1a697657284ebdf577b59fdcafe15f9a1820ef5f9781a7e7abd77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddytls/tls.go:1032-1041 | modules/caddytls/tls.go:1050-1057 \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 \u0060modules/caddytls/tls.go:1032\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":"modules/caddytls/tls.go"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1dd8acd3887648b892497946961c584918f7642722887c94105fc4329db3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/caddytls/matchers.go:361-369 | modules/caddytls/matchers.go:477-485 \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 \u0060modules/caddytls/matchers.go:361\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/matchers.go"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"81313a0d8a744b06e307606ed7f770602daf2881a8b3a99dbc3cb4a129ac2221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:311-319 | modules/caddyhttp/reverseproxy/caddyfile.go:324-332 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:311\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b2328fde760812b9a99024c52b55dc5563f9cfd305aec9ff52de171cb8c77f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): caddyconfig/httpcaddyfile/builtins.go:363-371 | caddyconfig/httpcaddyfile/builtins.go:413-421 \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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1239ff526f2f1d91e321b22143abe58b5028211a1e86f4f6608a314378c9353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/caddyhttp/reverseproxy/healthchecks.go:467-475 | modules/caddyhttp/reverseproxy/healthchecks.go:488-496 \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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a880fb5e5b7ccbf917ce31be8da17daf36f5f8ef2a2a28c7bb05bcb13800fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): caddyconfig/httpcaddyfile/builtins.go:290-298 | caddyconfig/httpcaddyfile/builtins.go:306-314 | caddyconfig/httpcaddyfile/builtins.go:1113-1121 | caddyconfig/httpcaddyfile/builtins.go:1132-1140 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"caddyconfig/httpcaddyfile/builtins.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9eae02978c6484b4a28e5797eac892a6c68bce82759d77642a8475e44a9197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go:272-279 | modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go:283-290 \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 \u0060modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go:272\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":"modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a452610ab16ad9d511248fadc2d49ae90b47ef0990e0b71f6486c651d8f4cd1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): modules/caddyhttp/reverseproxy/caddyfile.go:1164-1179 | modules/caddyhttp/reverseproxy/caddyfile.go:1576-1591 | modules/caddyhttp/reverseproxy/caddyfile.go:1676-1691 | modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go:81-96 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/reverseproxy/caddyfile.go:1164\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb14d8991cee8201954b4008e86b1a1e87f6acbd99218e87e89bf44805a01e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddytls/tls.go:442-449 | modules/caddytls/tls.go:969-976 \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 \u0060modules/caddytls/tls.go:442\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 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":"modules/caddytls/tls.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ec29ad294044790dd3c748fd8e6c824e9f1b3139ac9762e24a839e6a1214a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddyhttp/reverseproxy/healthchecks.go:274-281 | modules/caddyhttp/reverseproxy/healthchecks.go:614-621 \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 \u0060modules/caddyhttp/reverseproxy/healthchecks.go:274\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":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"e013dc51766cbdfc85898c5461930ac7f6233070b089934f949e7a5a47920ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddyhttp/server.go:888-895 | modules/caddyhttp/server.go:903-910 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/server.go:888\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":"modules/caddyhttp/server.go"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bcb043a9e06eaa242c34a4923862f20d3a2bbe15d659e02fb1dca32d533979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/caddyhttp/reverseproxy/caddyfile.go:1182-1189 | modules/caddyhttp/reverseproxy/caddyfile.go:1594-1601 \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 \u0060modules/caddyhttp/reverseproxy/caddyfile.go:1182\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":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7621c69d570ff5805c5e6126c513f8cec9800802cd9848ecc4d71d5937deb7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): caddyconfig/httpcaddyfile/serveroptions.go:147-153 | caddyconfig/httpcaddyfile/serveroptions.go:185-191 \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 \u0060caddyconfig/httpcaddyfile/serveroptions.go:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5043cdd7bcee27010c6e1035c9054ab1d35e518372e91c764235223960c812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/caddyhttp/timeouts/caddyfile.go:41-47 | modules/caddyhttp/timeouts/caddyfile.go:59-65 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"modules/caddyhttp/timeouts/caddyfile.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0735002f22e7a88496eafaff12f253bfa72d6bb5f4d12fb6eba7894ac7938d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/caddyhttp/app.go:795-801 | modules/caddyhttp/app.go:840-846 \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 \u0060modules/caddyhttp/app.go:795\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":"modules/caddyhttp/app.go"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4fea17650f2f83ccbc1a9aaeadc426fd05ee2878760557d58fd351fffd9742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/caddytls/ech.go:104-109 | modules/caddytls/ech.go:222-227 \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 \u0060modules/caddytls/ech.go:104\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":"modules/caddytls/ech.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"536cc3e95567cfa66284a302c5b66ac16e3371ee9a30ea5ba90095f4c62e9754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): modules/caddyhttp/server.go:882-893 | modules/caddyhttp/server.go:897-908 | modules/caddyhttp/server.go:912-923 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/caddyhttp/server.go:882\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":"modules/caddyhttp/server.go"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb99e333c1ec8125168adbdc3261de1dab1ed95bf1e75e572e5dfe5d5ce19e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): caddyconfig/caddyfile/importargs.go:71-75 | caddyconfig/caddyfile/importargs.go:80-84 \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 \u0060caddyconfig/caddyfile/importargs.go:71\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/importargs.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"11878b641123d0c8046a949fef5f7a8909b8f45780836cd000edaaa2f8cdcc39"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Server (LCOM4 6): Server\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4cca2da1fe550819b0e63cdacb36401954f59d672104a4e16f7861f9591239"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TemplateContext (LCOM4 6): TemplateContext\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/templates/tplcontext.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0febf9a166ead69a24e3f75419359869b94bac3a023ce009333c0a69d8deed66"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Helper (LCOM4 4): Helper\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1258138b5da056cd57c89565a3dca5ffc3e4a77309a8c0e0c0767cd278d61ff0"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/caddyserver/caddy/v2/caddytest.TestCheckID: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d86fe2a10b816c96f449395e3222d3f4ef7927774b768abf1e63301ee5879191"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/caddyserver/caddy/v2/caddytest/integration.TestACMEServerWithDefaults: Passed 1\u00D7, failed 2\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c0b96f43466d2c6d6ec0dcf115a0d3b34c08221e6d4215dc748824838dc6755e"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/caddyserver/caddy/v2/caddytest/integration.TestReverseProxySNIPlaceHolder: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b89bf38ff67a48d4b412aeff3f92c094f37f8b3c782e664628ffb79b8d6feadb"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/caddyserver/caddy/v2/caddytest/integration.TestWebTransport_ReverseProxyNegotiatesApplicationProtocol: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d9458a5de356bd1d79c95754eedaf1b5a73753312e5142985778f54ca6560ca6"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/aryann/difflib: Direct dependency \u0060github.com/aryann/difflib\u0060 is required at \u0060v0.0.0-20210328193216-ff5ff6dc229b\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2021-03-28, 5.6 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/aryann/difflib\u0060 and has not moved this requirement in 5.6 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/aryann/difflib\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fe34f92fb1123c8016062fceb5a3cedd701994a5bd6d7ec040d58ed928acf223"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/yuin/goldmark-highlighting/v2: Direct dependency \u0060github.com/yuin/goldmark-highlighting/v2\u0060 is required at \u0060v2.0.0-20230729083705-37449abec8cc\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2023-07-29, 3.3 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/yuin/goldmark-highlighting/v2\u0060 and has not moved this requirement in 3.3 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/yuin/goldmark-highlighting/v2\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"13735890ea98996c5af87daf2229aa8a5dc7ecc76e24d5294d98589d2114b1ad"}},{"ruleId":"D13","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":"4c95cbd6498731cc9356e7c7508268009837f6e53fbf1425fc4228112845abb1"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/reverseproxy/reverseproxy.go: modules/caddyhttp/reverseproxy/reverseproxy.go changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in Handler.Provision at line 311. 4 of those changes were fix/bug commits, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/reverseproxy/reverseproxy.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f3c3fdd8ebef39f2135485aa8ac0316691c9f2245ef01fe88a445b3cef3cba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caddyconfig/httpcaddyfile/httptype.go: caddyconfig/httpcaddyfile/httptype.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 131 in ServerType.serversFromPairings at line 566. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- caddyconfig/httpcaddyfile/httptype.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8400070c75068f09230ac337539a7d94ddbdfc3718ae6f21837432a3664004"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/server.go: modules/caddyhttp/server.go changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in Server.ServeHTTP at line 599. 1 of those changes was a fix/bug commit, and the other 15 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/server.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b032c218b64387fe69f9f0dd00928cea24f69163c1ca1ce105defa8fd77b74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/fileserver/staticfiles.go: modules/caddyhttp/fileserver/staticfiles.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in FileServer.ServeHTTP at line 289. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/fileserver/staticfiles.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec063efc9e864bb2be845086ec63aeac5a7b914ca5a97c743f41346e44c7a7e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/fileserver/matcher.go: modules/caddyhttp/fileserver/matcher.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in MatchFile.selectFile at line 357. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/fileserver/matcher.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cfd1260a68ef30a81bac104d9d4975c097a2130a636e14150d03a2a8151e74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/rewrite/rewrite.go: modules/caddyhttp/rewrite/rewrite.go changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in Rewrite.Rewrite at line 173. 3 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/rewrite/rewrite.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07662f769d58452652c3277038557fedc5afb896a598b9f24dee156964f712e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/reverseproxy/caddyfile.go: modules/caddyhttp/reverseproxy/caddyfile.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 255 in Handler.UnmarshalCaddyfile at line 152. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/reverseproxy/caddyfile.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96f5a5ff2021c1733cb84c816e9fd2b93bbf4865d822ff3876ccc2d71e30e78"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/app.go: modules/caddyhttp/app.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in App.Provision at line 189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/app.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/app.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d492d16c2fa651e7d0a2b18c14ab2c179e5a4c4c42d7af931505bcb6c6e5c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caddyconfig/httpcaddyfile/tlsapp.go: caddyconfig/httpcaddyfile/tlsapp.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in ServerType.buildTLSApp at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- caddyconfig/httpcaddyfile/tlsapp.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/tlsapp.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c51bacf1973bf424a2b314bcae845979d8ec0a12addaaa189d6cfdac61a1a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/reverseproxy/streaming.go: modules/caddyhttp/reverseproxy/streaming.go changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Handler.handleUpgradeResponse at line 95. 1 of those changes was a fix/bug commit, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/reverseproxy/streaming.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ad63e31ebfcf536e0a1275561524b3eb3981f58dd3dbee24883381eed75eac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go: modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Transport.buildEnv at line 267. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"327ec9a85b1ca82a269aa3cf88ec6f08bfcb0f561507bf60dd9e7b9dcb6af0e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/replacer.go: modules/caddyhttp/replacer.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 95 in caddyhttp.addHTTPVarsToReplacer at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/replacer.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d2fd2d798329fb72bc37cbacce58dd57f727e8562c0edef390f6bc97e79815"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caddyconfig/caddyfile/lexer.go: caddyconfig/caddyfile/lexer.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in lexer.next at line 173. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- caddyconfig/caddyfile/lexer.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/lexer.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c084ad72bc5fdcc7a097992a97d9f2d3ed4195e2eea9f64a29e141dbe7e0f243"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/reverseproxy/httptransport.go: modules/caddyhttp/reverseproxy/httptransport.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in HTTPTransport.NewTransport at line 207. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/reverseproxy/httptransport.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0199eca10b4af3622387f050ec0d944a995b9293dfe7bc7a57fd890e26e075d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caddyconfig/caddyfile/parse.go: caddyconfig/caddyfile/parse.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in parser.doImport at line 388. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- caddyconfig/caddyfile/parse.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/parse.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"7987a7e59fd18a15ab93e6d411b3ae7b90084549af1f386730dc05c9ec2043be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caddyconfig/httpcaddyfile/serveroptions.go: caddyconfig/httpcaddyfile/serveroptions.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 100 in httpcaddyfile.unmarshalCaddyfileServerOptions at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- caddyconfig/httpcaddyfile/serveroptions.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"040558ca29cd07700a76bd03b251ca999b5b04a356a8d72a490bee3d8ffa1d31"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/matchers.go: modules/caddyhttp/matchers.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in MatchPath.matchPatternWithEscapeSequence at line 546. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/matchers.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a041a92927ca6995a60b6d4bea6ff9eadec042150ea35fc69606334caa5860da"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caddyconfig/caddyfile/formatter.go: caddyconfig/caddyfile/formatter.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in caddyfile.formatTokens at line 486. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- caddyconfig/caddyfile/formatter.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/formatter.go"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9032a89c12de42f00c0eede155edb266448742ac473f706f09210c387ccad8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/headers/headers.go: modules/caddyhttp/headers/headers.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in HeaderOps.ApplyTo at line 235. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/headers/headers.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/headers/headers.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6b36a628c1fb8f4962708e22ee6f9185fbeb3745d1d257d9c1748d28f32e37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddytls/automation.go: modules/caddytls/automation.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AutomationPolicy.makeCertMagicConfig at line 311. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddytls/automation.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/automation.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6529f043139153c8da6c0f74f6fcec011cd089d612827d827eb10c23af16f76"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/fileserver/caddyfile.go: modules/caddyhttp/fileserver/caddyfile.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in FileServer.UnmarshalCaddyfile at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/fileserver/caddyfile.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/caddyfile.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0b3120e240a80a8f1e8a776eef1124203f50ef71134ae5c36d44f288f2fed6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddytls/ech.go: modules/caddytls/ech.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in TLS.publishECHConfigs at line 345. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddytls/ech.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c3b922f72f8a9da8de8f38cd34045e85daa883116647a4e840078bd5105183"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caddyconfig/httpcaddyfile/directives.go: caddyconfig/httpcaddyfile/directives.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in httpcaddyfile.sortRoutes at line 464. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- caddyconfig/httpcaddyfile/directives.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacb3da5e4c9d1e026249ff135ac5297e09d58be6e2a0519014a22811cc2ebd7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/logging/filewriter.go: modules/logging/filewriter.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in FileWriter.OpenWriter at line 187. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/logging/filewriter.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filewriter.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1c2cd209c1aa64d8bdf019caedf4874e705917e7036be091110cbf57dd4908"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/fileserver/browsetplcontext.go: modules/caddyhttp/fileserver/browsetplcontext.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in FileServer.directoryListing at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/fileserver/browsetplcontext.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browsetplcontext.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"773abf906b3abc7bd7926e431c516ef49c549d1d003d0dd8b93fbf355f491864"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/fileserver/browse.go: modules/caddyhttp/fileserver/browse.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in FileServer.serveBrowse at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/fileserver/browse.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13083bd29242d190f3bb4b22dbaf333d1eb7caf721bafb848716c135230ec0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyevents/app.go: modules/caddyevents/app.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in App.Emit at line 219. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyevents/app.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyevents/app.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b37545a452faf6e43158161bc670710fcfe9fa30cd9b3184ec92bd69b56303"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/caddyhttp/caddyauth/command.go: modules/caddyhttp/caddyauth/command.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in caddyauth.cmdHashPassword at line 96. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:25:23 -07:00\u0027 --until=\u00272026-11-11 12:25:23 -07:00\u0027 --full-history --no-merges -- modules/caddyhttp/caddyauth/command.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/caddyauth/command.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab186fd51cda7ad7c941f7d260aff74ac02dfdb329044322c94c059517c8122"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: modules/caddytls/sessiontickets.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"de04411a11d0282ea3ff531bcf7a0a5ea7b45d37cd1d89dc118f146ca74302ad"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 9 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (10 single-owned of 166 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 166 of the 229 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) (\u002B3 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: modules/logging/journaldencoder.go, caddyconfig/caddyfile/importargs.go, internal/bindcap_linux.go, modules/internal/network/networkproxy.go, listen_reuseUnixSocket_windows.go, modules/caddyhttp/templates/frontmatter.go, caddyconfig/caddyfile/importgraph.go, modules/caddytls/pemloader.go (\u002B1 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This event is experimental and subject to change. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddy.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6124e6aeec8bed84a6f2a9961fcdc296560336cff801dbe48f8ae404958e977c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This event is experimental and subject to change. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddy.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54fe02c6d9da04bf611d2c7e289d3e7f6a9a5a8f430e8b53a367a13611c2e76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Not 100% sure this is necessary, but we do this for net.UnixListener, so... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listen_unix.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccc82f0c62f4e3ff765b6c26642df015f6b01c7f30acad4839deeceeaaf03aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make tunable? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listeners.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ea2e2529e3024a5c441bbe0d0e52784b0dc3418f37e03f173bccb6c21f37df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: figure out when to close the listener and the transport \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listeners.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94eb48320b744e008c7542c213c44072e8c2641033648e7bbab9a309123a907"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is an EXPERIMENTAL feature. Subject to change or removal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/automation.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2cb0b81c966519eab2c231e5401236ab9a24e4684cc6482149a2e4a99259ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is an EXPERIMENTAL feature. Subject to change or removal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ab4ccc4f9dc584dcd17692fe4a15a490abc0730da7dfb09254c2329fd289ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is an EXPERIMENTAL feature. Subject to change or removal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8055dd70ea85e1a211f7c8745c4a07718ac50802f66e7e17b37b585e510e8a74"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is an EXPERIMENTAL feature. Subject to change or removal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c784dd7ed3160c11908e2bca1db82015c82b7d91b0d92ddfc173482e11b2693"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is an EXPERIMENTAL feature. Subject to change or removal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5332fc60b616d36229dda4928c7b23c9b69759650ef201a6b870f151dd1aff80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is an EXPERIMENTAL feature. Subject to change or removal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc0b4bf35be7abedbe46a03d0ff8fc7f8f30b268992370cd2ca2e8c0fc4bd7e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // (TODO: this map does not account for wildcards, see if this is a problem in practice? look for reports of high connection latency with wildcard certs but low latency for non-wildcards in multi-thousand-cert deployments) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac83a001db7d57c9f6adef5719aab84e949b53e7f1d06a4b4e40886f415a16b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I don\u0027t love how this works: we pre-build certmagic configs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ed97dddd35c6a9e8cd3533de77a76dea0255d7db9aed89a714a967003f8169"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: experimental: if a handshake context module is configured, allow it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1342b0a041a231f2dd86a1990df15753c0ed09c3f3e0c152a9754d1a276be4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Clean up session ticket active locks in storage if app (or process) is being closed! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ac7f433d86a95c5dd00d83b1f0ad34a0f68fdfdc39d80ba8f9d73a316e4065"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // them at this time. TODO: one of these is a possible future enhancement: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"a927116935d74ebcaa127e8ae2f1c2df73a5316176078383350ecbf3cb53dc85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: DEPRECATED \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"307ffc2d563c7bf9fb93d48186e82f41f2c2c9d1b0218923dd5202abd1c5f392"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: DEPRECATED: Only here for backwards compatibility. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/connpolicy.go"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"d441ce600da71f385fba04b070f13fb18f9813cf8f9d4146aef07930c076cd65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use IDs or the outer names? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ff1af80499b2d60485bd4f7cc2df69ead7090a15f76450e4a20196f8cc33f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Potentially utilize the timestamp (map value) for recent-enough publication, instead of just checking for existence \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c60c76847dfef00149563433b35fb48396465c7cb2dd6950ed558088578bf45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could make resolvers configurable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"1368ffbe3b5717e7d5f7ac77d1bffc3007263fbc635dcc6889b7a8d490e36112"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: low hard-coded value only temporary; change to a higher value once more field-tested and key rotation is implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"628a2e1c4f4b5c57013ec5c91ae29e5927728689047da64454175d23bcb7e6e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could also consider manually-loaded certs using t.HasCertificateForSubject(), \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe3dfcd44970a3ce223e53c3fd9d6a762c9d44e27c7f6b75f823d8a08446710"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This check might not be needed anymore now that CertMagic syncs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a39c76e035b0cd07ab72fcd7470c0877aab2046e1c30ed2b9abfaf5bc4fef9f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: improve this handling \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/standardstek/stek.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8ddedf52dac72b96487c474fbeb84b19612216b3194955ca63b601101f13d0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: improve this handling \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/distributedstek/distributedstek.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2fee801f88d194349d5a1a024dd331f0955f73b4072651d6cd4ece2500890e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: passing in \u0027a\u0027 is a hack until the admin API is officially extensible (see #5032)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/adminapi.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1c182059a3078aa1fb496d91b7d0f8e8058bb259797fe5cda76bb91cece5a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should we require that all or none of the assets are required before overwriting anything? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/ca.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6a41a39c245c0cbc1b8b33c22e489ac0173fd9aed4e1943e9e65f1a6f39ccf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should we require that all or none of the assets are required before overwriting anything? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/ca.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff565bf857408bc6ea6b17dc38dcb14b6e91ac271812356f1147e29dc435d87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should we just embed the underlying authority.Config struct type? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/ca.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e6886dec6fabbb1d5d1861ee507744b34492a41e6d02f31f66c46912507bb1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement root renewal (use same key) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/maintain.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b0e0cdaca31dd8bdd30087ed7a219fcc4e3fb56be3707253e42b70b6590aaf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // COMPATIBILITY NOTE / TODO: This property may go away in the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/acmeserver/acmeserver.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a62d9831cc37247aa11271e71e39a5e9bbcf341962d7ddd3e40baa61e45c1f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // COMPATIBILITY NOTE / TODO: This property may go away in the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/acmeserver/acmeserver.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d556f3b5dd8b4d69c3f7b711a2cd099449e2ea1e17f42873554d21b3a3af3eca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/acmeserver/caddyfile.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca258afd68982d969e7212f048e6e2122b96f84ffc251796089fbd0d81cf23d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddypki/acmeserver/caddyfile.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db33339d134b3e48cbb6551e319e8f501c2f0685e68613386403e7838b5d50c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Migrate to http.Server.Protocols once listener-wrapper behaviour is covered. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/app.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ac20f7ce0bb51d63cab5890716c6ad00736ce00fd73dc8bd9ab5d5bf616aa1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This implies that all plaintext requests will be blindly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/autohttps.go"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c05677cc57b373a588e17538a114b3aeb588b4541ee46e982fe351c121defba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Despite the fact that the *vast* majority of path \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6360b1019a7668385baa3e02498e0900c36b1a49ae112305869dc71dde9e43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: allow these to be customized in the config \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/metrics.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1352a3da7559d8afff7faeb90528e19890fdfc77a4c9c7389c13c354c8671078"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // not ideal, but also most correct, given that files can have dots (example: index.\u003CSHA\u003E.html) TODO: maybe this isn\u0027t right.. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer_test.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2ee6e2d2716d8d6150a310745d3b81ba794bd6554e0e63002f084599a7d6cd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Update this comment, it seems we\u0027ve moved the copy into the handler? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/routes.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b0f47bd6422852a00a3d89cfd73afa8e34aee629b7af2f2267b953ff1e851c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Is this used? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/routes.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ff9691159a4ed9d62e85e8400886d7e0507f9ba95f39a1a53579a8303c53f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Experimental (Nov. 2023) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68e8abd049c59c24a68c04840f55c586e86258e46db65257af0d09bbc7bade9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support port ranges \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"755e3080cc8faddf447e625f90984313ebafd66e1c9f0ce86af99720331965a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this is not awesome, maybe should be configurable? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/templates/tplcontext.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"396a41e289ab08e337c5582e82730315acf85780be3a66380a6b88f85bc844f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // (TODO: fix that) so here we ad-hoc compile the regex \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/rewrite/rewrite_test.go"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb87a0ac343d7113510b712464232085ebf56bec539a00bfa7b3bdc772c85ffd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Deprecated: Use \u0027uri\u0027 instead. This field will be removed. TODO: remove this field \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ad7c570aa9b7b7f7304e78c4c31aa555892c94be2dc5db54dcdfd5d6a6b35b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This could be really useful, to bind requests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/hosts.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b7d709bcacd8b3d3d329030607870724918d5672af44118d62a7b62772675e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: It\u0027s possible that other transports (like fastcgi) might be \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a079f872250fb0685b563feacfdae789719eda4a56894aa979a806a3bc45ac6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: EXPERIMENTAL (May 2024) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ff135d01f0883c65aa56925b5e6b0998d33cfea11dc811efc8f6c38a6af7fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Migrate to http.Transport.Protocols once transport behaviour is covered. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfccd6e3ec8ddb92ec10bccdd95c024c5a361188980c827f26a889c688b8c604"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: EXPERIMENTAL (May 2025) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eb9e4f0f00c17c841c686170f01065030745ac701124e2db81f795433f1aee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: EXPERIMENTAL (May 2025) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f5223bc911d053c94a63d4b2fadcbfac1efc51620dfdf03290afca8cf8a46e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // use HTTP/3 if enabled (TODO: This is EXPERIMENTAL) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e2092aff6fdbdf0c160112f6fca7b0f5c1ba92e01239135a98591d07769351"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: log these errors if any \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46fe933d12f4c91b0ab4381c78e9a983e3544c05949143c12be95f17bfc0cb4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use or enable ctx.IdentityCredentials() ... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/httptransport.go"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f690c978d586d5b00559916010bf12e8397caa1d195d277a1fa30a8d9b975c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we can reliably detect backend support this, it can be removed for those backends \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"251e9595e840eb3102ac63c3bee11d75ce68b46fdf58de84c2664230c5502519"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we can reliably detect backend support this, it can \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42b16f356b060baeb0e2bac03851d2b6ced144dfe99209cdbd1a8c8eaf219c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this could be useful to know (indeed, it revealed an error in our \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"310cf19879cf1e900e76ffde4f69564a087c12cbab8e9fd7c4431ff64327eefe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we might need to ensure we are the exclusive writer by this point (io.Copy is stopped)? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/streaming.go"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb01146d98e101405bf626ac674864b621e6aca1a98e8ad6398c9a1b97126e1c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // keepAlive bool // TODO: implement \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/client.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"43aef870c97b8a19e8e8666cf8491acc5889e0eacec4d7adcde1ad563adab32e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fixTransferEncoding ? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/client.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd4156fec3e32158c6c234f4f57e0410de677c3b47300820318f4950350e89e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: test chunked reader \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/client_test.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64f4e40d23fc8910c14d32f8df4c1a6027098d7cdbd339bb5dbb2329dec61a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: better default buffering for fastcgi requests without content length, in theory a value of 1 should be enough, make it bigger anyway \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69aa483768d0cd258ce1861cd37f326889622810cf4a297c8662bb2d9af5c24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: from v1... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ff3beaefef00dc32d84876ee129b97d7e4d74e3ad81136d395b7bfcef12c1f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: improve efficiency even further by using an actual map type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/map/map.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4439d19c96f658c5aaa98cf9efa5edb3ebbc26ce92fdbe517c7166b16d1d508f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: what if the new response doesn\u0027t have a body by design? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/intercept/intercept.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1e6c998b70ca6e5510446ce0359cc16e4064cfba649571ebf6dbcc718f7801"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: not entirely sure if path.Clean() is necessary here but seems like a safe plan (i.e. /%2e%2e%2f) - someone could verify this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d353ca25b71ea33414362b2ede6d5d5ac3acc37f650716dbc006d346e8760122"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: these pools do not get reused through config reloads... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/encode/encode.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9473b2cecb6e69ab83e21cd9cdad620b76434dd54ff86507a7eed4d42ae281"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove support for redundantly-encoded b64-encoded hashes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/caddyauth/basicauth.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2aa54f83bb686c1b8b02dd633340a6135152cc352e8ba6797089c58d21f577c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: delete this package once golangci-lint ships https://github.com/lasiar/canonicalheader/pull/90;"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/headercheck/headercheck_test.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c4d74b49044657ed9c749f0fc3d2c244f9beebae962771f155c8d1e3f48f24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Test each http version separately (especially http/3) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddytest/integration/caddyfile_test.go"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b37023eafffa901bde0dee78432f7b26d1b48a5b1fc29e1fa08df8d8763116"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: deprecated, renamed to log_skip \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"090ffcc9e01dfbbf1a21fcd93e26e79ee6df44befe6274c380932bc74ce53bde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: deprecated, renamed to basic_auth \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e27230c99697dbeac7005f8459f1714aef3beb43562e108e1b5e6b55c69b2c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could pre-process the specificities for efficiency, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"88af79b8205c54662e54d3e3cbb4c34144bc923e28c1d17839322b7fceabc7af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe a smarter way to handle this might be to just make the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01b781169d5297e02cfe2035f7a696a970c95ee758d5992701184a2560e33c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: EXPERIMENTAL \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5be664c0e4da1b2cb9cca6c08130e86264c4052dc8b669fb82cd2adf02f7f0c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: THIS IS EXPERIMENTAL (MAY 2024) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/serveroptions.go"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b41648c78d5c566f4c741d72746eb73f877269a5fbc8f9cd8cead37a42a9f45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: also perform this check on imported files \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/adapter.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5211c37725e9b336f9cee3cab44fab2d0dda56a7771c571f5c438ab0ac369d28"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove the deprecated {args.*} placeholder \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/importargs.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"116db87493abcf00758b529d57e1e5679bf38367133a372d7400cbe59df6d38a"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060cmd/caddy/main.go\u0060 makes this repository a deployable product (line 29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/caddy/main.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9d6eef571ef774df67988810e5123f950328825a7c87119e26712c940d860e"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 52 % of calls cross a namespace and only 46 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffec7f522883de2ac9c5ae93a405d7b08adf62beffa58f8af19bff069c715aa1"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"36a200708bcf811d935cb0efd13c13ffcfd6629e20272528c93df90399d291cf"},"properties":{"commitSha":"6a14e2c2a8881d5e90f1ee363ec4662a3f87402b"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3078bc525d7d4c81729fabf5805b91a603ad1c70da9308bb8f8744548616b7b3"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d1d1a6964cb3214920c2c0e66e09cf1a2eaaaa0de5c03ef73cd0e4d067d5660"},"properties":{"commitSha":"6e3063b15aa88179fefcf6f75001224de68c5dd2"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"482e3b19efd040fb2215efbc5e65f5b9996234817368c5a9198eb89910e46231"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5df00c2720d9c856911b35758e42d5bbe1c959d64ced9034debb69083786ed47"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a451e57df69dee965564f6f31434cde89374a1d3819f4f1a4a1285b9631c47d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"986283fcc53648e7bf4abc21567f066d14cb8d2ab453a057c487126bd514ff63"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90323e27d56b655da47d7829036ee80e8a5104abb82822489796832a94a2f148"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-347","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2b359f2a143ab4c707788cd1bc9469eda64d0eacd51e202fdf0d45a6f4653a9"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03b018003e7f5e8816b41cb6f382fd20407b24b933d5799c9953d33195b63d01"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1f0a6790e2b79d7626f56e96569f4ff0e80fbd895d93b032293b4b9cc0b8a9e"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e7cde7cb25ebf266ba7ca49c8905de8f1c2f0f49c485a5ea2991dbb89350542"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66c2a154318a55b63308e3bf4727615b035247d28cb12fdf3c605252ac1aa635"},"taxa":[{"id":"CWE-665","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-908","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"73665809e74fa42658dd160eb6b067c3da9d77ef0365205ad8639cf7b52c9ee1"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f6c2b38a9b96ee2b61da8785f09b49541cadaaf34fbbd75a0daccf0df9102013"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d0a8d258c6247d9b18307d1fa0560d2e5469ea43f7badb17ed33a6b6104775db"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"581971417982a602d3249fb70fa32e690595d55888cc9b8ff43436ef39ddca10"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ab5e23ee0e98ac6c3c2a3136bef694801add48911e6fab869af806b6da6ede8"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77538376c4dc1ded60edcb7c184e8c46312a375feaa25f8cb92c07c25c2abbc4"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a9b970f1682549b71a14cbc434ff3b7a8100897414c44612d648a4b5857cfd2"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b790822c188daf49aaf7979724be7d8afea8e4c0aa8cf02dcc9f0bcb0b95f01"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"538871b19d98272b18472087689ee1f62e66904d6409309f238c8df3d57ff508"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22a124134424acd0a4b78512d75fb5bcb0befd8e99ed451654aea5ea55eb8d79"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac8535247868574fe6e91f9733d4e66ac2cf6fa795af659dd6e93aff9c8db43c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"326818e60d5dee2417a520906efd26c6ea58be5f59bb218bed335361a42ee814"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24cc177dd58d5d5d298e63a7eec0495e029dd9bf860e50aac87e69e686238673"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"abfee50789b8756428e27194409786814a444a7c52a7f7d933aae2a37c735549"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"022401f3a3173606f6ce1b91da0eff01bd7a86acd660d07cd586962246ed29e0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a8e1f2f6dea1f7a93d79c2ac05933e43342ae6a5273fcf4dd88897368b2f61e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b69d0512cf7f0de6b98cb3e765756a1d1e7df67e392c9ec4f5c0b067473421e"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5448730892610baefab3d08d34cbfaafd565b08886b825acd4862fd30657035c"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"171671257c5742c66bd4fab96682059e17e3163bebad0b191929c764885a230b"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"425b9339e28b4499594456324a94f687bd11aab137c0ad7ef9a76d6a8ef45174"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"462061fe2ad6ecb0497058ac887250e4562a250adb9dc070332d5b55a67df8b7"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19ff1373ff212ae822864eb25756c3df7f97d201b23a871b6eb3024ec4b90f09"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"993a1ef41c1f15ef6d25fec69c1a9ce42b817a25e03c1a512a8abce6098c9d8a"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19d88038425c2c519c0dd2cd5407cc4ce5607a07b039a9ce2552f9738d3fc5d3"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb51b87fecd0408e65058383b14f986632c46972fafed869ab2ef3895bcde916"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f5762eef5610de3dc31c3c21f6db453c374a3cf4542ffaf466781e07578c2518"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb140aeac69e0a8e56f3e53fa37c64cb44bf8e2c869258e3a0074364480137a0"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90c99dbc2614f36a25654f73a5fc67d85e604239b59a4352cbc2be04b31eaeb2"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b986bc0bc7c2bf9c17d5eb896619724e173be564163ec648e78df64b07577a9"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b6bf273fb323356f3bca7eb321af5ef52728343950705709d33fae97148398e"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e628f8c03c382aacb068674b4adfad2b1e223ab68edc5c8241f4b800197e7434"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7978b13687176830791d7d96e02f85fb004b4efd33d626eea154d2b9f20a985"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c33f9ec236879b6696a56d14b5332b92d104c6544e256ed8a81ac532ae21e9de"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea39be371245ec6e6b356ab7be13fe8ac860b35ba3116178f3e2ea4e699d23e9"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9a4635ab769cb40df9e495918c07bfd17deb389e37616e9f417a7ed2c8864f8d"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac9eb04d5c33acdeec9c048186fe4768503318cf34700868b775578d7d99950c"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ee6f982e7e5fb4438af6fd4f91f4ca1d5b42eaa2f25588f592ed3f00247add4"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"601e3bbca0eedf0c941dd973d50cb5b71873158a5dcd9dea9e1ad29d6c11a55c"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e197060370e1e2237e645d10a3455297cf4d0bb1d56006d57b01274685da0051"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f19d681ac6328cc1698b284eb869cbc59c4f816ba1150875f62ca939bb456da1"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c8c8cd7453281bc1e4da411c7867b4666ae8b4f7ac6b55d83ded53506c84866"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db57d03ea0cb87c68d3e94a6eadf12b6b0ad6337a69e9a3f1591e8ef9da3c41d"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3cf5e86a08a19072b8f0bd563a70b218c48f3f386ac4503ccd3db47a28ebe1b"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"258e83997fc456f38983911af403db7aeff4b19e771146bf21e30b6f16b42894"},"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":"0c28145cd8a79a44f90d4e62a8e1b178c1cc70f8f07fd998f377e2dd6f1f18c8"},"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":"1996aadeb82f736171c4a04c4ab861cd6e5a699a90564381fb92eb45f2a6302d"},"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":"1ef4e3f8a72e1b4d04ab8c988dab0112a50399921b955328ad6d3fcab7f187ca"},"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":"2d3ec6d181819d1497e3d320af140549443e2e49d40634d3559056a7e4a4821e"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78f83d283cc053ed7503855b619ad4a86cffd085b8be2f42be0d68be7410066f"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2cd4437b7be35d57a4cdd45425982677203e5498a05982ba428a10fd3ba9aee"},"properties":{"dependency":{"package":"stdlib","version":"1.26.0","advisory":"GO-2026-4599","aliases":["BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27137","BIT-golang-2026-27138","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33810","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-46600","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-4600","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4866","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5942","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"admin.go","line":352,"symbol":"url.Parse"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c9c7154a9d80981a2f1da0fd0aa2e12a4e104a4411624a7aabc5ce2dd45d848"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.58.0","advisory":"GO-2026-5932","reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 12 of 169 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 169 of the 229 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: modules/caddyhttp/caddyauth/argon2id.go, caddyconfig/httpcaddyfile/shorthands.go, modules/caddyhttp/tracing/module.go, modules/caddytls/leafstorageloader.go, modules/metrics/metrics.go, listen_reuseUnixSocket_windows.go, modules/caddytls/leaffileloader.go, modules/caddytls/leaffolderloader.go (and 4 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/caddyauth/argon2id.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb7180e039ce7e8eb060a627d374527dd7834404e8d2d245f76cfd8eb3d1f05"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/shorthands.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2913b2e2494d10acc17d974e68cfa5a2934473a1036bdfc60af0801f969a2fc6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/tracing/module.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2738e01af1a8ba6f5f745d913fd01628d559c7ea20a3d1c4da887a7d3ca32f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/leafstorageloader.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e206414f4242cb5de82f097176707f52c1b590030c6ebb051d2943e24a7340f2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/metrics/metrics.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfe3145a5829e3d83079179aaf5d666775f079730a34feb6acfbd3736d88c4e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listen_reuseUnixSocket_windows.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"184a9af931e0723056667a73f561002b92fe06d86c5b5db4ae8a9e50256b9d59"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/leaffileloader.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf9fc3c28a57c0d08df0617dc793c32eb293177ac13e584acc8923b08b5c98d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/leaffolderloader.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37201e5a5018e49bd0dd9696b0e1db06defac0a6f7fdbcb3e046d5e6baa44689"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyfs/filesystem.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b64a3a62f815d0978c3aed63a98936711a03838f2ba7fc49c32a5148ee65e7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metrics.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7c367a96e79e9ef4a218910d113c31de17c39fd7cad508c88c40dc4c0a1244"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/leafpemloader.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8b3faa621ffe617b929250df5503c290d88184d3b793f8fb29a2c261eadf9f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filewriter_test_windows.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95918738648014ab48230ccadaa76ad54ffbb21948d7f211900943778189d61e"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: directives.go \u2194 imports.go: \u0060caddyconfig/httpcaddyfile/directives.go\u0060 (context caddyconfig) and \u0060modules/caddyhttp/standard/imports.go\u0060 (context caddyhttp) sit in DIFFERENT parts of the tree yet change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00600cf03d32\u0060 caddyhttp: mitigate slowloris via idle read/write deadlines (#7913); \u0060fb63e2e4\u0060 caddyhttp: New experimental handler for intercepting responses (#6232); \u00600d44e3ec\u0060 logging: Implement \u0060log_append\u0060 handler (#6066) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/directives.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9236948e4ba1ea874ecd8fe6b507357c257106d1e496c96b74cb238bbea3fc7c"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f242609c36a371369b222b15faaa8f87b0ae3dd5caeae0584cddaf3ad0ca9be"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f676b9bef0d10f4f88bf60130143a7b2c8c48ca10ee4216078623ec6d6e878"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd0f7b0c5a6df0663b72ee12daa0ebba5dca9361143185f18ce0de96f44ba29"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3b2a26f3462af8bd7483f201ea06f4ad4d77d77e6661c47b82c435026d29c6"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ed6d64373ff7839860ce60299906f760df139635d35a4d5f3d2e4d06b98251"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0980222d5be052c66dff13129c3768bcd431df787b9192f326bf8770b394d6"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"de50bfa5b8814976ba868524f771266f7466cb55b856b6fd73f72a3ded3d5f30"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"93982e637e8616b955bbcab989e072660ed6764be4ec42b94a5b7611e468d679"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"3410fad1d488a0aa83fcc6c6f774b855959e7046bc3429c73d2c1173455ca58a"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"009af1f7c92ceb934a4d62025f55e289fdd48d0279a1d4b52e70071743270365"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"4718350a08d5f44ada1c736a29ac246f2700acd7959b3ce1efa81bc779f7d609"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"700828f230f1bb9a241ba676b4e8464b37b992552fa6aa8ea90c80d60dc70a11"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d1be873c201df3f7b60bbf4669a63e80947781c49089df910644893a455930"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browse.html"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"982553703e26257c25701879d197ed3916f014f78f45b4a5e7b03e69a01569b9"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Client{\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/commandfuncs.go"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"372932d999a4bca5369007972e4f1567a57d85fa6d2ccc5625db81562ec7359a"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/packagesfuncs.go"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cb9fa37f2f4b82e8a60ae0d04c2703500a42617c6cc4c5b13bda706dc3a219"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060issue_7518_unused_block_panic_snippets.conf\u0060 is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddytest/integration/testdata/issue_7518_unused_block_panic_snippets.conf"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"330017d15595901def2052bbdc26b57b6d671847f33ef07ddcea08643ca00ad1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!errors.Is(err, context.Canceled) \u0026\u0026 ctx.Err() == nil\u0060 appears character-identically in 2 files \u2014 modules/caddytls/ech.go, modules/caddytls/tls.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/ech.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c8fb9cfe302113379724998da5506784deece3cee8a7b18e77609e4546640d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060b[0] == byte(\u0027\u0022\u0027) \u0026\u0026 b[len(b)-1] == byte(\u0027\u0022\u0027)\u0060 appears character-identically in 2 files \u2014 caddy.go, modules/caddyhttp/caddyhttp.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddy.go"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d44ab7062ba1354f14797137a42a7c8897f3a4c5c450ec3c3d3e471b8b6283"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060caddy.IsWriterStandardStream(wo) \u0026\u0026 term.IsTerminal(int(os.Stderr.Fd()))\u0060 appears character-identically in 3 files \u2014 modules/logging/appendencoder.go, modules/logging/filterencoder.go, modules/logging/journaldencoder.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/appendencoder.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7f6bf342e39d2eb90d0e9675994fe535c945ee2e27b605a834c28318123819"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060h.Headers != nil \u0026\u0026 h.Headers.Response != nil\u0060 appears character-identically in 2 files \u2014 modules/caddyhttp/reverseproxy/reverseproxy.go, modules/caddyhttp/reverseproxy/webtransport_transport.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4302c4b195c6d6b509888801a52bcd5cbb8fb9287539c29584379fc26706a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060h.LoadBalancing != nil \u0026\u0026 h.LoadBalancing.SelectionPolicyRaw != nil\u0060 appears character-identically in 2 files \u2014 modules/caddyhttp/reverseproxy/caddyfile.go, modules/caddyhttp/reverseproxy/reverseproxy.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/caddyfile.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68dde7c3229de40cef05873133dd81f853ce3344638fe2e2cb219dc85a9ee5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isCELStringLiteral(e) || isCELCaddyPlaceholderCall(e) || isCELConcatCall(e)\u0060 appears character-identically in 2 files \u2014 modules/caddyhttp/celmatcher.go, modules/caddyhttp/fileserver/matcher.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbd114e2da8e03e4bddb7414d9701343c83929515c33502c92dc2770b07357b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(arg) == 3 \u0026\u0026 strings.HasSuffix(arg, \u0022xx\u0022)\u0060 appears character-identically in 2 files \u2014 modules/caddyhttp/responsematchers.go, modules/caddyhttp/reverseproxy/caddyfile.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/responsematchers.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad0da74bb85e13df4e03d2d798a8cab5118da57ad5a0d4cfaecc0807b46b98d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mre.Name != \u0022\u0022 \u0026\u0026 !wordRE.MatchString(mre.Name)\u0060 appears character-identically in 2 files \u2014 modules/caddyhttp/matchers.go, modules/caddytls/matchers.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/matchers.go"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d22613b4b8dace8593f323abcf5a2cd63c95be6b950bd4d1d0c165be12f4b8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060r.ProtoMajor == 1 \u0026\u0026 r.ContentLength != 0\u0060 appears character-identically in 2 files \u2014 modules/caddyhttp/server.go, modules/caddyhttp/timeouts/timeouts.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"33609e46bf67c6dc26ed812f38333d3da32398f102f1d2ae4c6830b18712c178"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060req.TLS != nil \u0026\u0026 !req.TLS.HandshakeComplete\u0060 appears character-identically in 2 files \u2014 modules/caddyhttp/replacer.go, modules/caddyhttp/reverseproxy/reverseproxy.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c5a50a1241a2bc9a71d9ee5f452f4667fc5474c973c969afc3e6f19173f67e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060server.Logs != nil \u0026\u0026 server.Logs.ShouldLogCredentials\u0060 appears character-identically in 3 files \u2014 modules/caddyhttp/push/handler.go, modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go, modules/caddyhttp/reverseproxy/reverseproxy.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/push/handler.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a96087f95010298fca64bc0e4a82ee9186e5ac168e68d56cb7b03ba01a1e5ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060srv.AutoHTTPS == nil || !srv.AutoHTTPS.Disabled\u0060 appears character-identically in 2 files \u2014 caddyconfig/httpcaddyfile/httptype.go, modules/caddyhttp/autohttps.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"3879b6f23dfea47f755d5b94e37af17d398912ff07877d95507f09c0d08a3144"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context: Only 7/12 functions that make a cancellable request (net/http, net.Dial) accept a context.Context or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a cancelled request, a shutdown, an expired deadline. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it (\u0060http.NewRequestWithContext\u0060, \u0060DialContext\u0060); where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"faab330444baf00d50193f250b5c9b514f84cdca16c24014ef3776329847910c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: reuseUnixSocket: \u0060reuseUnixSocket\u0060 calls \u0060net.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listen_reuseUnixSocket_windows.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e18902e0960b3b4f053bbd5b90fb8db02ce16624cb26b0470575e998524ec9"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: dial: \u0060dial\u0060 calls \u0060net.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/netwriter.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a07416533130fd84de08258395e97c6d9b276d91b422bd88ad64073d7a8ec3"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: cmdRun: \u0060cmdRun\u0060 calls \u0060net.Dial(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/commandfuncs.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f102c35472a00dc9984bf4ca929045bb792614c404d2932b0faee68d5cad9ba"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: AdminAPIRequest: \u0060AdminAPIRequest\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/commandfuncs.go"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"017bf4d4ffd83f35c63bc6922c73025aaa2b0900277d9a837e3f39d1a8931091"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: downloadBuild: \u0060downloadBuild\u0060 calls \u0060http.Get(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/packagesfuncs.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"24160ed1fb733f05f4673e5f111f01ef681217e5ad977f00abc79d2662cf923f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb965cedcb2f9b2008a2023b772e8b1c9c667ce7cdce6e2d0dc6e3226915049c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"9890ff651684200ce54835e589817adf91f46b804e15392296855c0811c03e0e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin.go"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1e3504cce1a4ec1508e37a99a22acbb348d388f13e28d5b08819e0d53a0478"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"duration_fuzz.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"58071a96a5a7adbabb355ed6cbc929ddf3b5b2f5c74abff712a94c4439350ca1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"listeners_fuzz.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"028f8829b491e71e8516c82377f0173d625c5c17ac95534158101da13e6b2915"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replacer.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"863293da39761207a789bcf6393ee1a47ae0d8572a57a48cda7e402a81aedf4e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filters.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c55c392771aa486df126fd033142c4ec57a1219bbeb5fda81e2572dcf6f7896"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/logging/filters.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"4409a3065e9001fdf01b02996127828858edaa492eb1b3019ae22eadca92ef78"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfceed34efd9cc39eb294ffa00314df694a0ccafd2a18426a2933c9b7933586"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"7353a93a8dee45d75e9c9e54142f40fa7e70c207ba38b029b5512aae5bbd3abe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := ctx.Err(); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fa53129c4aaaffafdded22987a1a0149608d32e7abbbf123e79e5c96f93da0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := ctx.Err(); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddytls/tls.go"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3224f2e461aebf82b17993c9375a77bfab694688b42daf4ea63d7f624940bd6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if splitErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"293554d6b8810460398f8bcaf6757f16942f5a87def827847c0657dab423e873"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/celmatcher.go"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b949b2ee58892c145fd62ba1336d6d34414f3b559cf4e8f4793bb45943be96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/incremental.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0627aa40e12b83134b9ea0c0c5dbd36eda3086d96802c0e7d2f794f0121e48f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/logging.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c983188ea20451882f6c1bbc53a4e5ce909e5787d237b14f28a20e6eaa9b6f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/marshalers.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6632706c93559569818bef27744d4aa0f47126d0d6d44b689bb3aa41244cb6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"818374d1c05f9f2e6f76a401da3c70bc3d8fe62eb5de18f3881ed02022ee70c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00f2620ea37c793483c8b1126c2b7877aafba74cb24d0cc55e431627b2a6a87"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"454e8aa34045de3424d0ff4fd6c661ed02c1e69841a006846385e7f1acc2f6b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7e6355dc7a2d7dc99513404069373474daab218dc978537025f76aa8cc97e5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"56aa035bb205e005ab37fdeac7501576862e9360b59e7e5ebe79ee0ff8d7b9d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dfa7a450eb3c7a6c436351d52d6a0ff186de12c875029ff63a7e31b7020324"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"778c56cf316ce5e0f1cef671a5ac323d2df4755d9f3c6b9d90fc3e16d1156904"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"b145a51932ad167dda1c6faa133a82f89bfd822fc48ee71abf4182239e70051f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c1e9b25c5eacc8bfc2d142ae4b869835397159e1929ac3a156c5fedae1045e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d302366dd6192b3530fceeb80aea8fc2a7806c5aad61e65c9ae64d7335b44445"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"30174c1935adff70906d41e97f5ba9073a8a2c39591c473bf330a34d9a3f372d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f17a67c44c8af7ab9a281e3fb4e8fcfc4dc74d98d2ee033e454f0c9c804f68"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2b435ba85def04d1d9a7dac4d19a6a33323b8e3a8ad0e6d9640ddc5c15caa3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1948}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3439042fcb268cb19d9d6d36251baa9cab583ce9e813098c254ec73fa2bf04"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"b982f95140bb4065dc3f5a1cab0af319be28b89476dceb8918120a17c6e8bd7c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d02d217f3c766347f1fccb98169308e15ce3ac8c89c0d9dfc0edf1daa2461c2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"9357bb32d8cdcb5fed3dfd373939b3964c6e651999382576beec6271eeab41c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/templates/frontmatter_fuzz.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc4476cc10f17f5c5d9f1ef7dabb48fe448e043f3bfe4628e309c1a0e287371"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/templates/tplcontext.go"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f3d0c49f381ebea06d17bc2bf5e8e8bf2a1a6c3bce89833efd6d68040a2701"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if path, err := url.PathUnescape(newPath); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/rewrite/rewrite.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5662ca1b2abb52d7d8d0f44c1329919d912d16b0a5f2382d2e4b9640ccbf43a4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/addresses.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a30979b3616030eea1640b937c9aa308aab785eadae8210ae581696beb5b7a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/healthchecks.go"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba14357dae1446259db7c2bf72d083e6f55c6df30fc8f3e53f490450823e06bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := httpsfv.Marshal(item); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":2209}}}],"partialFingerprints":{"codehealthFindingId/v1":"633078ba21648b39a1612d392f30e8f470f14dfc36ad19262a1d0d3851d728f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/reverseproxy.go"},"region":{"startLine":2214}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26233fbe1918b4dad5b92eedcad471771a599b7d1cf19a66b3bd91765f206a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb07613cf8dc37fd4b867f4705d0e46c65ad1416a397efba20f8062f5643c935"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/selectionpolicies.go"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f5256bdbf40c2ae02ea50862da56ec1ef7f2748cb06039f09d81f90e7c06d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/reverseproxy/webtransport_transport.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c571bd31035089b173625c95a380866e5d6db4e6d61a9f48e9b9dffae530543"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/push/handler.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"946525585a6c9cb75eec99551a0a26e8e15471193ea441fd6f83b68a7bb1f405"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/headers/headers.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeeab21a4eebe57c985cd5799533d53d5a503a30354a3d0c5cee1c04eb7fb292"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := ctx.Err(); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/browsetplcontext.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a48529e18110b1afc0119994d08f9a4c5d52ee2f77f4622b954c7eddac82e8d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/matcher.go"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f9dfe095e37ccb024c2bda97578a29f8d1161a54b44d5aae22dd2a924aaa37"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/fileserver/staticfiles.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed09689f95bbc14b618ec6c78269e0a0a94882ff36c54d4508302089cb9d14c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/bindcap_linux.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f698488717045e3c27e057ac9c78f11739e7d010328c968aa096d71e44599a0e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddytest/caddytest.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7abf06cb55d133b80d46d35a347b3c219e7096440104c4ce8b9dd07c0aa49db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddytest/caddytest.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6585b1245d013ed95d2381789f40accc6d9fe278ea993fe91d835336b0f33185"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddytest/caddytest.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbbc0c346796131dd42d387cef48ed8f9de3542e7e58f9bf9e32d56fb39feb1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddytest/caddytest.go"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4a53d4574875559026fae0d32bbbe3a6fcd67f300ce5eb07dc82898bdb49d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a78dafbf85accf59fc1a2822efa194ed477c29a6acd47f9f2a92f4aaa807e05"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4f374ce91281552b134028906ce2657fd1a74bca91c2c3b81101fb057bc05a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/httpcaddyfile/httptype.go"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f50f8e42acc1a9a4e2862b31026996a3d50a5a1f51c2f24a2cf9b73357d28dc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caddyconfig/caddyfile/lexer_fuzz.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"47defd8fe0b33a75fbcd6b120491404637fa37b295eecc4e1769f3ebc70eaa5c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060getTLSReplacement\u0060 turns a non-nil \u0060err\u0060 into \u0060return nil, true\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/replacer.go"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad6048faa20a5642b877383f75c731417a6b3cf1ff01a71353629d8e66ae1a1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060determineTrustedProxy\u0060 turns a non-nil \u0060err\u0060 into \u0060return false, \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/caddyhttp/server.go"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"765275383d590c71458c19cb002c7d9f081f5e8c73879ef6ff04df3b585106c8"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1188","guid":"90b5d93c-2e8f-7d58-b831-915e7ee4a150","name":"CWE-1188","shortDescription":{"text":"CWE-1188"},"helpUri":"https://cwe.mitre.org/data/definitions/1188.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-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.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-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"Unchecked Return Value","shortDescription":{"text":"Unchecked Return Value"},"helpUri":"https://cwe.mitre.org/data/definitions/252.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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)","shortDescription":{"text":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-347","guid":"1375fd68-0c05-cd5c-b04b-b568d808cfa1","name":"Improper Verification of Cryptographic Signature","shortDescription":{"text":"Improper Verification of Cryptographic Signature"},"helpUri":"https://cwe.mitre.org/data/definitions/347.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-614","guid":"faa8a6a5-7e9d-5d5e-afc9-020ff49d250a","name":"Sensitive Cookie in HTTPS Session Without \u0027Secure\u0027 Attribute","shortDescription":{"text":"Sensitive Cookie in HTTPS Session Without \u0027Secure\u0027 Attribute"},"helpUri":"https://cwe.mitre.org/data/definitions/614.html"},{"id":"CWE-665","guid":"fe279ff9-a979-f952-9df9-3f7d05af85d8","name":"CWE-665","shortDescription":{"text":"CWE-665"},"helpUri":"https://cwe.mitre.org/data/definitions/665.html"},{"id":"CWE-704","guid":"50bd74b4-a921-5159-8671-99fd7e78c810","name":"CWE-704","shortDescription":{"text":"CWE-704"},"helpUri":"https://cwe.mitre.org/data/definitions/704.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-908","guid":"ca1da1d1-5eaf-e95b-adbb-4eb2bc10b9fc","name":"CWE-908","shortDescription":{"text":"CWE-908"},"helpUri":"https://cwe.mitre.org/data/definitions/908.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":70,"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."]}]}