{"$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":"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":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"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":"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":"echo.bindValue (cyclomatic 53): echo.bindValue has cyclomatic complexity 53 (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":"binder_generic.go"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a9275b30d3c62237eb1015beb834aa01349554ef68bcb797510a416603c89d"}},{"ruleId":"D1","level":"warning","message":{"text":"echo.bindData (cyclomatic 51): echo.bindData has cyclomatic complexity 51 (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":"bind.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f6659da7e9e384fdc4d719fc580048b0d391e5ce31f94d5869b98ddc6eb03c"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultRouter.Route (cyclomatic 51): DefaultRouter.Route has cyclomatic complexity 51 (threshold 15). Of this number, 48 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":"router.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"4532b7e1024cf33daf8a975257b77544544590019c4aaef7affa2fbae8842d0b"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestLoggerConfig.ToMiddleware (cyclomatic 39): RequestLoggerConfig.ToMiddleware has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 5 of the 39 points are its own statements and the rest belongs to one function literal inside it that branches (line 268). 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":"middleware/request_logger.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f878ba59bf9fd975a3a1cc09181176d14848a67cbc84c69f478e05c7999ce13a"}},{"ruleId":"D1","level":"warning","message":{"text":"StaticConfig.ToMiddleware (cyclomatic 36): StaticConfig.ToMiddleware has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 9 of the 36 points are its own statements and the rest belongs to one function literal inside it that branches (line 218). 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":"middleware/static.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f166e508d7c44325e2a0eb975ee89e132876de6359c88a808a05086ceceb338"}},{"ruleId":"D1","level":"warning","message":{"text":"CSRFConfig.ToMiddleware (cyclomatic 29): CSRFConfig.ToMiddleware has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 13 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 168). 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":"middleware/csrf.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1500113b5d971bdbd0cbf030e72f692d192a983f7f5c528f53ed9fad98a5d005"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultRouter.Remove (cyclomatic 29): DefaultRouter.Remove 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":"router.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7716392440311fd276c0eb516a6cb9652c7fae4fbba5712307970771d7f3f21"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueBinder.ints (cyclomatic 26): ValueBinder.ints 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. This shape REPEATS in the file: one other method here (ValueBinder.uints) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4a60b366bfcd85a66a5bdfbfca9d259d2ac70ef9e595397ac2892e3cbad1c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueBinder.uints (cyclomatic 26): ValueBinder.uints 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. This shape REPEATS in the file: one other method here (ValueBinder.ints) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"2211aa59c8d6cb7a6e78624c4340bb337475fbae09122eec61d06e1e983ef877"}},{"ruleId":"D1","level":"warning","message":{"text":"CORSConfig.ToMiddleware (cyclomatic 26): CORSConfig.ToMiddleware has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 10 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 192). 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":"middleware/cors.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a45229201b96729192cf2bb7d529bcfe555358de06a24bad38c258328e257d"}},{"ruleId":"D1","level":"warning","message":{"text":"routeMethods.updateAllowHeader (cyclomatic 24): routeMethods.updateAllowHeader has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"router.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"28249fdf2ec2b4e647ce126582f0d183c09ab869995656bf7cbfa0c2fa99f904"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextConfig.ToContextRecorder (cyclomatic 22): ContextConfig.ToContextRecorder 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":"echotest/context.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"005e6faca01137916599d75653e519889795f5009da32de18e78d5f83559bb94"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultRouter.insert (cyclomatic 21): DefaultRouter.insert 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":"router.go"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"543ebd7f2fb26765df267f1806195be7229c1bd2322f0b1b52ed0b5214e12c61"}},{"ruleId":"D1","level":"warning","message":{"text":"echo.walkRoutePath (cyclomatic 20): echo.walkRoutePath has cyclomatic complexity 20 (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":"route_path.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7515a6bfc9628691a1ee191ad70b32b265f5d101af5cf5c265e702704d8fd8"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultRouter.Add (cyclomatic 20): DefaultRouter.Add 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":"router.go"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c07c5e87c9a16573a92a3c4940033031383546f15f22df0a2671887217d8d8b"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxyConfig.ToMiddleware (cyclomatic 19): ProxyConfig.ToMiddleware has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 279, 259). 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":"middleware/proxy.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aae759b48ccf8a9b581fa09bdea68b98f8ec1b7cb7a80229a09e1250af3c4b0"}},{"ruleId":"D1","level":"warning","message":{"text":"echo.ProblemDetailsHTTPErrorHandler (cyclomatic 17): echo.ProblemDetailsHTTPErrorHandler has cyclomatic complexity 17 (threshold 15). 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 69). 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":"rfc9457.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9bd38cd35ea41bd6e5bd4ba2216bcdb19a55d92146245dc10874883f1f19fe"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyAuthConfig.ToMiddleware (cyclomatic 17): KeyAuthConfig.ToMiddleware has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 159). 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":"middleware/key_auth.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eec500d5bdad3cc8922bc7448cbc59881f16dbfa670a455c36294d039a35ae"}},{"ruleId":"D2","level":"warning","message":{"text":"echo.bindData (cognitive 99): echo.bindData has cognitive complexity 99 (threshold 15). Drivers by points: if/else 35 (81 pts), boolean chains 9, loops 4 (9 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bind.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73ec4fb3ec7cd1770cc3b230b71fb528143626560b59cc1e23015000a0acada"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultRouter.Route (cognitive 99): DefaultRouter.Route has cognitive complexity 99 (threshold 15). Drivers by points: if/else 44 (79 pts), loops 4 (8 pts), boolean chains 7, jumps 5 (nesting depth added 39). Of this number, 94 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: router.go holds 5 of the 28 functions over the threshold \u2014 including the worst \u2014 and 170 of the 589 points over it (29%), 2\u00D7 the next-largest file (bind.go at 84). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"router.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2b8ed3eefaf11cea4f5f8cf584301d3af774c444b8f6d115d15f0f4fc59fcb"}},{"ruleId":"D2","level":"warning","message":{"text":"echo.bindValue (cognitive 73): echo.bindValue has cognitive complexity 73 (threshold 15). Drivers by points: if/else 28 (65 pts), match/switch 3 (6 pts), loops 1 (2 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder_generic.go"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb9a733631d107930d2d930880413318055a55fada94ec4946b62d6f822bc6e"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLoggerConfig.ToMiddleware (cognitive 53): RequestLoggerConfig.ToMiddleware has cognitive complexity 53 (threshold 15). Drivers by points: if/else 32 (44 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 15). Most of this is not in the body itself: 4 of the 53 points are its own statements and the rest belongs to one function literal inside it that branches (line 268). 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":"middleware/request_logger.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5d4ec615e3f30be776c4694ba8b713dd80f118de1703a5d5c61891c4bd66fc"}},{"ruleId":"D2","level":"warning","message":{"text":"StaticConfig.ToMiddleware (cognitive 49): StaticConfig.ToMiddleware has cognitive complexity 49 (threshold 15). Drivers by points: if/else 32 (45 pts), boolean chains 4 (nesting depth added 13). Most of this is not in the body itself: 10 of the 49 points are its own statements and the rest belongs to one function literal inside it that branches (line 218). 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":"middleware/static.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4149f1fd2bb159676ff670ce584c1778c8add0766bb6eba0558c3ca551493f2"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultRouter.Remove (cognitive 49): DefaultRouter.Remove has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (32 pts), loops 4 (8 pts), boolean chains 6, match/switch 1 (3 pts) (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: router.go holds 5 of the 28 functions over the threshold \u2014 including the worst \u2014 and 170 of the 589 points over it (29%), 2\u00D7 the next-largest file (bind.go at 84). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"router.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"b712e7141bf57f461bd5ca8bb566368399ca03cb29e4bc7fa8e31224920c1147"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultRouter.insert (cognitive 46): DefaultRouter.insert has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (36 pts), loops 3 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: router.go holds 5 of the 28 functions over the threshold \u2014 including the worst \u2014 and 170 of the 589 points over it (29%), 2\u00D7 the next-largest file (bind.go at 84). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"router.go"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef138aeb3787621163231f02cee53221a2852cd82c78df5312369a90cb2c079"}},{"ruleId":"D2","level":"warning","message":{"text":"CSRFConfig.ToMiddleware (cognitive 43): CSRFConfig.ToMiddleware has cognitive complexity 43 (threshold 15). Drivers by points: if/else 26 (36 pts), loops 2 (5 pts), jumps 1, match/switch 1 (nesting depth added 13). Most of this is not in the body itself: 13 of the 43 points are its own statements and the rest belongs to one function literal inside it that branches (line 168). 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":"middleware/csrf.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8895ef4b9ecacfcd9a40b3c81d066f77265a2b76947bdd6603cced891c9819c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueBinder.ints (cognitive 41): ValueBinder.ints has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 5 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 20). 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. This shape REPEATS in the file: one other method here (ValueBinder.uints) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b78ee733271679864f2e223a91c9e685a351f56b4f3d9e8a3d892accb6c9cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueBinder.uints (cognitive 41): ValueBinder.uints has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 5 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 20). 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. This shape REPEATS in the file: one other method here (ValueBinder.ints) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"a091ab15c17008d291033e79a9039cd503ea5718a00d2ef2e58f30aa1ceabfa6"}},{"ruleId":"D2","level":"warning","message":{"text":"CORSConfig.ToMiddleware (cognitive 40): CORSConfig.ToMiddleware has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24 (36 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). Of this number, 18 points are the body\u0027s own statements and 22 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":"middleware/cors.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d48e310fc20efa849af17cba375dac9ff0de298a33e496e8fdbc09992af551"}},{"ruleId":"D2","level":"warning","message":{"text":"echo.walkRoutePath (cognitive 39): echo.walkRoutePath has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (15 pts), boolean chains 6 (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":"route_path.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a65b2f6aed57096186140fa562e98eaf572c8b411adc75cb29696ceab4bf243"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextConfig.ToContextRecorder (cognitive 37): ContextConfig.ToContextRecorder has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 3 (6 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":"echotest/context.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"352f72fc505fde7d04d0da0f0e0e08f5684e24ddcceedd0cf8a80b0a9ffc9a18"}},{"ruleId":"D2","level":"warning","message":{"text":"echo.ProblemDetailsHTTPErrorHandler (cognitive 29): echo.ProblemDetailsHTTPErrorHandler has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 1, match/switch 1 (nesting depth added 12). None of this is in the body itself: all 29 points belong to one function literal inside it that branches (line 69). 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":"rfc9457.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddf246eab1005f489ccc61a897ed6c10bb7dc971ac8ddf56c81242fedfbb1c0"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultRouter.Add (cognitive 28): DefaultRouter.Add has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (4 pts), match/switch 2 (4 pts), boolean chains 3, jumps 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: router.go holds 5 of the 28 functions over the threshold \u2014 including the worst \u2014 and 170 of the 589 points over it (29%), 2\u00D7 the next-largest file (bind.go at 84). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"router.go"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7a03533086c33dfb1957c67d1f38024dc620ac9e54fd2fa087352fe261603f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyConfig.ToMiddleware (cognitive 25): ProxyConfig.ToMiddleware has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 2, loops 1 (nesting depth added 7). Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 279, 259). 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":"middleware/proxy.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9025a4cc87f8ab716c5bc9ac0af575238f0031efe1be4c0f3013dee3d116aea4"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyAuthConfig.ToMiddleware (cognitive 23): KeyAuthConfig.ToMiddleware has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 159). 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":"middleware/key_auth.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e9d5beb37f803571f7f4bab976853db2406e416e0e623cd93d06931b114773"}},{"ruleId":"D2","level":"warning","message":{"text":"routeMethods.updateAllowHeader (cognitive 23): routeMethods.updateAllowHeader has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 11, loops 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass\u0027s cognitive complexity CONCENTRATES: router.go holds 5 of the 28 functions over the threshold \u2014 including the worst \u2014 and 170 of the 589 points over it (29%), 2\u00D7 the next-largest file (bind.go at 84). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"router.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"077159867cb056a80ab5b627a5d2ae6b39f6f51742cdc5416e552eb93f784bbd"}},{"ruleId":"D2","level":"warning","message":{"text":"GzipConfig.ToMiddleware (cognitive 21): GzipConfig.ToMiddleware has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 1 (nesting depth added 8). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 86). 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":"middleware/compress.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6401c72c137ab06f83a518a4b590b92d639985fbedd00a96b0093a93388761"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicAuthConfig.ToMiddleware (cognitive 19): BasicAuthConfig.ToMiddleware has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, loops 1 (nesting depth added 6). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 111). 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":"middleware/basic_auth.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae51777ea9c43698a9eb8c4206a13a59370a84e1bd12b02fed09768bb72d9d5"}},{"ruleId":"D2","level":"warning","message":{"text":"echo.DefaultHTTPErrorHandler (cognitive 18): echo.DefaultHTTPErrorHandler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 6). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 464). 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":"echo.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa1de6b0cb1ef0ca56859d99e73f8af401a2c9f49aaf48a6e0b8d07148f0f53"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueBinder.floats (cognitive 17): ValueBinder.floats has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 2, 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":"binder.go"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7075b9d4e81309704a1a76bb382e70ca1e8d4bfa719b9e81d02edc51d205dc4"}},{"ruleId":"D2","level":"warning","message":{"text":"SecureConfig.ToMiddleware (cognitive 17): SecureConfig.ToMiddleware has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 121). 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":"middleware/secure.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"79586cf2c15573f99a6195ddc3357d576af16dd675a204ff98aa247b263b1f5f"}},{"ruleId":"D2","level":"warning","message":{"text":"echo.hasDotOrEmptySegment (cognitive 16): echo.hasDotOrEmptySegment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"echo.go"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32f5af9f4fcbf0fdd85243f138db05c056aedbc13651770e5cc64ee48c4f4bc"}},{"ruleId":"D2","level":"warning","message":{"text":"middleware.valuesFromHeader (cognitive 16): middleware.valuesFromHeader has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 129). 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":"middleware/extractor.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"884cc9300b156b3b518a1be3de83268f2284b74503cb99eab612aa4f8ffa980f"}},{"ruleId":"D2","level":"warning","message":{"text":"middleware.hasDotOrEmptySegment (cognitive 16): middleware.hasDotOrEmptySegment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middleware/static.go"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb3d93eff1c630d45a0b6440d4232b9fac2477f96a8479f93c20607ddae7786"}},{"ruleId":"D2","level":"warning","message":{"text":"CSRFConfig.checkSecFetchSiteRequest (cognitive 16): CSRFConfig.checkSecFetchSiteRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 1 (3 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":"middleware/csrf.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc023b86cc7b4d4c9e117e8cf71efd1375f46a1ef4844cde722416b9b24e1fb"}},{"ruleId":"D2","level":"warning","message":{"text":"StartConfig.start (cognitive 16): StartConfig.start has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 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, 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":"server.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bb95ca1a8ea3ee3440f85354242f071f88c68e44ed7c8d8f462628a7eb41c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ValueBinder: TooManyMethods \u2014 110 methods. The bar is 30 methods; this is 80 over it, 3.67\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":"binder.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a604fa0eab19221decdce4ad47b6a5073d58c91a1c2152f49ac67700782a20"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Context: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\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":"context.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9df811cb61c194d188292a72cad5da50711aee24bc7b645ffe3f041eac5ee5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultRouter.Route: MethodTooLong \u2014 Route runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"router.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4885f50cf9c5ecb549b2b449daccd48ca00f5b2cff37c8a3ef9c7d2a84f17f9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ValueBinder: ClassTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), 110 methods, 111 blocks, lines 113-1350. The bar is 400 significant lines; this is 234 over it, 1.59\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":"binder.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a975c04b403cf5c37b5dc1098f5a9bef64810807be7ee53cf6b8d238e67a12d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./router.go: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 241 over it, 1.48\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":"router.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad336ba4f3085f5650bf8473d3d7e24bf468750ed1e52ab3195ebb3dd68ddc67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./binder.go: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ValueBinder (111 blocks, 113-1350). The bar is 500 significant lines; this is 197 over it, 1.39\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":"binder.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be028809fec0d177f6f4b5e57b9aa090ed3e3907e3a52d8454850325c6e57536"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: echo.bindValue: FunctionTooLong \u2014 bindValue runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"binder_generic.go"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f6bd2b589631b3d467df6623abc1744ec697f6ce20c17a8a0cdbe4ee4e2f63"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Echo: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"echo.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5520abf726b9f4eefacd867e5bb8de8c56dab922447bff66b6450530c02e8f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): binder.go:577-636 | binder.go:805-864 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"binder.go"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"5836569ef8a3a04cc136d3c1865e69b7223db0a35aba77a1cec3af24570d7c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): middleware/slash.go:39-82 | middleware/slash.go:108-151 \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":"middleware/slash.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b943bdd9f7a14242e30588594ad03add0bfe586ce56e705804f858529eb71dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): binder.go:536-560 | binder.go:764-788 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fd9848f0b33766a30229bf8d768717f8e7da0f847b4a3fc2940c20a553bb2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): binder.go:1116-1135 | binder.go:1188-1207 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba26d447ddb3ffa9f178099221b2cf7e5a5f3204324d448af85f944455d9075"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): middleware/extractor.go:180-202 | middleware/extractor.go:205-232 \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":"middleware/extractor.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b274341980363c20089a14867935914072950c0d56875d576bdb9e3d5e9bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): context.go:575-592 | context.go:646-661 \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":"context.go"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cdd3f82473291ebd1ffafaf1d38acb3204fbafd6a02eb7039121809d9bd033"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): binder_generic.go:273-287 | binder_generic.go:300-314 \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":"binder_generic.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8addb37f57d5218bb1608f01e79806f7b458d67c1d414cd4a86981456fd33ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): binder_generic.go:114-130 | binder_generic.go:213-234 | binder_generic.go:248-267 \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":"binder_generic.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"232f2e6a3c11b96f76335b60802fffcd1a586e1b8c484486b513360fbe4d483f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): binder_generic.go:59-71 | binder_generic.go:85-96 \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":"binder_generic.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a350f9d9cbb1bf8661a479ee487b448f75e0a092038e0fa5a0de65c0889e5b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): binder.go:313-327 | binder.go:331-346 | binder.go:349-363 | binder.go:367-382 | binder.go:385-399 | binder.go:403-418 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22c841898cd6683f4cea19f9a9cc96cd28b827f731bfe05b181aea8aac03923"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): route.go:154-169 | route.go:172-187 | route.go:190-205 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"route.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"30456fc49736664b3bdd4430340242eff689bb041e1a1f91bcd0b8d98f8b7673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 14\u002B corresponding lines): binder.go:520-534 | binder.go:748-762 | binder.go:926-939 | binder.go:952-965 | binder.go:1011-1025 | binder.go:1043-1056 | binder.go:1219-1232 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder.go"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd20fa22d1fed8e4be30f00ed6acd0eb038e968d5abeae84d86927e805aff0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): echo.go:984-995 | middleware/slash.go:153-164 \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":"echo.go"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e7a16bbae8947fbaa0dfafbe41c130a325af1e17230dea5d92ae27627fb7b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): binder.go:236-252 | binder.go:562-575 | binder.go:790-803 \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":"binder.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd30e628813d11f6b35233bd31b29b01aa2ef4f79ba76d9cd4a6c95adbfb37a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): binder_generic.go:164-175 | binder_generic.go:189-200 \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":"binder_generic.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1405aefc09571666c5d3a57e322bc1777c7a487bfc8f9e80acc6e8acdb30bd2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): echo.go:630-638 | group.go:156-163 \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":"echo.go"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce4d48af3ec500ef45f5133c079f5fc3cf3c14cb1306931ab6c0b1bde58378c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): echo.go:1027-1050 | middleware/static.go:422-445 \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":"echo.go"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d0e43837cf6dfe13bafdd987d3f4b43f35cfa6c8209d26e49453793eb8da97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): echo.go:1000-1021 | middleware/slash.go:169-190 \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":"echo.go"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cee56f50d3fef34d9394ad3304a718ab14f2465bcfdf158ad650785daf40fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): middleware/slash.go:62-82 | middleware/slash.go:131-151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060middleware/slash.go:62\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":"middleware/slash.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ea2ebd62f52e09aa5d8cab8091b091c31f68687a1dfba7fe5adde4d9a411a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): echo.go:608-627 | group.go:109-128 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"echo.go"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf97c5a959daba69bd946f60532adb3f260814a5e46186cbd2ace0713d9c69e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): binder.go:953-963 | binder.go:1044-1054 | binder.go:1220-1230 \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. 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":"binder.go"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"1423460a1c1d5c3a09517eb83b0d4fc047492b69fe4a0c7045f7c7d4ebc91612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): binder.go:1117-1127 | binder.go:1189-1199 | binder.go:1323-1333 \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. 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":"binder.go"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"666b1608d0520e057cf89255480b51cd95f6571a86aba9990107ebf1de340f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): binder_generic.go:116-126 | binder_generic.go:220-230 \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 \u0060binder_generic.go:116\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":"binder_generic.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa7e30defb001fefc1c7fdb42d4691bf6c9a01750d8281afff4bcc88e99324d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): middleware/slash.go:40-58 | middleware/slash.go:109-127 \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 \u0060middleware/slash.go:40\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":"middleware/slash.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19d414c51d307f4103de68aea80f000e61c80bf08d829d18d5db0c386359e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): binder.go:433-442 | binder.go:1148-1158 \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":"binder.go"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3745ecc220cfac0d5dae6c263c5bbc0f4c8c44b8eb6f9db1b4dadef9c03dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): binder.go:581-589 | binder.go:592-600 | binder.go:603-611 | binder.go:614-622 | binder.go:624-633 \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":"binder.go"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb25d8892c889b7ecd47cc8b912881a14e67facacccf13598c69513b1162c28d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): binder.go:809-817 | binder.go:820-828 | binder.go:831-839 | binder.go:842-850 | binder.go:852-861 \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":"binder.go"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c079620c8a1cf586bfea39e95676c94f1730113cb693aa40a73f8456347944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): binder_generic.go:146-154 | binder_generic.go:255-263 \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 \u0060binder_generic.go:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"binder_generic.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bd93a2a6bf9789981c5c7851b7c41de7fd1f10c1a4a09c8579033f709494a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): context.go:576-584 | context.go:647-655 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060context.go:585\u0060 calls \u0060Serialize\u0060 and \u0060context.go:656\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":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1008bd1c980131f6d16e6698e6136456f4d0407e04ed94ecfca2ecd2919087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): echo.go:988-995 | middleware/slash.go:157-164 \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":"echo.go"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7834cf802cd50bf27996f69cdf1f57c724079a4ddea673e3661dbadf2e07d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): middleware/cors.go:192-199 | middleware/request_id.go:53-60 \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 \u0060middleware/cors.go:192\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":"middleware/cors.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9090e73b3ac798ff672712f2125585a6600cf945666df67fc789a467da791a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): echo.go:727-732 | group.go:177-182 \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":"echo.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"885605dacec865bb108b27ef0d2e9fa3eb99da333e18e81ac1aed2de71fd2e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): echo.go:1055-1060 | middleware/static.go:450-455 \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":"echo.go"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec7b8ec58fd8d734c3115922f9682c6b8d9e45f5daefad36bc4559cda4e487a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): middleware/body_dump.go:157-162 | response.go:160-165 \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":"middleware/body_dump.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"12789696774fba4ca1f4e22303a213c7ef0d5a92e528618318fdc153ae0da46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): binder.go:1163-1176 | binder.go:1238-1251 \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 \u0060binder.go:1163\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":"binder.go"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b71cb5e4a4a390b885c36426b6d716539e777fd5beb33d66d7783083a80b049"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: router.go: router.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in DefaultRouter.Route at line 920. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 01:14:06 -08:00\u0027 --until=\u00272026-11-12 01:14:06 -08:00\u0027 --full-history --no-merges -- router.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":"router.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad3ddd18d2600d06990329eef318476d6e3ff1a0d26470f3a328f6d761214c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: middleware/static.go: middleware/static.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in StaticConfig.ToMiddleware at line 182. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 01:14:06 -08:00\u0027 --until=\u00272026-11-12 01:14:06 -08:00\u0027 --full-history --no-merges -- middleware/static.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":"middleware/static.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd09cc4de15a8799d648d21865f127431ae2622f07600558778ea6bd7cb39fba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: middleware/proxy.go: middleware/proxy.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ProxyConfig.ToMiddleware at line 248. 1 of those changes was a fix/bug commit, and the other 2 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 01:14:06 -08:00\u0027 --until=\u00272026-11-12 01:14:06 -08:00\u0027 --full-history --no-merges -- middleware/proxy.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":"middleware/proxy.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f69ef3bf95ed47b834a7740fb71e6e981ee33cdb5ba074caf9473ca8511c48"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: middleware/redirect.go, middleware/slash.go, middleware/secure.go, route_path.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"278db358fdffdd084449ca5f802b7565d395d9fc0f9cfb83dbd32ea83872a431"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 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 (7 single-owned of 35 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; 35 of the 47 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)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: middleware/extractor.go, middleware/key_auth.go, middleware/recover.go."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: REASON in Go 1.24 and earlier http.NoBody would result ContentLength=-1 \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":"bind_test.go"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee0eae4681b0fe458e324b97dbb2179c70326f2c54b168ffe05926c3781723f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: if !nodeToRemove.isLeaf and has at least 2 children merge paths for remaining nodes? \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":"router.go"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93faff9152e62b89781af1f749262daf6155a5270137ba2c8a0975c9e869c39"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should match \u0060/:1/:2\u0060 when backtracking in tree. this 1 level backtracking fails even with old implementation \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":"router_test.go"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d8abba0d02c858cb89c27cb77de831a8dd25e9b67748a6cd0463fb98452745"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should match \u0060/:1/:2\u0060. same backtracking problem. when backtracking is at \u0060/:1/:2\u0060 during backtracking this node should be match as it has executable 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":"router_test.go"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b8b7760ff47a9717c33820c56e1e87bf9877e06faa88fa2d141a298d9047f0"}},{"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 \u0060echo.go\u0060 makes this repository a deployable product (line 9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"echo.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b8a5047a0c94b5816491e5e8e7ca7bdb38d95b648010dd39f84bd6131d1578"}},{"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":"e4736286501c15dfb50a7aaabfbcbe7426119d0ef0c4350cb503b66812326561"},"properties":{"commitSha":"b6547dde66b7ce99db98eda2d109d52b9de768e0"}},{"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":"ed28085a12532e2d9d6b79d3458b82f37a273f6498854fb9dcf93c7ad13bc199"},"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":"942a2e22118675ec12b99e8a36ca4e165a5f415575d4020f54ecf1eee6f39bf3"},"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":"5efa3dec561364ddecbe6377e11daf9273dcac16c03096208f00397b81e6b464"},"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":"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":"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":"08f96bff2322d5e7a9235bbf52dc20c18e496dfbb7c2952d081b4b39ab478b16"},"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":"844ba548034f2e15ee947a6b25c2b973786bf5ccb93c31e7a86f655a84390a82"},"taxa":[{"id":"CWE-1004","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":"0b9b671e04ae9f2801423f316ac11c77c1259cd349e6be3e49fdbb0bc37649e0"},"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":"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":"d94222fa9934edd47ba3a0ef99e3a7d85a9c2a0dac93507e5359a1abb9d5d840"},"properties":{"dependency":{"package":"stdlib","version":"1.25.0","advisory":"GO-2025-3955","aliases":["BIT-golang-2025-47910","BIT-golang-2025-47912","BIT-golang-2025-58183","BIT-golang-2025-58185","BIT-golang-2025-58186","BIT-golang-2025-58187","BIT-golang-2025-58188","BIT-golang-2025-58189","BIT-golang-2025-61723","BIT-golang-2025-61724","BIT-golang-2025-61725","BIT-golang-2025-61726","BIT-golang-2025-61727","BIT-golang-2025-61728","BIT-golang-2025-61729","BIT-golang-2025-61730","BIT-golang-2025-68121","BIT-golang-2026-111943","BIT-golang-2026-25679","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-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-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]","[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-2025-4006","GO-2025-4007","GO-2025-4008","GO-2025-4009","GO-2025-4010","GO-2025-4011","GO-2025-4012","GO-2025-4013","GO-2025-4014","GO-2025-4015","GO-2025-4155","GO-2025-4175","GO-2026-4337","GO-2026-4340","GO-2026-4341","GO-2026-4342","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","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-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":"context.go","line":430,"symbol":"http.SetCookie"}}}},{"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":"d03f2a180b6c44b09157108557612e48c9e72436d9219e099dc51e18f53d4553"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.57.0","advisory":"GO-2026-6603","aliases":["BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78669","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6617","GO-2026-6860","GO-2026-6866"],"reachability":{"kind":"test-or-tooling","file":"server_test.go","line":25}}}},{"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":"6f52ea19481df6a261f8d6fb74692dd6b697262d3166181ac337294186789ab0"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.40.0","advisory":"GO-2026-6629","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 3 of 35 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; 35 of the 47 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: binder_generic.go, middleware/extractor.go, echotest/context.go. 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":"binder_generic.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b7ca84bd4d446ac2aa006bc19358edcd8f46ff1263a021f25dbc587d148633"}},{"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":"middleware/extractor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda7f29916c83c3c195374302e91f16bff49c5cf92e3f6b2a34eae07d1cd76ac"}},{"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":"echotest/context.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2895bbb2995b3e1a9f082a7c9e0019306f1edb670364f088209d084105aca914"}},{"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":"AX2","level":"warning","message":{"text":"Stateful package: echo: Package \u0060echo\u0060 serves requests (request-handler function literals run on a goroutine per request, and every one sees the same package variables and captured values) but writes that shared state outside any lock (err; e.g. \u0060err\u0060 in \u0060WrapMiddleware\u0060 at line 904). Unsynchronised concurrent writes are a data race in Go: an update is lost or a value tears, and a concurrent map write aborts the process."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"echo.go"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffe5bce546f42bc8f4409b1c929ec8d4c54ba74bc2cabf7b1e35a4836c5931e"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(strings.HasSuffix(routePath, \u0022/*\u0022) \u0026\u0026 strings.HasPrefix(p, \u0022/\u0022)) || hasDotOrEmptySegment(p)\u0060 appears character-identically in 2 files \u2014 echo.go, middleware/static.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":"echo.go"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"037cce293edf0cf89e0b35795656d9ab979354009b0c5056ed5cab85e48fff89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 errors.Is(err, http.ErrNotSupported)\u0060 appears character-identically in 2 files \u2014 middleware/body_dump.go, response.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":"middleware/body_dump.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"df10b210ba3370734488477f8f03ea671844b5e6568fe44cfa3e36e60775cec4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i \u003C len(s) \u0026\u0026 s[i] \u003E= 0x20 \u0026\u0026 s[i] != 0x7f\u0060 appears character-identically in 2 files \u2014 echo.go, middleware/slash.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":"echo.go"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"16122392cdb19e093b8e226925ce46c0ad7c2b6143f47af854098a6e087ebb4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(uri) \u003E 1 \u0026\u0026 (uri[0] == \u0027\\\\\u0027 || uri[0] == \u0027/\u0027) \u0026\u0026 (uri[1] == \u0027\\\\\u0027 || uri[1] == \u0027/\u0027)\u0060 appears character-identically in 2 files \u2014 echo.go, middleware/slash.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":"echo.go"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfa6602ff8482d1af97ae92a683b84398628c9ef7c64f3c0920c361fd06b9e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060req.URL.RawPath != \u0022\u0022 \u0026\u0026 hasDotOrEmptySegment(req.URL.RawPath)\u0060 appears character-identically in 2 files \u2014 echo.go, middleware/static.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":"echo.go"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd480c53bf33f29f8971dd3b254d21fc59b4bbe10557e1d38466aeaf29b112d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060segment == \u0022\u0022 || segment == \u0022.\u0022 || segment == \u0022..\u0022\u0060 appears character-identically in 2 files \u2014 echo.go, middleware/static.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":"echo.go"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91411e435dbed052dea8f57fccf7ef9f676f31f9861d50322b9f3cdd7d06ebc"}},{"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":"context.go"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b31d99b03d51c70c96fb183151365261ed35c44cb5752f1ff363bd6483dac9"}},{"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":"scheme.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"411cf5f8cc7a825d613948c95f2869056102a496543b9195f43e1d20050464a1"}}],"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-1004","guid":"872195c9-bb07-cf51-8a32-865f4bb753ca","name":"Sensitive Cookie Without \u0027HttpOnly\u0027 Flag","shortDescription":{"text":"Sensitive Cookie Without \u0027HttpOnly\u0027 Flag"},"helpUri":"https://cwe.mitre.org/data/definitions/1004.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-242","guid":"5c147e5c-be37-b051-9928-764ef5a8f3d3","name":"CWE-242","shortDescription":{"text":"CWE-242"},"helpUri":"https://cwe.mitre.org/data/definitions/242.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":13,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}