{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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":"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":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01: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":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"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":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 89): main.main has cyclomatic complexity 89 (threshold 15). Of this number, 79 points are the body\u0027s own statements and 10 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":"cmd/mekong/main.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58a7c7b55615a9a40ed3fd2d2680f76b0769b7098b64f8e5d041ee08565c7bd"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 66): main.main has cyclomatic complexity 66 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 7 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekongtunnel/main.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e5231a17512906389eb150c27605d1336f2298d123e0172ee1f0bdab9ffed0"}},{"ruleId":"D1","level":"warning","message":{"text":"extension.activate (cyclomatic 57): extension.activate has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 2 of the 57 points are its own statements and the rest belongs to 17 function literals inside it that branch (lines 1027, 1173, 1262, \u2026). 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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f04c7d3aa1fa5b2a0f1f1d18650ac8170134ac224b79d2790692a9bd8713086"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminHandler.UpdateVerifyRequest (cyclomatic 55): AdminHandler.UpdateVerifyRequest has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c440a1d1395d1f0177134359fc0e830ca69e6f1d8c08a667986ee882c3b3517"}},{"ruleId":"D1","level":"warning","message":{"text":"MekongWebviewProvider.resolveWebviewView (cyclomatic 50): MekongWebviewProvider.resolveWebviewView has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 1 of the 50 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 352, 444, 348). 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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"757388953e8d69d16659d16aaaa6894644dd544bd1d70c3dcc70de8811159223"}},{"ruleId":"D1","level":"warning","message":{"text":"OrgHandler.buildImportPreview (cyclomatic 43): OrgHandler.buildImportPreview has cyclomatic complexity 43 (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":"internal/api/handlers/org.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2510055ce4b1fa3c8120f67d6c97ac8a8184b9ea9cfb5ed159cedb44611cd53"}},{"ruleId":"D1","level":"warning","message":{"text":"mdserve.RenderMarkdown (cyclomatic 41): mdserve.RenderMarkdown has cyclomatic complexity 41 (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":"internal/mdserve/mdserve.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c6508309dba3991a40f9e88173a2aa539a11950fa4c5a9c49877999375e4c4"}},{"ruleId":"D1","level":"warning","message":{"text":"liveServer.renderMarkdown (cyclomatic 41): liveServer.renderMarkdown has cyclomatic complexity 41 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c579afe39227bc1f69c8c009e8d6ce3fe2d4cde47a4e7bf2c232e2d8c678af2"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.HandleSSHConnection (cyclomatic 40): Server.HandleSSHConnection has cyclomatic complexity 40 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 22 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"899bd8bd1d325aec3d3d3597f89cf7dfdcb2ed32f13e88f0de8fb37962bbfc3e"}},{"ruleId":"D1","level":"warning","message":{"text":"DeployHandler.Upload (cyclomatic 38): DeployHandler.Upload has cyclomatic complexity 38 (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":"internal/api/handlers/deploy.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d07aa670de0b5e6df67a61c1ac0fdef3561e0961cdbc3208c6778a949b8caf"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.ServeHTTP (cyclomatic 36): Server.ServeHTTP has cyclomatic complexity 36 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b5a633269fd61134496635105369aa57aadacc7f3d7480439bae21f3535dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"OrgHandler.BulkImport (cyclomatic 34): OrgHandler.BulkImport has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b526f7af651948fe0709a2b3b062fe374fa38b5a029faa3acceeb14f575724eb"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runDeployCommand (cyclomatic 33): main.runDeployCommand has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c3e42adbd41f902751127449b13d45260ca629c09aa186d003e10e2a99ebc1"}},{"ruleId":"D1","level":"warning","message":{"text":"main.detectDeployType (cyclomatic 31): main.detectDeployType has cyclomatic complexity 31 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 4 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":"cmd/mekong/deploy.go"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c3b3cd24ffdb0098af7755fd2f065c8eeb47a2be619187d9cc04b165a6a529"}},{"ruleId":"D1","level":"warning","message":{"text":"main.connect (cyclomatic 31): main.connect has cyclomatic complexity 31 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba3cfbbfa983e6b8605756f097a275f0d4801fccd19223692375352da9cd66b"}},{"ruleId":"D1","level":"warning","message":{"text":"DeployHandler.startTunnel (cyclomatic 31): DeployHandler.startTunnel has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 15 of the 31 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1301, 1278, 1293). 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":"internal/api/handlers/deploy.go"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"9887acefd462fdcc19c1a76bd178ea6e24ab08261498d09f3247f859f5298abc"}},{"ruleId":"D1","level":"warning","message":{"text":"OrgHandler.ReviewRequest (cyclomatic 30): OrgHandler.ReviewRequest has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"383aaaef67558edbb1bc83880c32cd1ecc658a22b5938a6be4faa7b0298a8ccb"}},{"ruleId":"D1","level":"warning","message":{"text":"webview.window.addEventListener(\u0022message\u0022) (cyclomatic 30): webview.window.addEventListener(\u0022message\u0022) has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0eada286a27c820cf58ec50e5f097102578b3b9e6db20a8d417093bcad7996"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 30): (anonymous) has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cbb57cc695694b703867613875601d13474ecdc6e31b9b16c83f73e73db971"}},{"ruleId":"D1","level":"warning","message":{"text":"SubdomainHandler.Create (cyclomatic 29): SubdomainHandler.Create 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. This shape REPEATS in the file: one other method here (SubdomainHandler.CreateCLI) 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":"internal/api/handlers/subdomain.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f46b8972e33d115e0c498a2949a1ef77c5a66889ef636d3955ce8f124435ad"}},{"ruleId":"D1","level":"warning","message":{"text":"SubdomainHandler.CreateCLI (cyclomatic 29): SubdomainHandler.CreateCLI 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. This shape REPEATS in the file: one other method here (SubdomainHandler.Create) 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":"internal/api/handlers/subdomain.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"546982910f1d3ee2553ce9f0a1be246ce79ecaddf76a69e9f472e24577600dd1"}},{"ruleId":"D1","level":"warning","message":{"text":"webview.renderLive (cyclomatic 28): webview.renderLive has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"b311b61bf8e58b315e7e06c25e8168527ffa06d7fda0fc65f5ae46a735bc6cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"liveServer.startLiveServer.server (cyclomatic 28): liveServer.startLiveServer.server has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a2d5c34fe56e39fc085fffa74cdf2474c09883e797f7ae63e3cf3145fc49c7"}},{"ruleId":"D1","level":"warning","message":{"text":"detect_port.detect_port (cyclomatic 27): detect_port.detect_port has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-python-sdk/src/mekong_tunnel/detect_port.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7198882256433a8f968292ff17ed89eb34b8ff85e79d2e5b9a6923238e801fdf"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runRMCommand (cyclomatic 24): main.runRMCommand has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"990db44d87f47b1970c1559f9c8135d42e8e466bd4c0d7b3ae05e035a5390d77"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runStop (cyclomatic 24): main.runStop has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d682e6008a83cb87539c4d9d4fee2a53b1dc64fea5991caf5b71c864a30815"}},{"ruleId":"D1","level":"warning","message":{"text":"ReceiptHandler.AdminReviewReceipt (cyclomatic 24): ReceiptHandler.AdminReviewReceipt has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/paypal.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fd0cbeb1f8f70f255287b264ab2cea8edbc1b9edf3b8ba6291653327d1d770"}},{"ruleId":"D1","level":"warning","message":{"text":"BillingHandler.CreateCheckout (cyclomatic 23): BillingHandler.CreateCheckout has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d36bca843ad5c3f9544d6bb988317d269e6258574aa973719db6eb3ee5d3f3"}},{"ruleId":"D1","level":"warning","message":{"text":"DeployHandler.runSSHTunnel (cyclomatic 23): DeployHandler.runSSHTunnel has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c925c718a5ee1f95b6612e7ef8680cd9112fcd4c011a1c9dcc4634b5b965b674"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runLogs (cyclomatic 22): main.runLogs 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":"cmd/mekong/main.go"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad0fa2a73a2fe3d753eca167f77fa921af7e8f5093ae1ab4e20eec501158e08"}},{"ruleId":"D1","level":"warning","message":{"text":"BillingHandler.WebhookHandler (cyclomatic 22): BillingHandler.WebhookHandler 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":"internal/api/handlers/billing.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4c089b181712f681676c84319dabe54d622a4f819f90591fe05099d9aa42b9"}},{"ruleId":"D1","level":"warning","message":{"text":"ReceiptHandler.SubmitReceipt (cyclomatic 22): ReceiptHandler.SubmitReceipt has cyclomatic complexity 22 (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":"internal/api/handlers/paypal.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"01dcebc14ecf263a03334b2b6ce9df15d3a5395f884ee68967da2b68c78b87cc"}},{"ruleId":"D1","level":"warning","message":{"text":"mdserve.Handler (cyclomatic 22): mdserve.Handler has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 391). 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":"internal/mdserve/mdserve.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"207991d238cfa5b65276599bbe16a9543886d35a2945de72129fe5dfe40b3424"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runDeployUpload (cyclomatic 21): main.runDeployUpload has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eea661dbf5d9093db6f4795478c89c739ed1ec27892b5acc06a860a073dea7c"}},{"ruleId":"D1","level":"warning","message":{"text":"OrgHandler.CreateTeam (cyclomatic 21): OrgHandler.CreateTeam has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa65e8c692f6d44373c0de3730a30d09b03e5d62b991e7af2b36d4f32c962f64"}},{"ruleId":"D1","level":"warning","message":{"text":"system.Collect (cyclomatic 21): system.Collect 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":"internal/system/monitor.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2640810d8d297470d46c61bf40f33c6fd47ce71f9283006181f387ea6fd655a"}},{"ruleId":"D1","level":"warning","message":{"text":"DeployHandler.AdminReviewQuotaRequest (cyclomatic 20): DeployHandler.AdminReviewQuotaRequest 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":"internal/api/handlers/deploy.go"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f70c76f77654c8ce1287d9ccb5a0e221884dcc696b55b10aebe564de1830e0"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.applyEnvRequest (cyclomatic 20): proxy.applyEnvRequest 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":"internal/proxy/ssh.go"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a091a3ea77d34d73a6e8be55bf68d739f895a32e9c9a68201ad47916b12203"}},{"ruleId":"D1","level":"warning","message":{"text":"TeamHandler.Invite (cyclomatic 19): TeamHandler.Invite has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"426949917cb503bdede7a116474df8d33dfffadaa4ee037274e78c72baadf236"}},{"ruleId":"D1","level":"warning","message":{"text":"UserHandler.SetActivePlan (cyclomatic 19): UserHandler.SetActivePlan has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/user.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf664f4917d1d313982c8ce1aeb9ab45aefa8ea3e637c30ef68b074b75fa1ab8"}},{"ruleId":"D1","level":"warning","message":{"text":"init.detectPython (cyclomatic 19): init.detectPython has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c556465f8b3ed4a2324b81a94e93b4f1fffdc99c1b0afbd0d629e186108de0c"}},{"ruleId":"D1","level":"warning","message":{"text":"main.seedAdmin (cyclomatic 18): main.seedAdmin has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/api/main.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"76efc327eb97e5ded615e449091af498115483c4c058324f91bdd1dfa7d26dc3"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthHandler.Register (cyclomatic 18): AuthHandler.Register has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31f300f92a5a6ca14300647b030554ef3d5f06593ca98b57f288eebbb3881cd"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthHandler.Login (cyclomatic 18): AuthHandler.Login has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25a782eb811fd9c8006cbcc1522d275cdd70bafb2946ff0d17985e93dc317a4"}},{"ruleId":"D1","level":"warning","message":{"text":"BillingHandler.GetBilling (cyclomatic 18): BillingHandler.GetBilling has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d96327ff1a78a4374ddb5761e1d3a1557543730319a49269d8c9b1dc2215d03"}},{"ruleId":"D1","level":"warning","message":{"text":"DeployHandler.Redeploy (cyclomatic 18): DeployHandler.Redeploy has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eb0ecb526b168f2a348422ebf065d0b2479ec338964511a2e7290e7e45f6ba"}},{"ruleId":"D1","level":"warning","message":{"text":"customdomain.ValidateDomain (cyclomatic 18): customdomain.ValidateDomain has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/customdomain/dns.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0b3149f2df3246cac2c834b2071115be1780a5449d1573818bd0e8b782ce07"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.setupSession (cyclomatic 18): Server.setupSession has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e7cf1a03f14a6504afebd5b0d8b944ad48ff4142ff9bf8df7086873a93a1c8"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runInitCommand (cyclomatic 17): main.runInitCommand has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/localstack.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcad25dc96ad493044d92f79110aa3f448763568eb5f2154318d23a66dd65a1e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runStatus (cyclomatic 17): main.runStatus has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a80f8d107d1a71843716d820f2b2ade1c41910604e99f56a480e56d740e4b5"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminHandler.UpdateOrg (cyclomatic 17): AdminHandler.UpdateOrg has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a61e8fa22955f72cd517676fd791eff86c4da8003746d0629b53d5d58d8d493"}},{"ruleId":"D1","level":"warning","message":{"text":"handlers.classifyLogLine (cyclomatic 17): handlers.classifyLogLine has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd2010598aab82e32f1bac4ce5f231c066375767ffdb1e765b2744583c3fc03"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthHandler.GitHubCallback (cyclomatic 17): AuthHandler.GitHubCallback has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22a1d4bee3baf34c33b8a75245fb42ca390e7158655a37cf9d0cfadbf0d798d"}},{"ruleId":"D1","level":"warning","message":{"text":"BillingHandler.PollBakongOrder (cyclomatic 17): BillingHandler.PollBakongOrder has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bcbec6f8167b95a4d846c6915dc500eaac5834c1d91b0ed2258a1138db1a35"}},{"ruleId":"D1","level":"warning","message":{"text":"SubdomainHandler.UpdateAssignment (cyclomatic 17): SubdomainHandler.UpdateAssignment has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1ffa770bab142b9d7a59331e2a972cfabbd45369c0cd9850bfc7f1e6629fab"}},{"ruleId":"D1","level":"warning","message":{"text":"SubdomainHandler.UpsertRule (cyclomatic 17): SubdomainHandler.UpsertRule has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"185d57c7db84020b966d3504e0ee544ff1baa24815ff8bc7e17b7831ba752cd6"}},{"ruleId":"D1","level":"warning","message":{"text":"WalletHandler.PollOrder (cyclomatic 17): WalletHandler.PollOrder has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/wallet.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d9d3349958cefea9e86f2f1506e5d36a7634c97f14f0462eeb6da3a12a8fbf"}},{"ruleId":"D1","level":"warning","message":{"text":"db.RunMigrations (cyclomatic 17): db.RunMigrations has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/migrate.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dccc5e0c568443db2bc28e6f47a0de76e1066a0a06862d5eca27e7f6fcb631d1"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.StatsHandler (cyclomatic 17): Server.StatsHandler 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 4 function literals inside it that branch (lines 154, 176, 129, \u2026). 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":"internal/proxy/stats.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41879d117d464e65829ba5cf9296f216e7b0c544d9ce630a8f9a83af1472fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"runner.runWithServer (cyclomatic 17): runner.runWithServer 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 4 function items inside it that branch (cleanup, a function literal at line 104, handleTunnelLine, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/runner.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4141e09751a9455c0b9c836615eb07ac8f129f1b648fb7a5d6ef557f3ff870"}},{"ruleId":"D1","level":"warning","message":{"text":"main.parseDeployFlags (cyclomatic 16): main.parseDeployFlags has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3448edddbb1484c653d8ce3bbb18923b2233600c5a100ead16c2f3ce710e6e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runDeployRedeploy (cyclomatic 16): main.runDeployRedeploy has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee884187291a12e527ed316a953dca2aaa96a8c7b54f9c62123e8e9bd624d762"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runDoctorCommand (cyclomatic 16): main.runDoctorCommand has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f3c4cfd532a5fc2b2b32d6f8a79425124f32ca8418c5fb62c941c7bf8fcadf"}},{"ruleId":"D1","level":"warning","message":{"text":"main.detectNodeProject (cyclomatic 16): main.detectNodeProject has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/localstack.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b127f872d3513ede2709f9833773086d4d0686ba1b356064518d224e81b959af"}},{"ruleId":"D1","level":"warning","message":{"text":"handlers.notifyTunnelTransition (cyclomatic 16): handlers.notifyTunnelTransition has cyclomatic complexity 16 (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":"internal/api/handlers/telegram_alerts.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a8d0313689f1b42edfa9b1068c3d0a1ca333671354924098fb832113b17def"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthHandler.GoogleCallback (cyclomatic 16): AuthHandler.GoogleCallback has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"154c9dec5249ab2f4c31b160de7699f6d261a762d6144bf6fbfbd7151319b750"}},{"ruleId":"D1","level":"warning","message":{"text":"DomainsHandler.SetTarget (cyclomatic 16): DomainsHandler.SetTarget has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (DomainsHandler.SetTargetCLI) 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":"internal/api/handlers/domains.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"9015f2fc1b4c31593fd95306e1c9102474700f697b8eef4b5c1ea44565c8b3eb"}},{"ruleId":"D1","level":"warning","message":{"text":"DomainsHandler.SetTargetCLI (cyclomatic 16): DomainsHandler.SetTargetCLI has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (DomainsHandler.SetTarget) 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":"internal/api/handlers/domains.go"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"0061683d5f10893efb6bd66acab7bdd53a4ed5b16239c7c5b36abc003788e59d"}},{"ruleId":"D1","level":"warning","message":{"text":"SubdomainHandler.DeleteCLI (cyclomatic 16): SubdomainHandler.DeleteCLI has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"6043ad8e86fba1aa260660a81679e40b3f149452f953b0b2251f1210937341f1"}},{"ruleId":"D1","level":"warning","message":{"text":"TeamHandler.ChangeRole (cyclomatic 16): TeamHandler.ChangeRole has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dca0a9f10a478f3ff2ca107711f2a43c363a5b127089581c140be78d8449b1"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.claimReservedSubdomain (cyclomatic 16): Server.claimReservedSubdomain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6284a284581e3d157653bc8ebf301f54a3eafbc3193d8240de8a565daa93f75"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 160): main.main has cognitive complexity 160 (threshold 15). Drivers by points: if/else 54 (135 pts), loops 6 (18 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 94). Of this number, 128 points are the body\u0027s own statements and 32 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4d99170b873f6c75610ec3bbed09559b5a7f38794c18e16055442b1de82eff"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminHandler.UpdateVerifyRequest (cognitive 106): AdminHandler.UpdateVerifyRequest has cognitive complexity 106 (threshold 15). Drivers by points: if/else 45 (95 pts), boolean chains 8, match/switch 2 (3 pts) (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bc993038a6948e1d36aafb16637674ea0327577f2a7eab7fd44c31f8537f53"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 86): main.main has cognitive complexity 86 (threshold 15). Drivers by points: if/else 49 (68 pts), boolean chains 11, match/switch 3 (6 pts), loops 1 (nesting depth added 22). Of this number, 73 points are the body\u0027s own statements and 13 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekongtunnel/main.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e73b75ef1ba0a73f5ee32a19ba7c652659bbf08c64dd93e4ba6ca596110608d"}},{"ruleId":"D2","level":"warning","message":{"text":"OrgHandler.buildImportPreview (cognitive 85): OrgHandler.buildImportPreview has cognitive complexity 85 (threshold 15). Drivers by points: if/else 33 (74 pts), boolean chains 8, loops 2 (3 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e35732cb6f26c2cb95a74428afb8381530d7a91bd812011721209d9bf78c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"extension.activate (cognitive 76): extension.activate has cognitive complexity 76 (threshold 15). Drivers by points: if/else 44 (59 pts), boolean chains 9, ternaries 3 (7 pts), error handling 1 (nesting depth added 19). Most of this is not in the body itself: 1 of the 76 points is its own statement and the rest belongs to 17 function literals inside it that branch (lines 1027, 1173, 1105, \u2026). 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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d548efc0573c109e9721ba43bd65b470c738bf563c7dfeae44053ac786a1519"}},{"ruleId":"D2","level":"warning","message":{"text":"OrgHandler.BulkImport (cognitive 71): OrgHandler.BulkImport has cognitive complexity 71 (threshold 15). Drivers by points: if/else 27 (66 pts), boolean chains 4, loops 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd6f4354d8306022d9851f47f3dcd554305265f1c5cad4b2d749595a364d23e"}},{"ruleId":"D2","level":"warning","message":{"text":"mdserve.RenderMarkdown (cognitive 63): mdserve.RenderMarkdown has cognitive complexity 63 (threshold 15). Drivers by points: loops 10 (28 pts), if/else 11 (24 pts), boolean chains 11 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mdserve/mdserve.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c8afdf33cde9cc8021973cc8d6cfd51ded763c98fce6d1baa55cae229fd3cc"}},{"ruleId":"D2","level":"warning","message":{"text":"liveServer.renderMarkdown (cognitive 60): liveServer.renderMarkdown has cognitive complexity 60 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 7 (18 pts), boolean chains 10, ternaries 5 (8 pts) (nesting depth added 27). Of this number, 50 points are the body\u0027s own statements and 10 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33f291dfd211efb7468decc98b106260926211605d3014c60cdf8723ccb8d1d"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.ServeHTTP (cognitive 59): Server.ServeHTTP has cognitive complexity 59 (threshold 15). Drivers by points: if/else 27 (54 pts), boolean chains 4, match/switch 1 (nesting depth added 27). Of this number, 52 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"809c6fee93c0c167c04ca8928f686b5215531645377500240deac84749b2ee5c"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.HandleSSHConnection (cognitive 58): Server.HandleSSHConnection has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (39 pts), match/switch 7 (13 pts), loops 6 (nesting depth added 25). Of this number, 18 points are the body\u0027s own statements and 40 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b75dbdd892d855bfb6cd650fb731278a3ab049e2d1315761ccf6a4557160639"}},{"ruleId":"D2","level":"warning","message":{"text":"detect_port.detect_port (cognitive 58): detect_port.detect_port has cognitive complexity 58 (threshold 15). Drivers by points: if/else 14 (31 pts), error handling 6 (20 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-python-sdk/src/mekong_tunnel/detect_port.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e31a064612a9e40ad11240fff8302e1a3470a63967466740a86a6e2bc56be20"}},{"ruleId":"D2","level":"warning","message":{"text":"DeployHandler.Upload (cognitive 52): DeployHandler.Upload has cognitive complexity 52 (threshold 15). Drivers by points: if/else 28 (42 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc87d86a7f6b775613fcb420dd30b96613a6ab15acae20860ba9f7ad39c5bbec"}},{"ruleId":"D2","level":"warning","message":{"text":"main.detectDeployType (cognitive 48): main.detectDeployType has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (35 pts), loops 4 (6 pts), match/switch 1 (4 pts), boolean chains 3 (nesting depth added 18). Of this number, 44 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aa86e20c3fe301c63dce251834bcc1e6f373710e961ad415961a9abf8665ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.setupSession (cognitive 47): Server.setupSession has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (41 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97a308ef440d10135c7b8f9f741166cf73f213c7d6da3ae49c0a6f1c2f4fdd5"}},{"ruleId":"D2","level":"warning","message":{"text":"MekongWebviewProvider.resolveWebviewView (cognitive 46): MekongWebviewProvider.resolveWebviewView has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 5, error handling 2 (4 pts), match/switch 1 (nesting depth added 19). None of this is in the body itself: all 46 points belong to 3 function literals inside it that branch (lines 352, 444, 348). 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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afc824f6977954404dbae6986a5fcfd38b1798fccd7dd2a8559a5f0dc39ee9d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubdomainHandler.Create (cognitive 45): SubdomainHandler.Create has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 7, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SubdomainHandler.CreateCLI) 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":"internal/api/handlers/subdomain.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7828f75e5a5569ddf2faa13934615af42acc15cba63f9666516a2b46c06ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"SubdomainHandler.CreateCLI (cognitive 45): SubdomainHandler.CreateCLI has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 7, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SubdomainHandler.Create) 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":"internal/api/handlers/subdomain.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af832c2ebb318a72022128c4e5dbc4137da634cca719479f8f7fe737445dc44"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 45): (anonymous) has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (25 pts), ternaries 4 (11 pts), boolean chains 9 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebffc0fa20f583098b787c1de9dcf971950e9f3cd8bd8497f36072131138e172"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingHandler.WebhookHandler (cognitive 42): BillingHandler.WebhookHandler has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 2, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f42cdb8627682bea8df247a5a2e0013c9dd7d7d60ae3f31e3f636a84893d58"}},{"ruleId":"D2","level":"warning","message":{"text":"DeployHandler.startTunnel (cognitive 41): DeployHandler.startTunnel has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (31 pts), match/switch 3 (5 pts), boolean chains 4, loops 1 (nesting depth added 11). Of this number, 20 points are the body\u0027s own statements and 21 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4eb6eae6a47ee25c0b13830223a95d8530a86a276b2ab314482a76b2d813af5"}},{"ruleId":"D2","level":"warning","message":{"text":"AbuseTracker.cleanup (cognitive 41): AbuseTracker.cleanup has cognitive complexity 41 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 5 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/abuse.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d80880763a53290c4bdab86e808d84dcb73179620e57e41793472c670fb41"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runLogs (cognitive 38): main.runLogs has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (34 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"512dcecc8c1bd59cbf2c5e3722b7950eef843ad6201c9f744e552fa7cf893881"}},{"ruleId":"D2","level":"warning","message":{"text":"main.connect (cognitive 36): main.connect has cognitive complexity 36 (threshold 15). Drivers by points: if/else 28 (34 pts), boolean chains 1, loops 1 (nesting depth added 6). Of this number, 25 points are the body\u0027s own statements and 11 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9b47e72f0f6fd11e44c28ae00c8d004c6ff96a6a5e7068aeca1b7a05fed772"}},{"ruleId":"D2","level":"warning","message":{"text":"renderLive (cognitive 36): renderLive has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 8 (15 pts), boolean chains 6 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"929d2f65762c1e0aeb87ab651730224c40d9f4a3f44f329fec9782ea80e13669"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runStop (cognitive 35): main.runStop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (28 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a28fd82e22de1dc84a396bad36d053afe5648e840dd95b408676c92390db771"}},{"ruleId":"D2","level":"warning","message":{"text":"liveServer.startLiveServer.server (cognitive 35): liveServer.startLiveServer.server has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 11, ternaries 3 (5 pts), error handling 2 (nesting depth added 6). Of this number, 32 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"975b4991e892d9a53dcca92833b49f46f99093fa8f303f7cfab40a8feacf77f0"}},{"ruleId":"D2","level":"warning","message":{"text":"ReceiptHandler.AdminReviewReceipt (cognitive 34): ReceiptHandler.AdminReviewReceipt has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 3, match/switch 1 (nesting depth added 14). Of this number, 30 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/paypal.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1b69b89e60685ec656937b05566844316ff7656cc602e1eb7a8528a1c073cf"}},{"ruleId":"D2","level":"warning","message":{"text":"mdserve.Handler (cognitive 34): mdserve.Handler has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 13). None of this is in the body itself: all 34 points belong to one function literal inside it that branches (line 391). 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":"internal/mdserve/mdserve.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"73de6997d35311195a1dc827a0c83dc0de2255d4cbce17d3e1a113255300a6fd"}},{"ruleId":"D2","level":"warning","message":{"text":"init.detectPython (cognitive 34): init.detectPython has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbeb25a5835ccf47552ad415fb90a10a5b2e083b5baf100154eb23a3a9e41f8"}},{"ruleId":"D2","level":"warning","message":{"text":"webview.window.addEventListener(\u0022message\u0022) (cognitive 34): webview.window.addEventListener(\u0022message\u0022) has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 9 (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":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"17179053c0a327249ffae3e8ee111000a3eee4d886e8fc113ae16f473bbed861"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runDeployCommand (cognitive 33): main.runDeployCommand has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 7, match/switch 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7484d6df6bbad7ed8c8feb69678c35f9e993ef9f52a220948978cb663a13fcd4"}},{"ruleId":"D2","level":"warning","message":{"text":"OrgHandler.ReviewRequest (cognitive 32): OrgHandler.ReviewRequest has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 7, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb246acec12bb7b71cb2044ea1102d73fc8f88098a5a775fcde2caf5013dd2e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runRMCommand (cognitive 30): main.runRMCommand has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 4 (6 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3b0fcf350a3b00e2352f6a1819d8cb671987a1c620e5a9ff6bf553d968d753"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingHandler.PollBakongOrder (cognitive 28): BillingHandler.PollBakongOrder has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7874d249cd5edd497c8417ff8bb09f68d825c6bb869901d3a5be705365ad2b7b"}},{"ruleId":"D2","level":"warning","message":{"text":"WalletHandler.PollOrder (cognitive 28): WalletHandler.PollOrder has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/wallet.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0b09ebc63d0f8f01ba2798a42e7c20ce75219da7c4f558e0926e6f67b358f2"}},{"ruleId":"D2","level":"warning","message":{"text":"system.Collect (cognitive 28): system.Collect has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 7 (9 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/system/monitor.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4affcd565917493474eb66128d93a0f23040f8525c68b75f11e4618e4518b6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runStatus (cognitive 27): main.runStatus has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01dfe19082bc2ee50888952d3347c0d2364887b465884a0fd3d652f3fae059b"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthHandler.GitHubCallback (cognitive 26): AuthHandler.GitHubCallback has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (26 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"2decb0696f25c395af484d1aa5655bb10a0c4e4437d0587ae68b8aea758b0239"}},{"ruleId":"D2","level":"warning","message":{"text":"main.streamOutput (cognitive 25): main.streamOutput has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4b31b8e7c7cf1f674d54652854d63b7b27c14e10e4eb5f0d7a590bae060591"}},{"ruleId":"D2","level":"warning","message":{"text":"DeployHandler.AdminReviewQuotaRequest (cognitive 25): DeployHandler.AdminReviewQuotaRequest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5139b1217d59c8e8975e5f9e21753449e7678d93dca98895919e6ea0d5b28c"}},{"ruleId":"D2","level":"warning","message":{"text":"DeployHandler.runSSHTunnel (cognitive 25): DeployHandler.runSSHTunnel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (22 pts), match/switch 2, loops 1 (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"5699f36ddfe57731da1b9f11be024be585d02b83a8239270bd21afedeedc5e41"}},{"ruleId":"D2","level":"warning","message":{"text":"main.waitForCustomDomainReady (cognitive 24): main.waitForCustomDomainReady has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fae497e6969d949070e06c89e74000f4835d58afabe94bf69d172ac4ae1aa9a"}},{"ruleId":"D2","level":"warning","message":{"text":"db.RunMigrations (cognitive 24): db.RunMigrations has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/migrate.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2884db776083d7cbffb57a6d5c3278913435ac3cc7078f027430cb75d112dc"}},{"ruleId":"D2","level":"warning","message":{"text":"main.parseDeployFlags (cognitive 23): main.parseDeployFlags has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eec54a9c8ddc85b766c38d1342472beda7bb82ade0023b945913d897fad9de7"}},{"ruleId":"D2","level":"warning","message":{"text":"main.detectNodeProject (cognitive 23): main.detectNodeProject has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/localstack.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1070b7748497c6da36ef92d94798bc9c72c733e0b319058b14f17362d76e483f"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminHandler.UpdateOrg (cognitive 23): AdminHandler.UpdateOrg has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), match/switch 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a0f78492001752570b337d2205672dc0b64d3cb0cc2e832890aa4229b4cb4a"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthHandler.Login (cognitive 23): AuthHandler.Login has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b0b679406638ef23a5d018af4fe1cb9265687fe50f2da261ff08e970f211ff"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthHandler.GoogleCallback (cognitive 23): AuthHandler.GoogleCallback has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (23 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfab0dd683ede9462a1bc93d3e241a54854cc2fe6091ba635f397aea7b7bbca4"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingHandler.CreateCheckout (cognitive 23): BillingHandler.CreateCheckout has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"199c0872d7b3dcac751ad5b43bf86f2e83950792e6297c7d8f52a7f993de59ae"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runUninstall (cognitive 22): main.runUninstall has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (22 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"53240dd167d371b02f1c29e5b20c9fa968703a4447a316e52dc0a420f6e54dd2"}},{"ruleId":"D2","level":"warning","message":{"text":"find-mekong.findMekong (cognitive 22): find-mekong.findMekong has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/find-mekong.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eea47d7b96c75d78061104dda8dc8968a4c838074c20faf3f75d64175ae0575"}},{"ruleId":"D2","level":"warning","message":{"text":"main.seedAdmin (cognitive 21): main.seedAdmin has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/api/main.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa97b3ff8c9a25aa86cd17f003fd7fa7ef5a6aeba6ad5167a9040e19b6f62696"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runDeployUpload (cognitive 21): main.runDeployUpload has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b51b839f43384b528719ae474c3a0e315809fdd8dcdd3d0563d85e55aabe56"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runDoctorCommand (cognitive 21): main.runDoctorCommand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"e367e3637f701229ffd9d49c809fdac0fc5ed8e6576d84aad43034b0cf412e91"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.classifyLogLine (cognitive 21): handlers.classifyLogLine has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"783a11b494058d46fea6f1f02cd71dfdef4ea442a9f31de1d5135450e6a51337"}},{"ruleId":"D2","level":"warning","message":{"text":"OrgHandler.CreateTeam (cognitive 21): OrgHandler.CreateTeam has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"389615ef9c3be1a82165cecda30aa93e91798862a7280ac9e8e88405fbf17be6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runLogin (cognitive 20): main.runLogin has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"195d64ef28d3d24cf2d9ea434c2d4d075c3a80a83bfd84a9ff3b62716d6e90a1"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthHandler.Register (cognitive 20): AuthHandler.Register has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"internal/api/handlers/auth.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"11db9d439627347d10e3b9ec4231a15ad126764f5acf5a684baa5ee6360ac2b2"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingHandler.recordSDKBillingPayment (cognitive 20): BillingHandler.recordSDKBillingPayment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7463a4920155f64b570744bec2158302ce0395264dd1fbd391f72ceaa696d9"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamHandler.Invite (cognitive 20): TeamHandler.Invite has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 4 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dd44527c0d3e0c0a8d39b212d72b964077d6815062ddec7bdde8b9fde76b04"}},{"ruleId":"D2","level":"warning","message":{"text":"customdomain.ValidateDomain (cognitive 20): customdomain.ValidateDomain has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/customdomain/dns.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"01954e3aeb098bd434d209a8c44688b22250efcb7205978914f766f84a779fa1"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.claimReservedSubdomain (cognitive 20): Server.claimReservedSubdomain has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7027c9a2a1a9d21fe8a4173a354bfa73a32fdff21f52b58a854ece8bafe33d8"}},{"ruleId":"D2","level":"warning","message":{"text":"main.detectPythonProject (cognitive 19): main.detectPythonProject has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/localstack.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0496fdbe0bc74d99de93ca88b19252d16d33c73326bf07b0a77cb4cd0477d787"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runInitCommand (cognitive 19): main.runInitCommand has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (19 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/localstack.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"b635623619f2a253fe82bd810dc957eadcdbdca5a089024b945cf9b088b1d7f1"}},{"ruleId":"D2","level":"warning","message":{"text":"DeployHandler.Logs (cognitive 19): DeployHandler.Logs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bb9e87adefae7ceb19171643bcff72f2fbd42d723c7356e409dddb7753bfa0"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.domainAlertRecipients (cognitive 18): handlers.domainAlertRecipients has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/telegram_alerts.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"82403d81846d806229b9c82f80259abed5daa66b16e5916eba07febb1edf2e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubdomainHandler.UpdateAssignment (cognitive 18): SubdomainHandler.UpdateAssignment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2d59c992359225dd991d38de9a30f1dc673982c32ba441dda381d656adfdd1"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamHandler.ChangeRole (cognitive 18): TeamHandler.ChangeRole has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 2 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"960b12a85fb5c90f49bc1b558115437607d3d21669846a46637d4d50c0946b90"}},{"ruleId":"D2","level":"warning","message":{"text":"UserHandler.SetActivePlan (cognitive 18): UserHandler.SetActivePlan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/user.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b49d752665ec71ca17e26a974eca962dfc2c1c14c0dc56275c86ce92f2e521e"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.sendErrorAndClose (cognitive 18): Server.sendErrorAndClose has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 9). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 653). 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":"internal/proxy/ssh.go"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ba9f725c0a98aabd7ee223a57bc52a2c340b47c45c629f868dc33bb9707781"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.StatsHandler (cognitive 18): Server.StatsHandler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, loops 1 (nesting depth added 2). None of this is in the body itself: all 18 points belong to 4 function literals inside it that branch (lines 154, 176, 129, \u2026). 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":"internal/proxy/stats.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f75dffb0353d4fc64a2f0cff6df385fc75c8a3a49815f88a57169e94f5a2436"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk.expose (cognitive 18): sdk.expose has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-python-sdk/src/mekong_tunnel/sdk.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ae390b64c4292032c1750de78e884f3c35fa6541ca395599199a8ce7f71c31"}},{"ruleId":"D2","level":"warning","message":{"text":"main.spawnDaemon (cognitive 17): main.spawnDaemon has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e510f42b290e9fb2f6fc885e912354161c733ab016a963d1a2e9f687a56ccad"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.parseImportUpload (cognitive 17): handlers.parseImportUpload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75f9c7e280d1daf98bb42207b0a15d4913581f3f29590a7d0a2e09deaa74f0b"}},{"ruleId":"D2","level":"warning","message":{"text":"DeployHandler.Redeploy (cognitive 17): DeployHandler.Redeploy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79c23c220307b7f103bd434acaa379e00187a2111efd66dd2eb7c39a3406e66"}},{"ruleId":"D2","level":"warning","message":{"text":"DomainsHandler.SetTarget (cognitive 17): DomainsHandler.SetTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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. This shape REPEATS in the file: one other method here (DomainsHandler.SetTargetCLI) 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":"internal/api/handlers/domains.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"38814664459a6955c874706342ac3be6a5d32ba7b9d56c68fcf68220a8db33c5"}},{"ruleId":"D2","level":"warning","message":{"text":"DomainsHandler.SetTargetCLI (cognitive 17): DomainsHandler.SetTargetCLI has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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. This shape REPEATS in the file: one other method here (DomainsHandler.SetTarget) 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":"internal/api/handlers/domains.go"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b86de1f48ff4ae75d563449249eec3182067cc271aaa5196cf855523715210a"}},{"ruleId":"D2","level":"warning","message":{"text":"SubdomainHandler.UpsertRule (cognitive 17): SubdomainHandler.UpsertRule has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"794c83c17507b6c2899e223caf7f9b11af0771ecdf231f02425a1bd5d59949f3"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.applyEnvRequest (cognitive 17): proxy.applyEnvRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 1 (2 pts), match/switch 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":"internal/proxy/ssh.go"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87fe3e4e5962204b88e6889bf6588c1c903cc6ceac750a49d4156d470cf5528"}},{"ruleId":"D2","level":"warning","message":{"text":"detect-port.detectPort (cognitive 17): detect-port.detectPort has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (4 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/detect-port.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb77aa65b3c5af50e39b78a9a35d4f0399aa5be575731117e1910d637e076dd"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.runWithServer (cognitive 17): runner.runWithServer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (cleanup, handleTunnelLine, a function literal at line 104, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/runner.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c8b05b8dfd4358ff7aade32d53b6d426025c95283625a350b0afaf005fcc65"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runDeployRedeploy (cognitive 16): main.runDeployRedeploy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 1 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabe4fb5397606bb51cefe935274558eaca42d70fa4297e7efde89ede408d673"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runLogsCommand (cognitive 16): main.runLogsCommand has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7736450bcb01a8b432f1a50b2851b519659b6ab789f105fa3a61895dbdc2e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.selfUpdate (cognitive 16): main.selfUpdate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2 (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":"cmd/mekong/main.go"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"41eba22e9042797c7f7458acba075b409482c27f1cf852766ed9d03df3c0d5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingHandler.GetBilling (cognitive 16): BillingHandler.GetBilling has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"075c275c9899ba0b3baf8af3e13e2d7c645012b481fbc26835a14cd6b71b57ea"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingHandler.GetRevenue (cognitive 16): BillingHandler.GetRevenue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bfd1c5f5babf6999553626242b6b34c637ddaf009a82bbcd02d9222c6cd55d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubdomainHandler.DeleteCLI (cognitive 16): SubdomainHandler.DeleteCLI has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"d826af1ab3fe19742792809b0700f44dc7cdc3a551fa93deb9d21fb670ad9412"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadHandler.Upload (cognitive 16): UploadHandler.Upload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/upload.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"69619a723911ff3f70b3f874216710f645bf40009ae09e67b6bd3cb2a826e888"}},{"ruleId":"D2","level":"warning","message":{"text":"UserHandler.SubmitVerifyRequest (cognitive 16): UserHandler.SubmitVerifyRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/user.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"294643a72b803a59e755d6845c60f1b9ebbd061b6e5f3563b569f98b7f2a5d3d"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.ListReservedSubdomainsByScope (cognitive 16): DB.ListReservedSubdomainsByScope has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/subdomains.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5141a1682c3f69d8936c945e3d5cc6ad7ec29b4dae933565da9bb2b81b99447d"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.UpdateVerifyRequest (cognitive 16): DB.UpdateVerifyRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/verify.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"62279940433eef1b22a8fb95b18aa80ad8d892b2f169ec24f046d8c548f45856"}},{"ruleId":"D2","level":"warning","message":{"text":"domain.IsValid (cognitive 16): domain.IsValid has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/domain/domain.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"030d3a3c4d355e75b3b71c9e18bbd94efd99eb190b922d2a3dbadda3b4eea93d"}},{"ruleId":"D2","level":"warning","message":{"text":"init.detectNode (cognitive 16): init.detectNode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4787be3ec87099cd74a991f98d5df2ffc2c8e29ee47ccfb90fa9fc4bb0aac8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DB: TooManyMethods \u2014 234 methods, declared across 19 files: db/users.go (44), db/teams.go (26), db/org_system.go (23), db/admin.go (20), \u002B15 more file(s). The bar is 30 methods; this is 204 over it, 7.80\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/db.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e9f801c711efb59e8b558fa2ec2fff2d6c5b20a57b070afcde13f3b45f4400"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.registerRoutes: MethodTooLong \u2014 registerRoutes runs 365 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 265 over it, 3.65\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":"internal/api/server.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a02430eec0310447a9ddb15d4257b7344d1b1ac8ba07daa4a5e69e28f332523"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: extension.getLivePreviewHtml: FunctionTooLong \u2014 getLivePreviewHtml runs 322 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 222 over it, 3.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b3cfdc1722d98cb759112102b63b41c9c7915107167633f2f15a2270562ba0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mekong/main.go: FileTooLong \u2014 1504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1004 over it, 3.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9145fa43053a22ed4faa1d4196720e12d9302eed57db6da32748f690b0464e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.main: FunctionTooLong \u2014 main runs 293 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 193 over it, 2.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7121061b6ee9addbbbc5f0d2e2d39b29813c7ce58f578b5c0fe196926fe3c071"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DeployHandler: ClassTooLong \u2014 1029 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods, 31 blocks, lines 88-1845. The bar is 400 significant lines; this is 629 over it, 2.57\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":"internal/api/handlers/deploy.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72c1c6e3badc858460b7823f9ceead557377f9bfde9419236bd771d1428142d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/deploy.go: FileTooLong \u2014 1237 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: DeployHandler (31 blocks, 88-1845). The bar is 500 significant lines; this is 737 over it, 2.47\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":"internal/api/handlers/deploy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec285c3b65f273335b7dc643e15132fe645e56d5a8524bef105b73ef9350e2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: extension.activate: FunctionTooLong \u2014 activate runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1985fac1f6807dcb6394b675d8dcd5bd4fe4933a76e30283b9764f19198d5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/org.go: FileTooLong \u2014 1041 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: OrgHandler (25 blocks, 28-1440). The bar is 500 significant lines; this is 541 over it, 2.08\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":"internal/api/handlers/org.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c745ced7a006f13a2d4caed238cfc4b8f423a2e74d7e98b3e2b3fb0dd0b005"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AdminHandler: ClassTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods, 38 blocks, lines 23-1324. The bar is 400 significant lines; this is 408 over it, 2.02\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":"internal/api/handlers/admin.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7790ebf8c201f40968fe93944b79a5612bf112301bdc74a3500a0d6b2cab7cd4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OrgHandler: ClassTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods, 25 blocks, lines 28-1440. The bar is 400 significant lines; this is 400 over it, 2.00\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":"internal/api/handlers/org.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2221421386f4b0168d58084a859fd23276ee6e86e841f9018b6a15a38859c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/extension.ts: FileTooLong \u2014 996 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 496 over it, 1.99\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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f474b0318d808d6fe0942c7c295fece90fd367af9c9346f243f150cf266ddc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AuthHandler: ClassTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods, 24 blocks, lines 31-1296. The bar is 400 significant lines; this is 370 over it, 1.93\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":"internal/api/handlers/auth.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"baeb1617d1b8d46742c91ae400a1333d37dd041a1226c13c81c3f1694c76e994"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/admin.go: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AdminHandler (38 blocks, 23-1324). The bar is 500 significant lines; this is 381 over it, 1.76\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":"internal/api/handlers/admin.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65adeb3b72ba1b6d473cc4627774e7df3ac59a221faa59cabf298da27e0ea40"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.HandleSSHConnection: MethodTooLong \u2014 HandleSSHConnection runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\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":"internal/proxy/ssh.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b753378fd1d525ad36d1d92795d4693fe9af93aeca8730a1ca9f0891a9d0d258"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdminHandler.UpdateVerifyRequest: MethodTooLong \u2014 UpdateVerifyRequest runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"internal/api/handlers/admin.go"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"7384635c6c00d221679cd64546713bb25155c34bda29bf4ef0d15629bca3f42e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/auth.go: FileTooLong \u2014 832 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AuthHandler (24 blocks, 31-1296). The bar is 500 significant lines; this is 332 over it, 1.66\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":"internal/api/handlers/auth.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b00921f9abc75413ea261faa0c89eaa247d3a604ae129495604c0d6dd74c4ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.main: FunctionTooLong \u2014 main runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekongtunnel/main.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"de210899d5d66c0a1123649a5e955b1e38706e4e9303803eedc27480950a180d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MekongWebviewProvider.resolveWebviewView: MethodTooLong \u2014 resolveWebviewView runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9082bab8b53a3c2ed9dcc5d8af45476a0631cad04c7187c22193d05ad0f4df24"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: liveServer.renderMarkdown: FunctionTooLong \u2014 renderMarkdown runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e255ae31ac13ae69d4f654c584c16546b3194439fa67f58e52cb075d33353f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Server: TooManyMethods \u2014 46 methods, declared across 4 files: proxy/proxy.go (23), proxy/http.go (13), proxy/ssh.go (6), proxy/stats.go (4). The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/proxy.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7ed4ed23f86919d4ec0d6950a37d292ae6e48a8871d331fc07678b26137f5a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TeamHandler: ClassTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods, 23 blocks, lines 21-1075. The bar is 400 significant lines; this is 207 over it, 1.52\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":"internal/api/handlers/team.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"521c1fb2babcd278dd461d5d2522b7635d860c8ce9be328cc114e8d633a47499"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeployHandler.Upload: MethodTooLong \u2014 Upload runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1e40ba64b569079ce158ed3e294cb716c32399ab5da59ba98b4c22f2cff54c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mekong/deploy.go: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 192 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bac6c2c6a3b6fd8e5ddacd996187691f0898a253c4fd46dbd3d868d466fec53"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/team.go: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: TeamHandler (23 blocks, 21-1075). The bar is 500 significant lines; this is 186 over it, 1.37\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":"internal/api/handlers/team.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cb587002428679f18bef32f03bc5081255344dc5de1b185b42a6257d725ad9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Tunnel: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tunnel/tunnel.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0957ba08d367de7b522e03c38762326a21f79bb8b08182bce92ed20789f4d32a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.main: FunctionTooLong \u2014 main runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/api/main.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c936cf74e45f2b6c460ff7ac59d8bd0707b0aac346cd650251f5382c5dac36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mekong/domains.go: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 124 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1079c2f7693bec2a4380ebaa088e40b44744ef371901224a4732401b6490567a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OrgHandler.buildImportPreview: MethodTooLong \u2014 buildImportPreview runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61f761ea0436ca44f99656e9cb26fa2f92a8bbda69445e758e4ff7c43a0ca49"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.ServeHTTP: MethodTooLong \u2014 ServeHTTP runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2a1f1f2539608078f5cd74775e32f5c89f57264a35f1d4cfe31bde281ed28d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdminHandler: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"internal/api/handlers/admin.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"867360406a80797a6af3ea84f70aa8708cf5ddd31d560b625ff4cc26be51ad06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mekong/localstack.go: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/localstack.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"143dc1a9f75264ffe5a2cc8befcbabafae72dd59a5d7a631d982ad9eae105dca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/domains.go: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: DomainsHandler (15 blocks, 22-667). The bar is 500 significant lines; this is 72 over it, 1.14\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":"internal/api/handlers/domains.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd11ab9f6717f29eddc86cd5769973fd92e9177c76447d446e74b58a3602239"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeployHandler.startTunnel: MethodTooLong \u2014 startTunnel runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"591d9d74a40cc851da2bf3935ab0b7d23a0adc02321d0130d66b9780299f92d1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Server: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods, 8 blocks, lines 53-715. The bar is 400 significant lines; this is 33 over it, 1.08\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":"internal/api/server.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0821a4219103810bcf07b5b8f02c3dbe770990ed5b4978e6d06b75c7e654d55"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/http.go: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: Server (13 blocks, 45-1667). The bar is 500 significant lines; this is 37 over it, 1.07\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":"internal/proxy/http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a3d1c93969cb70fb24f93673e47b21a1f2eabab049233e6f9a05bf5485eaec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WalletHandler: ClassTooLong \u2014 426 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods, 14 blocks, lines 54-665. The bar is 400 significant lines; this is 26 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/wallet.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc474e6fdbc5487b2518df7516f93235c18bc74f0e98132fd5c54ad26ae4bb76"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BillingHandler: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods, 11 blocks, lines 29-667. The bar is 400 significant lines; this is 23 over it, 1.06\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":"internal/api/handlers/billing.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"51da1d9c9c355b863abd92a5e63d793df460d5f2736624afb524cf5a20a37d63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/server.go: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: Server (8 blocks, 53-715). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"497de334f80aee327a718ab274e176c91e63175b779cceee15d2af7597b44449"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mdserve.RenderMarkdown: FunctionTooLong \u2014 RenderMarkdown runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"internal/mdserve/mdserve.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac359ccd10e834399b85f143cebd54a957fa57a9136724e062f7aa3b74db52d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Tunnel: TooManyFields \u2014 31 stored fields beside 41 methods. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tunnel/tunnel.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"026381721c91e90741a54a1d5e647165dd2cf033e1d46fc686cc2d121e4259d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: media/webview.js: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7 over it, 1.01\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":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5925c8073a1b5c6b724671efcd5fe8d336f8438bd198173571b0c9333a73e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 25 shared lines): internal/api/handlers/auth.go:86-206 | internal/api/handlers/auth.go:211-324 | internal/api/handlers/auth.go:398-467 | internal/api/handlers/auth.go:690-755 | internal/api/handlers/auth.go:1207-1296 \u2014 These 5 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7508b5e9f4734f33a74604ebf96498b3d04a9954a600176ffdde1943e992649c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (74 shared lines): internal/api/handlers/subdomain.go:165-255 | internal/api/handlers/subdomain.go:258-346 \u2014 These two members are variants of one another: 74 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eacf8bcf6421ab90e3b91924a0793a1d30f523fa210d9505b206a365c5b53ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (51 shared lines): internal/api/handlers/domains.go:534-600 | internal/api/handlers/domains.go:603-667 \u2014 These two members are variants of one another: 51 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6ede97c876af9f0acc3e215f5601d0839ae2c16061f1396210e84a64c8b777"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (34 shared lines): cmd/mekong/deploy.go:212-317 | cmd/mekong/deploy.go:542-627 \u2014 These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb95872ccec3b2ea0de96b6e9b10ddb64a99c728c05a16c263ced88a6641db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): cmd/mekong/deploy.go:355-379 | cmd/mekong/deploy.go:409-433 | cmd/mekong/deploy.go:455-507 | cmd/mekong/deploy.go:631-659 | cmd/mekong/deploy.go:663-703 | cmd/mekong/deploy.go:707-766 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"1604dcebb757c79d5746679e0e23a9691ea4207787aec8dcaa60e82c6bb6e660"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/db/teams.go:12-24 | internal/db/teams.go:26-38 | internal/db/teams.go:40-49 | internal/db/teams.go:51-60 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/teams.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea849bb9972349c6331baf9dcf3b053845c5e8d7d0dc71bd67fac099654b6d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (105 corresponding lines): internal/api/handlers/auth.go:841-953 | internal/api/handlers/auth.go:972-1076 \u2014 These two members are one piece of code written twice and then edited apart: 105 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":"internal/api/handlers/auth.go"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdbcf29446ef891bf461454cbcaa4f5f5fab4628fbd8cc24f91faaadbea33d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (112 corresponding lines): internal/api/handlers/billing_bakong.go:153-267 | internal/api/handlers/wallet.go:278-389 \u2014 These two members are one piece of code written twice and then edited apart: 112 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":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c788dc2087f9abb34adad0b97336c8976c89665a71ccbdfbfaa80a0e716e65a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): internal/api/handlers/team.go:717-785 | internal/api/handlers/team.go:892-952 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"internal/api/handlers/team.go"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c80bea5dc6b99fb2a1e97e23ab05ceb68df35a33a378fdac59efbb499e9fa76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): cmd/mekong/domains.go:401-450 | cmd/mekong/domains.go:452-506 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"33988039e8201f2c89b02a9c6fa28ff4e64b60401c9759115143c36db368c874"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): internal/api/handlers/billing_bakong.go:20-98 | internal/api/handlers/wallet.go:96-160 \u2014 These two members are one piece of code written twice and then edited apart: 65 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":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"366fcf8a8ec74afa11ddd95e18ad01e5719296cbbf64821174e8b63d3446f2fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): internal/api/handlers/subdomain.go:445-511 | internal/api/handlers/subdomain.go:514-567 \u2014 These two members are one piece of code written twice and then edited apart: 54 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":"internal/api/handlers/subdomain.go"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e024e075e623236b49a3928559eb2b723e1184e584069a743c2f54494a008cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): internal/api/handlers/auth.go:507-557 | internal/api/handlers/user.go:72-130 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"internal/api/handlers/auth.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b060a4a21e06d0de4b9043b8c75d05a989ff02732fb37bd84f477c83c3ff90e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): internal/api/handlers/subdomain.go:77-119 | internal/api/handlers/subdomain.go:122-162 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d108fef98d0ebdc9993b08a57c6b870075870d7849eebf178747522aef4bfed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): internal/api/handlers/deploy.go:401-447 | internal/api/handlers/deploy.go:893-930 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"internal/api/handlers/deploy.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de2fe41165a27f1da971c337acb1f9259481d31785f40b9ed8196fcb6aa21a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): internal/db/org_system.go:262-301 | internal/db/org_system.go:331-359 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/org_system.go"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebc99d46b05fde8b65a90f537f69252644b213cffe42ae2377dee290882e698"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 35\u002B corresponding lines): internal/api/handlers/domains.go:307-341 | internal/api/handlers/domains.go:344-378 | internal/api/handlers/subdomain.go:349-395 | internal/api/handlers/subdomain.go:398-441 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb133dff096a6b64a21a19dec2be0382585c7ea8817fa0662d2c36b8c203de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): internal/api/handlers/telegram.go:57-97 | internal/api/handlers/telegram.go:101-140 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"internal/api/handlers/telegram.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6012c876d0714375547f13a3b9f5e111dadc5adc190321cc73a4d004a90680b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): internal/db/partners.go:79-110 | internal/db/sponsors.go:77-108 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/partners.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f4a67dab38634cdcc6a246bbaf380a1eb72a8e9d5090ae574fce10fd7bd62b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/api/handlers/auth.go:472-502 | internal/api/handlers/auth.go:605-635 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead3f9e9affeb2c18d174d359183655fbbdc142ca473cd5cc99c5310d19945e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): internal/api/handlers/auth.go:1114-1164 | internal/api/handlers/auth.go:1167-1204 | internal/api/handlers/user.go:133-181 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"62eed65bcb040e71004a30ed5c64247afb44a41afbbc021f27a19155a55ed23f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): internal/api/handlers/team.go:121-153 | internal/api/handlers/team.go:157-203 | internal/api/handlers/team.go:303-351 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 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":"internal/api/handlers/team.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d9d7444d0575d39542d02b6d806eab99ca09608bfd29f565a19b19447cc6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): internal/api/handlers/billing_bakong.go:102-151 | internal/api/handlers/wallet.go:164-204 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc730f16f9af84b7b0297305d4c0a2113470160db2e708c88e25217e78ba36a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/api/handlers/domains.go:467-498 | internal/api/handlers/domains.go:501-531 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b787eedbb10687cb3edca86d5103325fa46be6f79e77ed081b7a8dea1154f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): internal/api/handlers/newsletter.go:159-193 | internal/api/handlers/newsletter.go:196-233 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"internal/api/handlers/newsletter.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"387a70fa14a11cf0dfba4654a13ad080a8c5a190b6024540a886618ad8d882d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): internal/db/domains.go:173-208 | internal/db/domains.go:284-321 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"internal/db/domains.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"61748990f13d574da01a0b807f6e91f73d7da37c869b0c9e488a98eb2a86c1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/api/handlers/billing_koma.go:142-167 | internal/api/handlers/wallet_koma.go:180-205 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_koma.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee66fd700ebed1a29c0490b705bceb33aca470f00aa25e94c2c1d91f64c74582"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): internal/api/handlers/billing_bakong.go:335-382 | internal/api/handlers/wallet.go:479-526 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83662a440e1f409e306424519f6314b6bb3d444dbb18e8a4ef9aeecbcf044fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): internal/api/handlers/admin.go:181-225 | internal/api/handlers/user.go:33-69 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b14fc3dba9f773bf6436538711d9478e762be50c35d309288618b79ea04a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/api/handlers/deploy.go:450-480 | internal/api/handlers/deploy.go:483-520 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2461fa33b3b23b35cc280ccd28a7d9719bca8a476c17f2512f01c024fa98aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/api/handlers/admin.go:99-121 | internal/api/handlers/org.go:134-158 \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":"internal/api/handlers/admin.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"14319ead735000662306bf0faff8ac9012486cf6b6812ea1669fa18f6dcdd9d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/api/handlers/org.go:846-873 | internal/api/handlers/org.go:1257-1282 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d781efbb7c6e60f8a6e334b713829b8497226262af29e64db18087534dc20d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): internal/db/admin.go:155-186 | internal/db/subdomains.go:313-353 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/admin.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d400c5badf4fe522736bf30e34c23386c7c27ee16c7be2ec69f44f1bf05d6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): internal/db/org_system.go:75-110 | internal/db/teams.go:127-152 | internal/db/teams.go:213-240 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/org_system.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"51194d0d9e4f5d71f586c922be4a98e67f7d3c174eb6904e5321c209c838d74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/auth/oauth.go:66-98 | internal/auth/oauth.go:171-193 \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":"internal/auth/oauth.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e65da159ebafbe594b296dc1ee6a3c44f4f28c9c9742fee63e0f67c19aaa8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/api/handlers/admin.go:138-161 | internal/api/handlers/admin.go:363-385 \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":"internal/api/handlers/admin.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2fb384bed145b1b5a22e49ef3275ce947147a142c2492ec82b56fd490c7692"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/api/middleware/auth.go:28-48 | internal/api/middleware/auth.go:52-72 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/middleware/auth.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"072886afcb9badea8830f61ab6514a145f94f3f6a4b0183c4b99df42d9bf0b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): internal/api/handlers/deploy.go:1635-1658 | internal/db/paypal.go:52-77 | internal/db/paypal.go:118-144 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aef40a915a73ceca88ca8be2b95e7c264531ae0e9d70fced1d66b66522ffc94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): internal/api/handlers/team.go:496-517 | internal/api/handlers/team.go:520-554 | internal/api/handlers/team.go:991-1017 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"8821f058aa3abb844ad5c8cee4e0cdb03a99847f3f8ae31560583ccecf258765"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/db/teams.go:62-79 | internal/db/teams.go:191-211 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/teams.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29280b38c53c7020775e6c438e5c12574e943867a19469f1609c8011967872a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/db/teams.go:244-265 | internal/db/teams.go:388-409 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/teams.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8103652a613478a57e286f514b2694c70d42513e7b7f8c51cdee255ac7ea96f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): internal/api/handlers/admin.go:844-873 | internal/api/handlers/tokens.go:36-72 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e25080ce8fe5d2e4ddad3b9fa3b1c4cfb74a16d5ce80e27693e6c779c0a94b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/api/handlers/newsletter.go:100-116 | internal/api/handlers/newsletter.go:119-135 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/newsletter.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0095c52b4ef34f83ec1e00fc5db50396f5e157116b29d3571e07d6be77b1436a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/db/subdomains.go:197-232 | internal/db/subdomains.go:234-254 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/subdomains.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9eb857e45f7ac66bb45e574631ff389632970ccd5dcc2898d6cefbb73b71e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): cmd/mekong/domains.go:15-51 | internal/api/handlers/domains.go:19-73 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc10cd600ae48d3e34bc56feb35d51509e8cb8a009aae13c15fdaa5a5bc0b9d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): internal/api/handlers/domains.go:166-187 | internal/api/handlers/domains.go:190-211 | internal/api/handlers/subdomain.go:570-594 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a36277279a4034041128e919808ed65604f6f90c4fcc806409cf70b763a1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/db/paypal.go:31-50 | internal/db/paypal.go:100-116 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/paypal.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6457e57cc0c2e26aba64ab744c39e3e4cd82950aa82a6be6edbb6902180a4646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/billing/autobilling.go:44-72 | internal/billing/autobilling.go:123-149 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19ab8d17b447acb1c4ee5cb775252a9e8a43c97aaf9c93325b541128454e6af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): cmd/mekong/localstack.go:75-90 | internal/proxy/ssh.go:581-596 \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":"cmd/mekong/localstack.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"872a94d91e22695a79bccec2afa2a0b5fb3bb75f9dad0c85c523d9ca14ed0519"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/api/handlers/tunnels.go:580-598 | internal/auth/jwt.go:78-93 \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":"internal/api/handlers/tunnels.go"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd824a161ad182e108d9838506d0fea7ee85a04f839b80cb30747a9be0f485e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/telegrambot/client.go:47-69 | internal/telegrambot/client.go:72-93 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/telegrambot/client.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"623cb8e319af85fa293a53f01630e87ac6d7410489ba19c5987d5e8313f1ede7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/api/handlers/partners.go:62-79 | internal/api/handlers/sponsors.go:62-79 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/partners.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0965d515e079041d09f1050c267a6c27764da629b2dc0d54425e639bf19961ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/db/domains.go:40-71 | internal/db/donations.go:18-40 \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":"internal/db/domains.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5148e50b88cbcfe02c2e54776cfe47d5dea8734450f293225f38edbb3b1519d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/api/handlers/org.go:203-223 | internal/api/handlers/org.go:688-706 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2441cb31972c94828a01c17fbde4f20e24ed21cc1e5f50fe3637b4c81a574bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/api/handlers/org.go:1408-1422 | internal/api/handlers/org.go:1426-1440 \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":"internal/api/handlers/org.go"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f142c554cb8979bed7e7196fa7cbb4aac8504dd406129ca92b8747eb8170c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/api/handlers/team.go:569-589 | internal/api/handlers/team.go:788-808 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1ac4988c003b73adf801e18ba67b49d8ea172ccf4f82cdc0ab327e7a6903d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): cmd/mekong/deploy.go:383-405 | cmd/mekong/deploy.go:435-451 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"b555b4ead6bc3dcbb680a96a024cbb1fc755c62e63ac5507cf05fc709c113f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/api/handlers/partners.go:43-59 | internal/api/handlers/sponsors.go:43-59 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/partners.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46298668b7605bcd0a34656db16cb4b168c6c46fa27a7f57f59fc18a5851480"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): cmd/mekong/main.go:1504-1524 | cmd/mekong/main.go:1527-1539 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1b662e6c20bab4ba14de3dfae622f31fc53e235870e7c9a7f87fe1218c3c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/api/handlers/org.go:85-100 | internal/telegrambot/service.go:542-560 \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":"internal/api/handlers/org.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"92418cebd9b74371e377d596e14cecac882093806dc61cc021fd9d6a3bc04c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): internal/db/tunnels.go:68-91 | internal/db/tunnels.go:94-119 | internal/db/tunnels.go:158-184 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/tunnels.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d360da2c7af7d052fa1ed3dae2ade5508f2b8872b59daa2bea82bb84ede81bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/db/users.go:520-547 | internal/db/users.go:559-575 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/users.go"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1ec1ed8ddc60a26a249a2b4f69a2e909b29b863518e963992cc767669d731c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): internal/telegrambot/format.go:236-248 | internal/telegrambot/format.go:271-281 | internal/telegrambot/format.go:283-293 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/telegrambot/format.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd4679088e76a2f7518995d8eaf630cfb2ffba57424accde0f340355349a97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/api/handlers/admin.go:278-298 | internal/api/handlers/admin.go:796-815 \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":"internal/api/handlers/admin.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecb5aed32a246445956ec6e6771f4af87c1c92796325df2d9cd37cbf59893e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): internal/auth/jwt.go:27-43 | internal/auth/jwt.go:46-58 | internal/auth/jwt.go:61-75 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"internal/auth/jwt.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f875460fd3500fbe92b502bf3770f49bf77e33d98fefa5dd0238f395e173bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): internal/db/teams.go:156-169 | internal/db/teams.go:171-182 | internal/db/teams.go:314-325 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/teams.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d341c7fab962a9117fd3878feefe6567ed286ec06638d367596a30826c436a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/db/tokens.go:14-28 | internal/db/tokens.go:31-44 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/tokens.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d27536171cd59f6a86bae202ce9a09a59490ab4e789dbaaadc5e46205c28e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): internal/api/handlers/paypal.go:127-142 | internal/api/handlers/team.go:29-50 | internal/api/handlers/team.go:955-970 \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":"internal/api/handlers/paypal.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a232c91e3a9610c32b5b18dd5917b5d175bcdddcb2a0a9d92bfcae063fc2a623"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/db/tunnels.go:274-284 | internal/db/tunnels.go:290-303 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/tunnels.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f51e48a8a872e5d3adefebd1f15acc0c1ecc75daaa5bd5f3b9709c65e2509f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/api/handlers/auth.go:827-838 | internal/api/handlers/auth.go:958-969 \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":"internal/api/handlers/auth.go"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4054e3d940fe2bc4945aaf4f2d5399ad384dc8c52320884d431e7609cbc1c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): internal/api/handlers/edge_auth.go:38-50 | internal/api/handlers/edge_auth.go:67-82 | internal/api/handlers/edge_auth.go:84-96 | internal/api/handlers/edge_auth.go:98-110 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/edge_auth.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a61cd51354cc402ff360f415af87dce6c2f1573c1ef2b928b328b5068d58c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): internal/db/domains.go:210-227 | internal/db/domains.go:229-253 | internal/db/domains.go:255-278 | internal/db/domains.go:323-346 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/domains.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0423cee0fb206b97d920f5f76d4c43a47c2b123d8af95129223665e2bace0a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): internal/db/subdomains.go:101-115 | internal/db/subdomains.go:135-147 | internal/db/subdomains.go:149-166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"internal/db/subdomains.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b950b82f76b4f0d55796ce461562226d778830300cbcf10ab26a2d118f124ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): internal/api/handlers/notifications.go:50-67 | internal/api/handlers/notifications.go:70-82 | internal/api/handlers/notifications.go:85-102 | internal/api/handlers/paypal.go:145-157 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/notifications.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c4cc050f218d8aa9b600e0cad328449f2a0e2a8c1a5b1987c1f279c9f6b9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): internal/db/donations.go:52-73 | internal/db/partners.go:26-42 | internal/db/partners.go:45-61 | internal/db/sponsors.go:26-42 | internal/db/sponsors.go:45-61 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/donations.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92719c89401637e3e1470fd1379bfe6932e2ee8a31287c3661f58dfcf6c8044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): internal/api/handlers/auth.go:759-770 | internal/api/handlers/auth.go:774-785 | internal/api/handlers/notifications.go:105-116 | internal/api/handlers/tokens.go:75-94 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75c466dd3ba269f5242b4df8e2d2ab77fc1a0bb64ca169dfdd4860e46605ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): cmd/mekong/localstack.go:51-65 | cmd/mekong/localstack.go:254-269 \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":"cmd/mekong/localstack.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb1d3390a0423d97dcc02a41e6de34bbfc25c594418923eaf9c3c1d924d6560"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): internal/db/cli_device.go:28-41 | internal/db/users.go:214-224 | internal/db/users.go:241-251 | internal/db/users.go:268-278 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/cli_device.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"36648b9af11bfc52523a2cf2ef36ad5dc7c967232bfc11d7e46053735c61c99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/api/handlers/admin.go:388-402 | internal/api/handlers/admin.go:405-420 \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":"internal/api/handlers/admin.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0af5571751d68d5cf4aae54b1f836e2662a5d568c8cdaafc700fbd177d2974d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): internal/api/handlers/admin.go:876-889 | internal/api/handlers/donations.go:129-141 | internal/api/handlers/partners.go:82-93 | internal/api/handlers/sponsors.go:82-93 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"164fc0af5083ad567d23a76bae281a78a73b169d20378e9bcbcfd549d8b227a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/telegrambot/format.go:193-204 | internal/telegrambot/format.go:207-217 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/telegrambot/format.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"460c75de5184d4885b4ca675de15165c74343bd26ef9980f8c21dc79bb1be74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): internal/telegrambot/service.go:197-210 | internal/telegrambot/service.go:260-273 | internal/telegrambot/service.go:275-288 \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":"internal/telegrambot/service.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e074a4abf7e136eab682078028f92344b302c3f997f4b4f4c4cd0b59b8af8806"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/redisx/client.go:136-151 | internal/redisx/client.go:167-179 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/redisx/client.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"384476802564e0e11b7a7c289ed55cdabfd38b82c5afff6167f5d455a62ce8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): internal/db/domains.go:96-112 | internal/db/subdomains.go:121-133 | internal/db/subdomains.go:176-193 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"internal/db/domains.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a77301e68bc0e9a336c3227f526cb63884e1d70d1d95eb1a9b7eac2d9bdf946"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/api/middleware/auth.go:76-86 | internal/api/middleware/auth.go:90-101 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/middleware/auth.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"097adaee9135313b3215f2ace398d78a0761a9e68d9a74a4198239fe113443d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/api/handlers/partners.go:30-40 | internal/api/handlers/sponsors.go:30-40 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/partners.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5161de37a5468120a0183d11a47c54bf13fba0291e25eac92eab11fe4b4fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): internal/api/handlers/partners.go:17-27 | internal/api/handlers/paypal.go:160-170 | internal/api/handlers/sponsors.go:17-27 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/partners.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfab312ef998ce3adc2b02d0bde6083c16226335ebff435103b68c9a65cce2ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/api/handlers/team.go:108-117 | internal/api/handlers/tunnels.go:558-567 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ab8c59c4f1ce9cffd55a0d3c16c8cfa6aeba3e12ce64018d3897530acbd4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/db/db.go:84-94 | internal/redisx/client.go:198-208 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/db.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d4eeb40dc89eb534e5a5b18c539b5c97a357d26871d4c6c5b662d58a20fe8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/db/admin.go:89-95 | internal/db/teams.go:114-125 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/admin.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec193fc5417015700a691bd548a2b6a619763418e10d137426ccc656136adbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/auth/password.go:33-39 | internal/db/telegram.go:184-190 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/password.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1a79f083b3f7c1ad3e1054b67385bbf85d70d38401355011171913b5d4b002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/db/admin.go:188-198 | internal/db/org_system.go:208-226 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/admin.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33a87f6dfbc68448c5a5896e449f6d90e68e161587f5a3e1fdc8cf2f26ed1c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): internal/api/handlers/admin.go:834-841 | internal/api/handlers/newsletter.go:246-253 | internal/api/handlers/paypal.go:173-180 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"internal/api/handlers/admin.go"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f0540ba85e2c3c495277d61a24740ade3121afa83675a6d5e46295e406cfc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/api/handlers/billing_bakong.go:314-325 | internal/api/handlers/wallet.go:647-657 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"50405e152ce77fb4d3c6a3c6c41d8c657d6a5f114d28c312666d6cc5be1e8b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/db/telegram.go:119-130 | internal/db/users.go:162-174 \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":"internal/db/telegram.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3625d8b33cb8831a640cf08121cbae1e76dde9500a1d78bdbc3400b2760cd7b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/db/tokens.go:103-117 | internal/db/verify.go:237-248 \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":"internal/db/tokens.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"616a252df4f8fec558eeecb7444e27828f5ff5ca71b1c34c2ee2ec2fd1bc80eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/db/cli_device.go:45-53 | internal/db/tokens.go:71-77 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/cli_device.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fb58dee4176c13328cfa73603574daf7e9394b285126af17577f5ec479a7ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): internal/api/handlers/billing_koma.go:18-87 | internal/api/handlers/wallet_koma.go:56-125 \u2014 before extracting anything, compare \u0060internal/api/handlers/billing_koma.go\u0060 and \u0060internal/api/handlers/wallet_koma.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_koma.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3854f57b0c0b0ea75f29db30b52ff9cda5af50a8e93812f1bb76175f7a45f79b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): internal/api/handlers/billing_koma.go:90-126 | internal/api/handlers/wallet_koma.go:128-164 \u2014 before extracting anything, compare \u0060internal/api/handlers/billing_koma.go\u0060 and \u0060internal/api/handlers/wallet_koma.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_koma.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a527c87ad1d81d37c4eac3e91e35e35af77681ddb9a26ab618a22f1b42cafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): internal/api/handlers/auth.go:892-953 | internal/api/handlers/auth.go:1015-1076 \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 \u0060internal/api/handlers/auth.go:892\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":"internal/api/handlers/auth.go"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35771ee375e64aac3964e78c85020a5ab2b3a0a68974982ab3ab83565ee611a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): internal/api/handlers/team.go:755-785 | internal/api/handlers/team.go:923-952 \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 \u0060internal/api/handlers/team.go:755\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":"internal/api/handlers/team.go"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e516f59bece0c013b18a1fc74b5bc19cb9cde769005c4ed8c716a1d519cf776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 3): internal/api/handlers/subdomain.go:356-384 | internal/api/handlers/subdomain.go:405-431 | internal/api/handlers/subdomain.go:521-548 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/subdomain.go:356\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02e7255648fea03600b396ac5ba73fc9be80402ad3bd570c8e167a21c7058f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): internal/api/handlers/team.go:211-237 | internal/api/handlers/team.go:307-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/team.go:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55d07efe2230da79e740cf99eceb40aafef61a377a46e8bed493ab53543441c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): internal/api/handlers/deploy.go:417-441 | internal/api/handlers/deploy.go:906-928 \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 \u0060internal/api/handlers/deploy.go:417\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/api/handlers/deploy.go:414\u0060 calls \u0060checkQuota\u0060, \u0060Context\u0060, \u0060deployMaxPerPlan\u0060 and \u0060internal/api/handlers/deploy.go:904\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dad3f4a24845664fcd58d678f57c339d7e74eabcb95171ec60e23469ad1375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): cmd/mekong/domains.go:618-641 | cmd/mekong/domains.go:693-714 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/domains.go:618\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4ee51e7ebd053c87770d56c6c09569ff307b11b9551741f6c63701e4f9efe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): internal/api/handlers/subdomain.go:216-239 | internal/api/handlers/subdomain.go:307-330 \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 \u0060internal/api/handlers/subdomain.go:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1032ada5fd34b88248e7c79c4198da8d49dc4f4ebb468669c6d1f433ade1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/api/handlers/domains.go:543-565 | internal/api/handlers/domains.go:612-634 \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 \u0060internal/api/handlers/domains.go:543\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"769ff871fc7fd4171da9878ceb2a138b2a6716088e0617c2d99632848531ee7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): internal/api/handlers/subdomain.go:173-195 | internal/api/handlers/subdomain.go:266-287 \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 \u0060internal/api/handlers/subdomain.go:173\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":"internal/api/handlers/subdomain.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba27b025feff23cdff21bd2e171c3d2346c84a5824c704bda08714d993b7798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/api/handlers/telegram.go:58-80 | internal/api/handlers/telegram.go:102-124 \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":"internal/api/handlers/telegram.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca6716cf6a8564ee197422138fe2e46cdb2af8166c608eb24068b900906298d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): internal/api/handlers/auth.go:145-166 | internal/api/handlers/auth.go:293-314 | internal/api/handlers/auth.go:438-459 | internal/api/handlers/auth.go:1265-1286 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/auth.go:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"af416a11ec507c1fb2664c6ca93a74d6d3f299a8ca90bc3374922d0197a3fd91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): internal/api/handlers/deploy.go:451-472 | internal/api/handlers/deploy.go:484-505 | internal/api/handlers/deploy.go:648-669 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1addc9768655f5165465f53cfea1bb66efeb2508ea44d3625abc10fa8130b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): internal/api/handlers/deploy.go:524-544 | internal/api/handlers/deploy.go:605-623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aacf3523b68a5a03dff8d38a3158114fbfa171f608d577720a01ee25412e52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): internal/api/handlers/billing_bakong.go:21-40 | internal/api/handlers/billing_bakong.go:103-122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3622fa38689c4f643db25a0ef0e19303f398dd7ee13210200b4ff35b13f301c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): internal/api/handlers/domains.go:222-241 | internal/api/handlers/domains.go:269-288 \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 \u0060internal/api/handlers/domains.go:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8a6c18b1e8e17094ed0079af385a50b1434e488147bf818111b2ddf1758e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): cmd/mekong/deploy.go:632-650 | cmd/mekong/deploy.go:708-726 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/deploy.go:632\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"5593f0c3a8a0111589c3494567d0454a892cb49c93e4bd70e653bb49e6915448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/db/partners.go:86-103 | internal/db/sponsors.go:84-101 \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 \u0060internal/db/partners.go:86\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":"internal/db/partners.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3857ff7efc4d4b1ba34854a0bc9d1356a72e7ab7fe9dae806f080b23379c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): cmd/mekong/domains.go:457-473 | cmd/mekong/domains.go:513-529 | cmd/mekong/domains.go:737-752 \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":"cmd/mekong/domains.go"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"448d2e4a3db932b09f9d2f585b1e15bbecea9c37f3d40195b2276ea06c24a570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): internal/api/handlers/team.go:792-803 | internal/api/handlers/team.go:852-868 \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 \u0060internal/api/handlers/team.go:792\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb5d7225b68f33c2a9d99b4a6f1aead55f2285f1717b6bc851f04c115de90f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/api/handlers/team.go:843-859 | internal/api/handlers/team.go:1022-1038 \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":"internal/api/handlers/team.go"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9a8ee95571dbd0a41b4609c6dd9a83a5edd3e8b14ee7d4970be105472ecb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/api/middleware/auth.go:32-48 | internal/api/middleware/auth.go:56-72 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/middleware/auth.go:32\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":"internal/api/middleware/auth.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc24aef5ca206d05d699e5027c6071cba493b529bee55599504a5147ada662d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): cmd/mekong/deploy.go:213-228 | cmd/mekong/deploy.go:543-556 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/deploy.go:213\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"be44ba0e51c812e1ee981f1a365b23e07c903434b02f6896b94cd875a8e608e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): internal/api/handlers/auth.go:1115-1130 | internal/api/handlers/auth.go:1168-1183 \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 \u0060internal/api/handlers/auth.go:1115\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":"internal/api/handlers/auth.go"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a9e17cb2ca4413a5814e519764f4ef09cd223fc9f7e7df7ae37722122b9909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): internal/api/handlers/billing_bakong.go:191-222 | internal/api/handlers/wallet.go:314-345 \u2014 before extracting anything, compare \u0060internal/api/handlers/billing_bakong.go\u0060 and \u0060internal/api/handlers/wallet.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/billing_bakong.go:191\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"26720559e5832c2e903b10c5da018aea7ec9b9c57a91e5c123bad05bf0320c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 11): internal/api/handlers/domains.go:167-180 | internal/api/handlers/domains.go:215-228 | internal/api/handlers/domains.go:308-321 | internal/api/handlers/domains.go:468-481 | internal/api/handlers/domains.go:535-548 | internal/api/handlers/subdomain.go:78-91 | internal/api/handlers/subdomain.go:166-180 | internal/api/handlers/subdomain.go:399-412 | internal/api/handlers/subdomain.go:446-460 | internal/api/handlers/subdomain.go:515-528 | internal/api/handlers/subdomain.go:571-584 \u2014 before extracting anything, compare \u0060internal/api/handlers/domains.go\u0060 and \u0060internal/api/handlers/subdomain.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"94457ed2923f849416df8dac146bcf4bf727cf864f186acf29238b3378bbb6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): internal/api/handlers/domains.go:191-204 | internal/api/handlers/domains.go:262-275 | internal/api/handlers/domains.go:345-358 | internal/api/handlers/domains.go:502-515 | internal/api/handlers/domains.go:604-617 | internal/api/handlers/subdomain.go:123-137 | internal/api/handlers/subdomain.go:259-273 | internal/api/handlers/subdomain.go:350-363 \u2014 before extracting anything, compare \u0060internal/api/handlers/domains.go\u0060 and \u0060internal/api/handlers/subdomain.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e877bf1463c1748eb8545dff5b59a89b1224bb6eda70313a24dddeb5f8d51029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): internal/api/handlers/domains.go:316-330 | internal/api/handlers/domains.go:353-367 | internal/api/handlers/domains.go:476-490 | internal/api/handlers/domains.go:510-524 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/domains.go:316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d92e40db7f8bb7d75458a6fe4661f8e993f9e584f444dd7e8cd5831e785fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): internal/api/handlers/team.go:124-137 | internal/api/handlers/team.go:210-224 | internal/api/handlers/team.go:306-320 | internal/api/handlers/team.go:994-1007 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/team.go:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98a09423c9f24cca27dadf688e3b6d95fd71d1abf49a1c32efc261742534b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): internal/db/domains.go:57-71 | internal/db/domains.go:153-167 | internal/db/domains.go:385-399 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/db/domains.go:57\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/domains.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6b3318e0d173208082fd9790e2fc48eadf6977c1769c9883b65297f58c3cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/api/handlers/domains.go:244-258 | internal/api/handlers/domains.go:290-304 \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 \u0060internal/api/handlers/domains.go:244\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f828181cb61563f41dad7034663c39a6cd16ac3b7bbd8eb5c9718a724ed161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/api/handlers/newsletter.go:160-174 | internal/api/handlers/newsletter.go:197-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/newsletter.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db589d272705f33ae86c4ca882f8802e6f74e602663e36fd4d7c64c5b1fa5af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/api/handlers/org.go:86-100 | internal/telegrambot/service.go:546-560 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/telegrambot/service.go:546\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060orgID\u0060 in one and \u0060msg\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"618d836ca8f7f65fe476ea4f42b10c7e7d291037ca4bbb2ff9f063af99119322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): internal/api/handlers/auth.go:287-300 | internal/api/handlers/auth.go:720-733 | internal/api/handlers/auth.go:923-936 | internal/api/handlers/auth.go:1046-1059 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/auth.go:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbee30e1b173b6ee190053160672397ecf3ba530514197c1f4f93c66fbe4745f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/api/handlers/admin.go:472-485 | internal/api/handlers/domains.go:587-600 | internal/api/handlers/domains.go:654-667 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/admin.go:472\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":"internal/api/handlers/admin.go"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"2776677dd72dc18344798c24712452a71c63a4a22cd720d13e99e628749eb62f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/api/handlers/auth.go:311-324 | internal/api/handlers/auth.go:742-755 | internal/api/handlers/auth.go:1283-1296 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/auth.go:311\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":"internal/api/handlers/auth.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"73401bb5b2906f45ec41e3c034fc390909bf7b489ff8ea3a2d9b660b8016d285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cmd/mekong/deploy.go:277-290 | cmd/mekong/deploy.go:591-604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1d2256e8f1b22cca6178719d2e8583a8dd2235388e36a703ce1e67ba747591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/api/handlers/subdomain.go:94-107 | internal/api/handlers/subdomain.go:140-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d77bb76dc93aefebef77e2e9dce0733e1e6c3c354e1d066ad5aa1ec13190605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/api/handlers/subdomain.go:197-210 | internal/api/handlers/subdomain.go:289-302 \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 \u0060internal/api/handlers/subdomain.go:197\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a05e062170335b3cdbb8d030a159ae5e4a15164da4747a6ac16a7436b9e89c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/api/handlers/subdomain.go:242-255 | internal/api/handlers/subdomain.go:333-346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/subdomain.go:242\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":"internal/api/handlers/subdomain.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"99706db16b77c92da3d4b021620aedff94c7435f6b193760c0ca392109379615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/db/donations.go:27-40 | internal/db/donations.go:60-73 \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 \u0060internal/db/donations.go:27\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/donations.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd18e5594432e3abf729ecaeb17e51472550b67a458c9a2737628e7a8b8a6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 3): internal/db/org_system.go:288-301 | internal/db/org_system.go:346-359 | internal/db/org_system.go:372-374 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/db/org_system.go:288\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/org_system.go"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01054dcd3b1eb30513ab65ecec03c87a42d4e543de0ae8226fcaafc2e112690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/db/partners.go:29-42 | internal/db/partners.go:48-61 \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 \u0060internal/db/partners.go:29\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/partners.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1ca83476e63fbfd787d7d17db4c69b13f9cedd209e050e07a4ec30f26f1fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/db/sponsors.go:29-42 | internal/db/sponsors.go:48-61 \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 \u0060internal/db/sponsors.go:29\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/sponsors.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"73300ec48fd49c4a5e34f41666668ce6a8c3ab337a4de753582ba792590126a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): internal/api/handlers/auth.go:157-169 | internal/api/handlers/auth.go:305-317 | internal/api/handlers/auth.go:450-462 | internal/api/handlers/auth.go:736-748 | internal/api/handlers/auth.go:1277-1289 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/auth.go:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c47fd8cb1101975fd526bcb19e9331fe0eb436ab22b71357de93155f408c7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): internal/api/handlers/team.go:122-133 | internal/api/handlers/team.go:208-220 | internal/api/handlers/team.go:304-316 | internal/api/handlers/team.go:497-507 | internal/api/handlers/team.go:992-1003 \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":"internal/api/handlers/team.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4d2d05aeb9220e2d63b0a2c03457e49c6fe9a60a257fba2d6b7015d50ccf78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cmd/mekong/main.go:1440-1452 | cmd/mekong/main.go:1592-1605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/main.go:1440\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cmd/mekong/main.go:1454\u0060 calls \u0060removeState\u0060 and \u0060cmd/mekong/main.go:1607\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":"cmd/mekong/main.go"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"415518da67816aaf7b18ef8f5a368b2412a13eef4d9b0c315d5208d8bbcfd12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/api/handlers/auth.go:609-621 | internal/api/handlers/auth.go:646-658 \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 \u0060internal/api/handlers/auth.go:609\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":"internal/api/handlers/auth.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b360dc23222bd5255651eee6ca4d6d0eda5cb0bf6f0516647f760f8a606b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/api/handlers/org.go:770-782 | internal/api/handlers/org.go:797-809 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a9266417df310bb9431d4730bc5962a9d619d10048a55a33617a1946df04ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/api/handlers/org.go:878-890 | internal/api/handlers/org.go:1035-1047 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"69640cf6f65f16e98f51404b46e116eb74ed303a722acbd18a3fe635e1f461da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/db/domains.go:196-208 | internal/db/domains.go:309-321 \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 \u0060internal/db/domains.go:196\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":"internal/db/domains.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6927dfa44bf70f657c9c3da42200f3521d858f32149824863f60c0a405c2440a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): internal/api/handlers/domains.go:221-232 | internal/api/handlers/domains.go:268-279 | internal/api/handlers/domains.go:314-325 | internal/api/handlers/domains.go:351-362 | internal/api/handlers/domains.go:474-485 | internal/api/handlers/domains.go:508-519 | internal/api/handlers/domains.go:541-552 | internal/api/handlers/domains.go:610-621 \u2014 all 8 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":"internal/api/handlers/domains.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ed45d7ee45823ab07ee7f63696e1b82096a3e7fb295b97d60ce53df57cd1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): internal/api/handlers/auth.go:142-153 | internal/api/handlers/auth.go:290-301 | internal/api/handlers/auth.go:435-446 | internal/api/handlers/auth.go:723-734 | internal/api/handlers/auth.go:926-937 | internal/api/handlers/auth.go:1049-1060 | internal/api/handlers/auth.go:1262-1273 \u2014 all 7 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/api/handlers/auth.go:433\u0060 calls \u0060RevokeRefreshToken\u0060, \u0060Context\u0060 and \u0060internal/api/handlers/auth.go:288\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":"internal/api/handlers/auth.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e70ef0a1ed22e6474b71b92c5ae75b0d6e09ccafddaa2e2bf1317079eebb6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): internal/api/handlers/subdomain.go:173-184 | internal/api/handlers/subdomain.go:266-277 | internal/api/handlers/subdomain.go:356-367 | internal/api/handlers/subdomain.go:405-416 | internal/api/handlers/subdomain.go:521-532 \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. 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":"internal/api/handlers/subdomain.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c27a070f74cd40f2daff6cf1887e29b278e55fa8e54dc414f5c78d7524df9e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): internal/api/handlers/subdomain.go:366-379 | internal/api/handlers/subdomain.go:415-426 | internal/api/handlers/subdomain.go:467-480 | internal/api/handlers/subdomain.go:531-543 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/subdomain.go:366\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/api/handlers/subdomain.go:380\u0060 calls \u0060IsTeam\u0060 and \u0060internal/api/handlers/subdomain.go:481\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b9a79764d9ddd1149d7b47b005c7ca2c4675dce2672ec137b2282bb04f416a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): internal/api/handlers/auth.go:241-252 | internal/api/handlers/auth.go:897-908 | internal/api/handlers/auth.go:1020-1031 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/auth.go:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"368d6bebdff1cb3d11eda60bca7d235483dffdfe884aa2ca6a1f1801164ebc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/mekong/main.go:927-938 | internal/api/handlers/deploy.go:1423-1434 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/main.go:927\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. Check import visibility before settling on that home: \u0060internal/api/handlers/deploy.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4efa90c5962610452f2a4587435f23e71a49fb261c6280e07c1461aa7c7d798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): internal/api/handlers/deploy.go:211-221 | internal/api/handlers/deploy.go:668-679 \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 \u0060internal/api/handlers/deploy.go:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"803d9ceaf61663e459321c39076ab3951fe7069afabf44243b073bba97b25546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/api/handlers/domains.go:568-579 | internal/api/handlers/domains.go:636-647 \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":"internal/api/handlers/domains.go"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"5943109f87f9a7a6994850f0cab4a30082ebfcf051a5853b429088eb08382d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): cmd/mekong/deploy.go:357-367 | cmd/mekong/deploy.go:411-421 | cmd/mekong/deploy.go:457-467 | cmd/mekong/deploy.go:633-643 | cmd/mekong/deploy.go:665-675 | cmd/mekong/deploy.go:709-719 \u2014 all 6 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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cmd/mekong/deploy.go:646\u0060 calls \u0060Errorf\u0060 and \u0060cmd/mekong/deploy.go:677\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":"cmd/mekong/deploy.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a96764f176f61303808c52e5222a8debbd050bc9b13d017f717bd628171a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): internal/api/handlers/org.go:689-699 | internal/api/handlers/org.go:711-721 | internal/api/handlers/org.go:847-857 | internal/api/handlers/org.go:1258-1268 | internal/api/handlers/org.go:1287-1297 \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. 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":"internal/api/handlers/org.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"a419cb9ec44274a99d9aa8586e6544ebb3b4cf93aba699a3e0b8612b8d19347e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/api/handlers/deploy.go:429-439 | internal/api/handlers/deploy.go:634-644 | internal/api/handlers/deploy.go:918-928 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/deploy.go:429\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"547f5596aa44605f41c0c21d4694e9ebacbb10b25b4e3501f92ea6324adcadcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/api/handlers/auth.go:1082-1092 | internal/api/handlers/billing.go:48-58 \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. 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":"internal/api/handlers/auth.go"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5fbb4b1024c98113d327c2681d9815c669b7b892796f83b4540831acb573b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/db/admin.go:22-32 | internal/db/users.go:330-340 \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 \u0060internal/db/admin.go:22\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/admin.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3b0c70fe6a8f9d5e95aaddc4ebcf9d7080f07fc3fba695f10c4ce2a506c07e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): internal/api/handlers/org.go:717-726 | internal/api/handlers/org.go:777-786 | internal/api/handlers/org.go:804-813 | internal/api/handlers/org.go:853-862 | internal/api/handlers/org.go:885-894 | internal/api/handlers/org.go:1293-1302 | internal/api/handlers/org.go:1378-1387 \u2014 all 7 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/api/handlers/org.go:775\u0060 calls \u0060PathValue\u0060 and \u0060internal/api/handlers/org.go:715\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"519ccbe0d7261e6de4db1a1c50a4d6d33ef2d26db88ae9967fff95b2c2fc437c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): internal/api/handlers/auth.go:145-154 | internal/api/handlers/auth.go:293-302 | internal/api/handlers/auth.go:438-447 | internal/api/handlers/auth.go:1265-1274 | internal/api/handlers/team.go:1055-1064 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/auth.go:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12610ba8bf84ad234012595898c4482001fc2e0b2f646bae44e03e4f931ee14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/api/handlers/auth.go:1124-1133 | internal/api/handlers/auth.go:1177-1186 | internal/api/handlers/user.go:143-152 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. 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":"internal/api/handlers/auth.go"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f9200ae89f56240ebca4e747f42586c90169afc737bc5f0f4e87332a5bb4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/auth.go:543-552 | internal/api/handlers/user.go:118-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/api/handlers/auth.go:554\u0060 calls \u0060MarkPasswordResetTokenUsed\u0060, \u0060Context\u0060 and \u0060internal/api/handlers/user.go:129\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":"internal/api/handlers/auth.go"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"37592f522355264bda9546854cdbc00ad0454bf318e55d4eabca5a6384ded4e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/billing_koma.go:158-167 | internal/api/handlers/wallet_koma.go:196-205 \u2014 before extracting anything, compare \u0060internal/api/handlers/billing_koma.go\u0060 and \u0060internal/api/handlers/wallet_koma.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/billing_koma.go:158\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":"internal/api/handlers/billing_koma.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb83a2851566e7a3ef59e2e566a6395fe1c905ae439ec500bc01b39e453d92d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/domains.go:76-85 | internal/api/handlers/subdomain.go:65-74 \u2014 before extracting anything, compare \u0060internal/api/handlers/domains.go\u0060 and \u0060internal/api/handlers/subdomain.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7c16bb414d1dd7fb6445b0c0f3120dd3f005a91b58d3c85f33d1958ad80389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/org.go:695-704 | internal/api/handlers/org.go:1042-1051 \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 before the matched lines, \u0060internal/api/handlers/org.go:1040\u0060 calls \u0060PathValue\u0060 and \u0060internal/api/handlers/org.go:693\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"e686c23b8ffbc5d792f40735f9ba1e121a29ae527ba6aae3fd4d14f69a488d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/partners.go:63-72 | internal/api/handlers/sponsors.go:63-72 \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. 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":"internal/api/handlers/partners.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e0d34ebc275cd038284b5d66ebfcdcb6bb868525cf9f8544b21efca4c4816b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/team.go:570-580 | internal/api/handlers/team.go:789-798 \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":"internal/api/handlers/team.go"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"108c74ad9be30fb10e65aa8cf55e7d98527367653c8fa45972f3f70e37b3e1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/db/subdomains.go:220-232 | internal/db/subdomains.go:242-254 \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 \u0060internal/db/subdomains.go:220\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":"internal/db/subdomains.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c84c3eb34f712de98d6d28fd59bcfb3e12f0e8d14f889ff431040efa0b8acc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): internal/api/handlers/domains.go:221-229 | internal/api/handlers/domains.go:268-276 | internal/api/handlers/domains.go:314-322 | internal/api/handlers/domains.go:351-359 | internal/api/handlers/domains.go:474-482 | internal/api/handlers/domains.go:508-516 | internal/api/handlers/domains.go:541-549 | internal/api/handlers/domains.go:610-618 | internal/api/handlers/subdomain.go:173-181 | internal/api/handlers/subdomain.go:266-274 | internal/api/handlers/subdomain.go:356-364 | internal/api/handlers/subdomain.go:405-413 | internal/api/handlers/subdomain.go:521-529 \u2014 before extracting anything, compare \u0060internal/api/handlers/domains.go\u0060 and \u0060internal/api/handlers/subdomain.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/domains.go:221\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":"internal/api/handlers/domains.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d2b44c272ce4da75f6e0c1803e074c30de347fe2c29ac4dedf097099618baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): internal/api/handlers/admin.go:109-116 | internal/api/handlers/org.go:145-153 \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 \u0060internal/api/handlers/admin.go:109\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":"internal/api/handlers/admin.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8176b055d726794d1c805c99ad28207d6ed46e84bd51b0bbdcdff435a7ba4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/api/handlers/team.go:679-688 | internal/api/handlers/team.go:820-828 \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 \u0060internal/api/handlers/team.go:679\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"f460586b86f9afa8dff006fe272c06a34681d7fa58060843502893c577c32329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/db/org_system.go:92-100 | internal/db/org_system.go:148-156 \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 \u0060internal/db/org_system.go:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/org_system.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02a469abc5160e6f90bc896d3c91398fb0b4af7b9ee0d3b6839825f29ce1640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/db/paypal.go:60-77 | internal/db/paypal.go:127-144 \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 \u0060internal/db/paypal.go:60\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/paypal.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"243053ee78a6c5060ebc79ace516ee341bc6b990a873c84f1a290e13b65e7e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cmd/mekong/deploy.go:838-846 | cmd/mekong/deploy.go:862-869 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/deploy.go:838\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"61716d8458522ca80b80e1c1cc1f464828650b046bb169fe969ed34a26637117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/api/handlers/auth.go:842-849 | internal/api/handlers/auth.go:973-980 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e380915ebb8685f0a365318669e011f8dfa6323a2f618699f9d4c6a5f5bc77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/api/handlers/deploy.go:1303-1310 | internal/api/handlers/deploy.go:1374-1381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa808cc44993f64e0dccc083ffc6ec5c53cdfbab35cf40a7632d09d1104c07b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/api/middleware/auth.go:140-147 | internal/api/middleware/auth.go:152-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/api/middleware/auth.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f15c8a096594786eab0382dfdf51e5f45238d2b8c9594134d7d99f5dc561a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/db/subdomains.go:108-115 | internal/db/subdomains.go:140-147 \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 \u0060internal/db/subdomains.go:108\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/subdomains.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2693249bfa80f2d21d43781f935008183f025522af1e5cb21456f0ba5cb00510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/db/teams.go:162-169 | internal/db/teams.go:175-182 | internal/db/teams.go:318-325 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/db/teams.go:162\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":"internal/db/teams.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e743b213b84161105d1039c631dfa50077dda646cf9f37c2e7688ff55d8911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cmd/mekong/localstack.go:76-82 | internal/proxy/ssh.go:582-588 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Check import visibility before settling on that home: \u0060internal/proxy/ssh.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/localstack.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfb4dabb60595266f931cbb8cd0a934957b0874936885b74a6fa19c48d47fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/api/handlers/newsletter.go:101-107 | internal/api/handlers/newsletter.go:120-126 \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 \u0060internal/api/handlers/newsletter.go:101\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":"internal/api/handlers/newsletter.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60970bda6a8679e4263a4fd83b5391cf92ea1f72210ee658f16551d0021255e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/api/handlers/tunnels.go:237-244 | internal/api/handlers/tunnels.go:291-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/tunnels.go:237\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/tunnels.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c741bbb5cd8a7cf213956052a8d03063f958203b20f82e80de6edac8d3c48987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 3): internal/db/org_system.go:279-285 | internal/db/org_system.go:337-343 | internal/db/org_system.go:370-371 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/db/org_system.go:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/org_system.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd58c789295b28e6d2c74f625b5da6b3801b656087d7eeae1ae0f96e1f90334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/db/teams.go:66-72 | internal/db/teams.go:198-204 \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 \u0060internal/db/teams.go:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/teams.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf5058aaff1728eca140023f3ef525cbc3365b4605c395c07746068a3886659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/db/teams.go:251-257 | internal/db/teams.go:394-401 \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 \u0060internal/db/teams.go:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/teams.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f983d7e5b1d66cc630c420611b227af7c73cd0d9196b3066a2bdd2fb49c1808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/db/telegram.go:136-149 | internal/db/telegram.go:153-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/telegram.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"904efa9fcce0c96eaa4d917af6c53aa17051b041c15764c19776acd7c7ba2e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/db/tokens.go:21-28 | internal/db/tokens.go:37-44 \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 \u0060internal/db/tokens.go:21\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":"internal/db/tokens.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84500d0bbda78d0cf4e85559f56ded44c7eeb778c91528fe88cb3b246f67dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): internal/db/teams.go:18-24 | internal/db/teams.go:32-38 | internal/db/teams.go:43-49 | internal/db/teams.go:54-60 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/db/teams.go:18\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":"internal/db/teams.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bc74021e649f0bf9ef11cbb271cd9e25bea58ed77d2329d0bc1a3ae48a9756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cmd/mekong/deploy.go:247-253 | cmd/mekong/deploy.go:571-576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde36bfecf93ece90aeb8e600b29e131439960163d2aea8e749a9c01ce0a55ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cmd/mekong/domains.go:290-295 | internal/api/handlers/domains.go:712-717 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/domains.go:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: \u0060internal/api/handlers/domains.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"068323c163d31c7ed19adca957a32ecf3f30fa7449545a5bdc4b640b793d052b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/api/handlers/deploy.go:1016-1020 | internal/api/handlers/deploy.go:1072-1078 \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 \u0060internal/api/handlers/deploy.go:1016\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a307f8f828a429f87222cf979ca8d9dc400c3bc285e49018034fde3a9cf2b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/api/handlers/admin.go:90-97 | internal/api/handlers/org.go:125-132 \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":"internal/api/handlers/admin.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56fb2c0957bb985cb0b883464e38a7177f8d920ac9f5efc47615aa4b640719d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/api/handlers/admin.go:126-133 | internal/api/handlers/admin.go:1278-1285 | internal/api/handlers/newsletter.go:236-243 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b37be339add57b7c1b8e63a40e204052384aff8cbf3674db26cf6c6e1a0fbd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): internal/db/domains.go:235-253 | internal/db/domains.go:260-278 | internal/db/domains.go:328-346 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/db/domains.go:235\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":"internal/db/domains.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2175d2e6a5de4965059f0028001d669ba07397874efb18ea0fae9fef1c57b6a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): cmd/mekong/domains.go:34-51 | internal/api/handlers/domains.go:47-64 \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. Check import visibility before settling on that home: \u0060internal/api/handlers/domains.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b785ba43b719708d6668abea31fb71b867bfa42934b61778dedd456233b55355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/api/handlers/billing_bakong.go:337-351 | internal/api/handlers/wallet.go:481-495 \u2014 before extracting anything, compare \u0060internal/api/handlers/billing_bakong.go\u0060 and \u0060internal/api/handlers/wallet.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2c6dd27f1ac8106ab188d1ef411313029a0dfff5049860e2a9ee82e5755abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cmd/mekong/subdomains.go:184-198 | cmd/mekong/subdomains.go:248-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/subdomains.go:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/subdomains.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0bda8b4b62ebfc9a1af1f6800c3096510488c39064abb3fb5244069cee9a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/mekong/localstack.go:464-475 | cmd/mekong/localstack.go:489-501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cmd/mekong/localstack.go:486\u0060 calls \u0060Int\u0060, \u0060String\u0060 and \u0060cmd/mekong/localstack.go:463\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":"cmd/mekong/localstack.go"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a55aac37e5170bc432e0eb12cbdb4b2cb96266763cd801401bf90fc817dc5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/api/handlers/billing_bakong.go:74-85 | internal/api/handlers/wallet.go:137-148 \u2014 before extracting anything, compare \u0060internal/api/handlers/billing_bakong.go\u0060 and \u0060internal/api/handlers/wallet.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/api/handlers/billing_bakong.go:74\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5479b6f2721489c75a09323abacb66f1bb96851538a171bd9ac07fd2e0677961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/cli_device.go:47-56 | internal/api/handlers/cli_device.go:97-107 \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":"internal/api/handlers/cli_device.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54c15d16c35cfd36daa55417674e7a6dc1c8b002ea30916e0cc833a235d9a7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/db/tunnels.go:79-89 | internal/db/tunnels.go:107-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/tunnels.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd1331d67d5c28f73b0eaff55c2da9a1ee5949fcb6323012dc7e24ac8c57b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/db/domains.go:176-186 | internal/db/subdomains.go:123-133 \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 \u0060internal/db/domains.go:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/domains.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"62460132859d79f723578dbafc6b4222686cb2bddd2492a06ac97536d97d9f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/billing_koma.go:144-153 | internal/api/handlers/wallet_koma.go:182-191 \u2014 before extracting anything, compare \u0060internal/api/handlers/billing_koma.go\u0060 and \u0060internal/api/handlers/wallet_koma.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/billing_koma.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4c13660637b467f0e81b73b7d77953ffe15daa9e2b09508290433980c5a6e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/api/handlers/team.go:504-511 | internal/api/handlers/team.go:537-546 \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 \u0060internal/api/handlers/team.go:504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/team.go"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce231dc68dfd8c17d7ade506d3e9a0379761d5fd058babfb268ba928d9109d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/telegrambot/client.go:53-60 | internal/telegrambot/client.go:77-84 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/telegrambot/client.go:53\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":"internal/telegrambot/client.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c983b06a32cace24e424a313eedc95613b630aadcc6105082ae1b89b12ed7565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/auth/jwt.go:37-43 | internal/auth/jwt.go:69-75 \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 \u0060internal/auth/jwt.go:37\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/jwt.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52b52f6d61964f260e8a97b9c9ed48dd2fb9f87cdab340fda791f189c7c9c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/api/handlers/auth.go:172-181 | internal/api/handlers/auth.go:622-631 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060internal/api/handlers/auth.go:172\u0060 is reached only past a guard at line 156 that tests \u0060user.ID\u0060 and leaves the function early, and \u0060internal/api/handlers/auth.go:622\u0060 reads \u0060user.ID\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"302d46ae41e7f883a7495630ef217271e9c1f01328b389747f580245bd771199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/telegrambot/format.go:276-281 | internal/telegrambot/format.go:288-293 \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 \u0060internal/telegrambot/format.go:276\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/telegrambot/format.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa2c3092a0b4e40b89dd0ecd85161414b1851b4d48cceb15961995085293beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cmd/mekong/deploy.go:369-373 | cmd/mekong/deploy.go:423-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/mekong/deploy.go:369\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c941110833949b2bc4b314f1fb4a887e69d78d78c922d6a58bbbb34d2c3c8e12"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/mikesmitty/edkey: Direct dependency \u0060github.com/mikesmitty/edkey\u0060 is required at \u0060v0.0.0-20170222072505-3356ea4e686a\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2017-02-22, 9.7 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/mikesmitty/edkey\u0060 and has not moved this requirement in 9.7 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/mikesmitty/edkey\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d4b4fa7118c42c499a91bc0097e1dbb6ff2d1d2f8c36cb05fe88c3181e4ddd38"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/skip2/go-qrcode: Direct dependency \u0060github.com/skip2/go-qrcode\u0060 is required at \u0060v0.0.0-20200617195104-da1b6568686e\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2020-06-17, 6.4 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/skip2/go-qrcode\u0060 and has not moved this requirement in 6.4 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/skip2/go-qrcode\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a6e5287a202cd286edc04602da28ce33ce3e64a9cb3493c52e680dc4214f8d4a"}},{"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 \u0060mekong-python-sdk/pyproject.toml\u0060 makes this repository a deployable product (line 42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-python-sdk/pyproject.toml"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e9127590343052a372eddecb3416948aaf280c1a663a25405f6208960f26bc"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (32172 LoC, 142 module-visible types across 26 directories) overshoots its size bounds. 1 of 4 build unit(s) (Go, Python, npm) overshoot their size bounds, lowering Project Cohesion to 5.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"go.mod"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39784e8a78933b908507d20b4610b78a7f819ed418525c8adae26ae57410589"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 56 % of calls cross a namespace and only 47 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8557ef0f847d5547ccd84be2cd1d2c3e41c0cc88be757277f50f64efa4e03079"},"properties":{"commitSha":"51d6c4beaa063421ad53197b972892e905163b55"}},{"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":"613343d1b752f35745826fe8d15b453cf20383607c0f92f58d6658c1e8f77558"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3963d9f0883390ef6e4c8eabbc4ed639a70f4e279e5af657cd708e720b9fb41"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b825ccd61f3e37d36bb29162db585d88480d30b9b6fae1dec7bf06539e56333"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6181a13f7c0145b85ece94ece772c0a1492ce40c92c0ad909a1fbe7897195a7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e3852f47300375d115e23f93a005900ba5cb5deaa1d5467b049b4b7413615aa0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b575c4549695a3ba9d973eaa4afbbd80fca3084a55de372796bb66f5167b7867"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c30b6e36505803cadb5ae7dc8286f8a2d4f2b39c3842ba4b93351085f8baa293"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"282f525ece50c838cea188a4fff41995b5438d769afe482fc1490f7dbd341673"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"74650c95bb9e3b2485deaf7259702f590092d5432aa200acccc6f78af1b3ab7d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c099559b5c0e7674374da05f7b004c80cc4f751fd2284b4d78bd7ebbd87d8361"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a57c2044c143e50172546907590b0ba0a5132c53651d87c8365036cf336f3a60"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b71e80acf410714747c139ece3420ff6abaf18038cf64d0827cc5dd6b98b0bea"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20f4513310a104ed70349850c8d23655a44153814d9da24372648e97cf0cc325"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e9a54720e5fdd79cc5d09f09d1f10f1ceb177938582aa3a96644b91ac5d4f6f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac5dd7dfa2a1f587d0df6f1a58e132d64feee92cf0337b0ed700b4da012d758b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e8358a7dfb8a46604bfb829fdf47527bc1de19bfd32cae036e5dc62b6b9c4de7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0df7cb73eb7a01acf34e3702b8db4a4a22cab36c2fa1933879a5fedb285b08d8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1033e81807e44c384290f622819a4e5492a089144453a0c3b625ad5ab24d5cea"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e075ebf92fd807fefb90177e7e20a93a080023d0a4985b125498eeab17648f8"},"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":"a840c98e1d4e0a214fb629a5a8f7881fdee63c2503d6e72d09dbeaaf73898cc5"},"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":"244bef360fb7accec89ef84ded19dfcb5397d9337bcca0e2ac568b4743218784"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"08a28cf390b4be9577164ca328e6f383b73af399604496122af4455f717ff036"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d2c924ab7b511ce5b2125ed0b1d2ba5128913c2611900e3a37d37c4884ecd7e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"810a2d40bcc9a6bafe14d1a21a77a035289f2fd5e68651f31876cd475f1ddb71"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31e15292ee7781495cff3025f3779e23aded0d07be93120b45c65e1d6518c389"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1b966c70d2e5f6ab697ac6d268d54938c60e802d8ea58ea6ff9cb7e10a35f70"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"ed6f7f9c7c66487bff3c29d3a006cbac6d0bba1975272d4d518a58edd59d7a41"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd0aae6fdf06129449a82a6e90e7978d781793a50b15e5001777972cf14c92cd"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"60e51c12e3490359f01f8cc76d6edc274287dc727633f543076b5287941e8d63"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c3a5a02ab33465a9780e4bb1bbad8e8d47e6072ea349245ba415ecf95181fa5"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c472c66aac746f2ad3ebc54f69e1fd141f3f393e18b1cadd294e21ff4e27b304"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2faea3e810da1333f641ac7ab3c75a124fc77a7f74da0cdcf149e1ac57f28b1"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"155aa0c2823e49b3de3428347a00ea329a3941299f04fc2e380b1e2954bc75f6"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"33a7b976b2c648928a96e359f968e9cde3ab160b6b98ddcaf861124d47d58528"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"03ce2c209d8549ade371497071e636d514b75381d7ecd8b54f96992f29f86a29"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"1f40aee43423eb1ad017f2ebfca6e13bc7e5ffa378355cbeb1db2d425874d3ec"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"3acd680eaa37a7db6ed753fa58f752a8b321791bd057fd6c6977b2b527108eca"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"a950a03fe6d3d6a4d490d7e508b2599ddb95936be3f721c1c20c03872a4c47ea"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"2b8b753c7179da29c60b538ece199fc1f689739575098dca1a17eaa345e32849"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"8ee4c127148fec66715c88884de740601228852872b2b1bb8b19a42103063b34"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d519c1ccfb2f95019753def3e87e93ffca483518aa9417965b24efeb5b79091"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d2ec10447937b14c0038809f48c6618d8038b71d5c3161310ed6a68e9fe1867"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4911afc2e5386591eb36523999c1d622f92b8aae9c965b305a47380d6e6df731"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"768aa899243ce5b5155b728526b17174aadb8d4c3cadc166775a754665d6c90d"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b46c975daa76e4829a2534019820e8c19e9a58e870143d7f5a64ad498df84de"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16c5ae5fa2c00d23c578598818929fc102f6be9bceb16ed136bf738f716aa6b0"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5073ffab8a837fdd51c33c89444662412e3949869bfd13be32e8e6ccf50c88f0"},"taxa":[{"id":"CWE-400","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":"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":"448a38262a4da3db80e9c721502a4349363ae47e9bd8dc2990a8943736fb1804"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bd09c607c228d145bf120bafd005bb5012386be9f8d70ddb5e06aa1f5f5ed2b5"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e5cef395bf354aa541305fb363aa499f0abd9adc51c822759906b80775a6836"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9cf92b43d817cf8bc3b1301ef40b669027b7a27ae5dce10692a41da5e815dfd"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b46f3fab88413d33b1360baed47b668ad0c6cd92eaf09331447ee1639540aa36"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d0373fed7b4755887d89d47752d3620f9a997335a090236eee6b7e2ad54c14f"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"954163138752a688a143d8fc1d69c9baad84153259602b25ee17c53b49d8bc0e"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0492f7a4d1c904836a2807e46235d71482ae2c72585e5abd05b90d36145adffa"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d4603618866cc2636e49234f47d4f41ddeac70f2ddbfc201af1b6294e82a32ba"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"f9420ecbced7065c6a478b5ff3986bac2afffbbe928c79cd5725b52be30fc2c6"},"taxa":[{"id":"CWE-322","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9dd4893ef652eb13f1d1a2182fc643718d4f040cbf45193593eca4ac88b5888e"},"taxa":[{"id":"CWE-322","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d034055837afcb09cc7236ad326656c87fc21d8f84534167b107545435c6ecc4"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"853657c16ef68d0f3e57703e7e80c5172952597faa8e8fd3a83e588a5f74da9d"},"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":"5a9cc5cd9134e27489d16a6a116a9ddfa7b112912c1e8fc1522adaec93c4dc6b"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9a1280aa8471e2f12e9b913cba504be8b413193b6ac4e53391d6f4a4ba8fc0d4"},"taxa":[{"id":"CWE-939","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":"63493d333aafd6f3909103266edad906c0696428467503688aac990a50aff1ec"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","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":"8e2c38ac86a572f8aaa6c724ff8ffb9a57b839fbf8ec6d98882a5a89de096479"},"properties":{"dependency":{"package":"github.com/jackc/pgx/v5","version":"5.8.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-4771","GO-2026-4772","GO-2026-5004"],"severity":"critical","fixedVersion":"5.9.0","relation":"direct","declaredRange":"5.8.0","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"58520b7977a5873bc333ffd7e5f56dc442b6df40404b9a2bc0254d7376d652c7"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.45.0","advisory":"[GHSA redacted]","aliases":["[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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-5005","GO-2026-5006","GO-2026-5013","GO-2026-5014","GO-2026-5015","GO-2026-5016","GO-2026-5017","GO-2026-5018","GO-2026-5019","GO-2026-5020","GO-2026-5021","GO-2026-5023","GO-2026-5033","GO-2026-5932","GO-2026-6303","GO-2026-6354","GO-2026-6355"],"severity":"critical","fixedVersion":"0.52.0","relation":"direct","declaredRange":"0.45.0","reachability":{"kind":"production","file":"cmd/mekong/main.go","line":912,"symbol":"ssh.Dial"}}}},{"ruleId":"D30","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":"99d2ace12a3d3540a3dc7a7ca425bb32416d51c9f20303adb663ade78a0c5088"},"properties":{"dependency":{"package":"@azure/msal-node","version":"5.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"7.1.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"0af57747f68b5fc5474aad20aef09d1708fa813dfda3c150a6e14d41f31c9546"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.1.16","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"fc43f007b6be80c301708dbcdea929e6f4894442f1eb2a2717d437f259979d7e"},"properties":{"dependency":{"package":"form-data","version":"4.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.0.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"5c83757876dcd33e41c315e146145ee0f4c05e900ba78568d1531c6b27e92f5e"},"properties":{"dependency":{"package":"linkify-it","version":"3.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"5.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"e1a5cf7bb8adaa3ebd8eca1c0657891c99d8e0cf74f7983cc10f598d48374434"},"properties":{"dependency":{"package":"markdown-it","version":"12.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"14.3.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"1727caa693b55dedda39718c201575a961f182fbf2c39711fe66d0ee2671a9c7"},"properties":{"dependency":{"package":"tmp","version":"0.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"0.2.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"1916aee7367a624e2c39be49ba096922e6238610cf3fd4df07693afeaf7c0b73"},"properties":{"dependency":{"package":"undici","version":"7.24.5","advisory":"[GHSA redacted]","aliases":["[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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"7.30.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"4d09a6653da5e3556ab56101b1dd6397d651a9f038d009c037e6e4f96c16c806"},"properties":{"dependency":{"package":"stdlib","version":"1.24.5","advisory":"GO-2025-3849","aliases":["BIT-golang-2025-47906","BIT-golang-2025-47907","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]","[CVE redacted]","GO-2025-3956","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"],"severity":"medium","fixedVersion":"1.24.6","relation":"direct","declaredRange":"1.24.5","reachability":{"kind":"production","file":"cmd/apibench/main.go","line":286,"symbol":"http.NewRequestWithContext"}}}},{"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":"362d19fbc20680c130f6d3f829465778e97203407075f4ceb76a4cf0cc41a027"},"properties":{"dependency":{"package":"golang.org/x/sys","version":"0.41.0","advisory":"GO-2026-5024","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"0.44.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"76d999f7f0da1c7805a61d7a77ca6e9d78cdf7e7d953cafe7b73d81759ae1a99"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.31.0","advisory":"GO-2026-5970","aliases":["[CVE redacted]","[CVE redacted]","GO-2026-6629"],"severity":"medium","fixedVersion":"0.39.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"8f711fc9bdd71716edba8fca53c25f6d5cfa2f2b5ccc91e893d2ce7f817c12d2"},"properties":{"dependency":{"package":"qs","version":"6.15.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"6.16.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"8ee436502da1651eb8eef6feb2fd92f963baa47dff3a66427cf385bfc53a5dc7"},"properties":{"dependency":{"package":"uuid","version":"8.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"severity":"medium","fixedVersion":"11.1.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95817003a2371334ef921b09c5318f81882b097c63b98386b307d7d37c0acf6e"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"323c587a38738e08d0aa1f51e4027127db66e6417dc3bc9ad754b413bee8c8f5"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e899263613b288238ab0a4dff5e36e7c6e42b9501ad1a24f0ec0ce75b20f520"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"108c2a4d2018d2f855082875cf6e41a58605ddc3656c8a6134f51830bed2919d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0eb0a3b1ee91e5f909e0714c7bfb0c7d825788fc2414437ae0b98e3c6e91282c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"926693c94c5dfc4af2ee89189df006894cc5ab3edc02bce79645867b6eacf3a4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c93ac0d6998302de71d734546baa8f80b6c77d09e246fa0dc3829387f702fa9"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82c0170c785ed8b557796a9a1ab54f565a80f4e1e03dfbf358cb1ec05a819479"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"7f679f2ac538ce453ba7dc2ee2252341c770b7d43f6e2e8ca3e18cd7014ab945"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D32","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":"7603632f420882f2e2962e3606d21629ad68b25a5514c775e75a6eb727c63c00"}},{"ruleId":"D32","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":"543c03aecaf0a1fa00d7a949f39800eeb5555b8973690de379c72a95b43dc5d0"}},{"ruleId":"D32","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":"4e04e7ea4c2870496250d6e43d4d8e63ee0b4354bd9e8aa2690636fe1fe26356"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25c67546e61034a911e061f475b510845b139a400f8bde81e3f175b66aafaf0a"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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":"c5928b81075799790cb18fed2980a6b6e8aa5072772041c9951633efe8eb3542"},"taxa":[{"id":"CICD-SEC-1","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.html"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a87e2395305efbef5f4148e5feabf809830f05888077c9ee97ad240f74b72d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.html"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdae14d9f4ec00ff4031e5826a17698ad7549bf36742a91c7e7043542e9af31f"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1bb35818de2a9e66f9bfa1ffa14a90ab0fe6854769328fb43bfae8e4f7889b"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7035ae7cb169f2ebce6e2172d1918976dbed725b64ec7fd3334afa3e8e99b3a8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinner\u0060 moves (\u0060animation: spin 0.8s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.html"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec762e3aae3c82107f38de0262059b50c91f763be274bed174c1646ecd3d6c8c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.3:1): \u0060.success-btn\u0060 sets color: #ffffff on background-color: #22c55e \u2014 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.html"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6d953eb0e53fc8536d0af9f0e82ce65cd6f534189872ced8ec5b070a7633bf"}},{"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/4 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060mekong-node-sdk\u0060, \u0060mekong-python-sdk\u0060, \u0060mekong-vscode-extension\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add gosec / govulncheck (or golangci-lint) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 7 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060mekong-node-sdk/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/package.json"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"277af5b56a1e40e04789a8a2c0bf05aafb01902ad45d56a7137d90f58b5ab410"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.DefaultClient\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1cf87a113323c3912f71ac942ccf229b8af8efc9e9eeed9c50827134ebe05ff"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.DefaultClient\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4988022592ee8598f5cc9fb71d498969d87712281c9fd886d26a53b3c659421f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.DefaultClient\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cf259016d52c94a7d4a9cbb64677f7738b970304c758de59c38c98625d1fa1"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.PostForm(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7073a5e15d85fa12130d64d812af364e76f6371e765553640a86bc0ef5120319"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.DefaultClient\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad592aa4cdfd182150c47f0c2dc4f63b7f36420b8603bf80a0c00f221f06779"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060injectNode\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34db8316bf8f60c2531e74e6e85937314b543ab76005dc3fc8119dab421d07a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execSync\u0060 in \u0060login\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a740f1243eb24d54709510e46f03d156556121432c4eb839a6224a62ab98249a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060login\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57ea6e171a54a4afbe724bd0eb5623818c290bdac9aa00f73001b7c23cf1b14"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060login\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"659d2f3e31223723fbcf4d2bd69bfeb1908ab6e02b5b7c722d3c2e51a762ffc8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060cp.execSync\u0060 in \u0060findMekong\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49e106bb41a66520c1bbe91aef37acc6fe4e12ae2d9b997386ce020ad93f046"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060findMekong\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5be8b86b246f654a7ea78ac41596d1b42bb002f31f65abddca96f9ecb361d4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060findMekong\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d33f6217e76487981d9a4a376941b1e8aaa2a549cc7aedfb8b9502aba78325"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060pollOnce\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"0416dbfd891503edf9b8e410e90ed9564700588d55b32368523a5c3100e6b1b9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060pollOnce\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c934b93e21deaff66a070aee63875a68d45aeedeca4d9798d1a68c35fe5166"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060pollOnce\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9babe23f140c302b1bae08f7de82c8e9675170d4ed12fcfd024fdbfc1546b5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.unlinkSync\u0060 in \u0060callback to webview.onDidReceiveMessage\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"5585645c41fe192d72f9b7c0ad491b5c58051e549ae93c77baa016722d013eb1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060commands.registerCommand(\u0022mekong.startLiveServer\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cbad4bab6ebd7d65de760a5cb739edb4a29eb9146c9e4359220aaa4b19930e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060firstMdIn\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec77ad94a2636af5a2d6d39a5f982e889fbfc23d4fdf233f023299e7bdbe0c7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060callback to entries.find\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0eae6a3250bfaa916bc0e0248a4a9edc12e63c5d0a984b7a71e8e88b9877652"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64646a5322983bdc186e035ef36383306030935464803db652d9412c9305141"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40e3f4d1f88095069ebf7cff0e1d2935939ef38919f29ef46096895989787c4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1be6f58eacba64231fe4f1716d73f5539441198ed4d7bdfc7f9d2e2acca3bd2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb33a8d7b0cda1e277e78aef76a78a21c63c029aac5af0d4679153ac249c6f6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e001815556919cb948a72d5e481a24640ceba76a505442501a0cab1f9412bb9d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"84eb4271eed2aaa6383c4a7702f9a7e58378f9f90aa6febf88e4fd8d6c9d0f39"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d6f1415c7acfb5365a30e945d25600d574127bb3fa053ff133f05d5a154495"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"133a895d6f23c601b8560e0c4428fbece98342a3db13f0def26bd420d0ad560e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"01bda9468066181b509c496b534fd16fa62d3fefbf29f4e3ade588befcd2b840"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060callback to http.createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb16433bcb43315b4e59ee16a0cacbcd3678f1e337a280b4bdfc3430c719c92"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 2 typed \u00B7 9 plain JS \u2014 the untyped files are mekong-node-sdk/lib/detect-port.js, mekong-node-sdk/lib/find-mekong.js, mekong-node-sdk/lib/init.js, mekong-node-sdk/lib/runner.js, mekong-node-sdk/lib/sdk.js, mekong-node-sdk/lib/wait-for-port.js (\u002B3 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): mekong-node-sdk/lib/init.js:263 \u00B7 mekong-node-sdk/lib/init.js:329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec7eba1a0bf9ac7c762b10e72d15c2e4ae9931d821eae62cccda9374cc4bd83"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): mekong-vscode-extension/media/webview.js:414 \u00B7 mekong-vscode-extension/media/webview.js:426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffacb68aece1045e78ebd1e25cc6d44fb2fef323373874341d4614e77594114f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): mekong-node-sdk/lib/init.js:322 \u00B7 mekong-node-sdk/lib/init.js:338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a10655807e0c65c1699affeebdb6fe9b673255c3cf05a5076907cf233f960d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): mekong-node-sdk/lib/wait-for-port.js:27 \u00B7 mekong-node-sdk/lib/wait-for-port.js:59 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/wait-for-port.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb39768ad8a924f2d175ef824a4feef86a25f6e19b69ad0f3fa435379395777"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): mekong-vscode-extension/src/liveServer.ts:122 \u00B7 mekong-vscode-extension/src/liveServer.ts:163 \u00B7 mekong-vscode-extension/src/liveServer.ts:174 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ca57d260738254eb4763f0752e50078ba593342cfdb945abda4827060ecf17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): mekong-vscode-extension/src/liveServer.ts:168 \u00B7 mekong-vscode-extension/src/liveServer.ts:179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6794c22d78be492ff8cdbba067d0da3819fa6e6d987906052510ad112169c63a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): mekong-node-sdk/lib/sdk.js:67 \u00B7 mekong-node-sdk/lib/sdk.js:87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb820d680fa67c1bf6fe5cecc3637c29716e395b7d8fc78f9c7e5296556014e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): mekong-vscode-extension/src/extension.ts:1332 \u00B7 mekong-vscode-extension/src/extension.ts:1341 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ab870d4ab5706172df6e24f1ef4301f2f50c93f905ffb8398693f1c47b6b1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): mekong-vscode-extension/media/webview.js:273 \u00B7 mekong-vscode-extension/media/webview.js:283 \u00B7 mekong-vscode-extension/media/webview.js:293 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"26aff77cc265d7665873b648b001eca69b61bfd889764bde5edb58a0a0ebe292"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): mekong-node-sdk/lib/init.js:316 \u00B7 mekong-node-sdk/lib/init.js:327 \u00B7 mekong-node-sdk/lib/init.js:343 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1710a0f2bb31daa4f9084024b1e39ee66b017474c1d8587d06c004c93c9c8d79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): mekong-vscode-extension/src/extension.ts:71 \u00B7 mekong-vscode-extension/src/extension.ts:82 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1f2f03c8c5c66f9b5685a7ce88b9299e9b840a6d9c577a1fd320dc0b50b0d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 52, cognitive 43): (anonymous) has cyclomatic complexity 52 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf43a6eff956e0a74a67e26ddaaba2a6855c2df59334228effdafbfdfc5d112"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMarkdown (cyclomatic 36, cognitive 50): renderMarkdown has cyclomatic complexity 36 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"870ec57d9f0fbace80c7f60295e607bb6f228211d2f938437172559dce3cbce6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 30, cognitive 45): (anonymous) has cyclomatic complexity 30 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd646c7287528cda9ba9a543efa6d33c410d9ea0abcab89ea6454a5d1d9bb226"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderLive (cyclomatic 28, cognitive 36): renderLive has cyclomatic complexity 28 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f291564c7f9a8c82d1fb81f56a7c6e79da87e165277ed5f533f5211b4b573f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 34): (anonymous) has cyclomatic complexity 27 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b2a575884618e2e5b7db4ac3d916683fd61fb6f751bf1ba3d8203cd835d1a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectPython (cyclomatic 19, cognitive 34): detectPython has cyclomatic complexity 19 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2885850dff3aae79142d4376d8f18593da0526675210a8d95674463b998f3188"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 23): (anonymous) has cyclomatic complexity 19 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9bfed18c1b2516298f912c5dc605e979bea2371f4ddfe5331d4709b36e97ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 22): (anonymous) has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e03bb2f11d10ff0e28bec1f8ea45f7b3936c1c402170185fb0bf6ecc4b06b88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMainStatus (cyclomatic 15, cognitive 10): renderMainStatus has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d953d28f8974ac6e686f9968380c1673e8d5359ee1982bb77c3ca71361eccdee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findMekong (cyclomatic 14, cognitive 22): findMekong has cyclomatic complexity 14 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/find-mekong.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f31bfa122903d09fa63df5b899efcbcb87a91c3d82ec69d3014bc3519ed4147"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTunnel (cyclomatic 14, cognitive 13): renderTunnel has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8490493226d8d7d164bf07129e48886cafb04b35566012386cea488fc571fc69"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectNode (cyclomatic 12, cognitive 16): detectNode has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71ebfeb7bbc3dcf90fc75de6482a971861baea866373e1b1c93469ee386642a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function login (cyclomatic 11, cognitive 12): login has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f8d2fc393db8ed4552a0f1b864b7f7593d90eef2ce226ba60e34a5c3d62fcc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runInit (cyclomatic 11, cognitive 11): runInit has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e17be0b245b2e6253988ca053e57f6813a1ea51c3beff17a5ba2e9113a7b59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findMekong (cyclomatic 11, cognitive 11): findMekong has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"182c3eb41b040b2c5660cb825f891b759696db950f826bffce3b65da25beeb84"}},{"ruleId":"R3","level":"warning","message":{"text":"mekong-vscode-extension/src/extension.ts: 1244 lines of code: mekong-vscode-extension/src/extension.ts has 1244 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16658e6f78c2ef4257c2e6c1e4c6cda17e255159e839e1c92a1667f6fe32a4fb"}},{"ruleId":"R3","level":"warning","message":{"text":"mekong-vscode-extension/media/webview.js: 567 lines of code: mekong-vscode-extension/media/webview.js has 567 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4548182ceb6a3d061b27bfa96c69aab11306695fa81cf6bff01578c651e483"}},{"ruleId":"R3","level":"warning","message":{"text":"mekong-vscode-extension/src/liveServer.ts: 450 lines of code: mekong-vscode-extension/src/liveServer.ts has 450 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f40194490f7ae1363aa782653bf5b2ad505eebfb9e339f771e613ec61c8b117"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4930bd88aaa4b3672cbb7fc3269a9365e9237c71b93dc0ecc3493e9f36868d4c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05c920fe5ddb44dd4833cf4414e19e90902a83d685ca72eff7a2100ecc5caa8"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"352214b108c0450da963fe24bd0bdee380a3ddf62859c34aa260aadd0cabc7aa"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb748544465e1b7f9f8288f44462e04fb09769269e71e9a4c1349f54c5ba1f4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/runner.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6abd4f49d3e0758a52a63d41eca712f1337df6280e48617f1d8317dbe0baae0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/wait-for-port.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"724f9ff790235c62f9f494eef334f2a1acd91365c51ca8d5774f7e3656e376ae"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/detect-port.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a02b74c5a5554d0ba6e668a992d538355804c853e7f7b9d5c7bb7943d1d2a94"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~651 LoC): no import path from any entry point (4 application, 0 tooling, 2 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/media/webview.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ce8bc216fc1ccf03f930e365e6f022268746a6b6dd95d43f8301d1ed346f65"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~410 LoC): no import path from any entry point (4 application, 0 tooling, 2 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/init.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0613476b583d5607a34313481f9c67a419db969958e79054695b684b466ef658"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~167 LoC): no import path from any entry point (4 application, 0 tooling, 2 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/runner.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f21f41834502a177274c51e1dab987477796e7f459387280f3b4e6c18f09cc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~75 LoC): no import path from any entry point (4 application, 0 tooling, 2 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (mekong-node-sdk/lib/runner.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/wait-for-port.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec95fdb91bbe596f0909f5b77c27539e540cd9fae1cbb8d7d7e3760734a88f2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~59 LoC): no import path from any entry point (4 application, 0 tooling, 2 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/detect-port.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2c721d7b60f8846464c185fc4f8967847fb4bdb49ec75d6bef21641557b858"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027WEB_BASE\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac503c3b955e78178eaa614a0e1bf5f3414f138ee0065dd7d5402095550f66f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(c \u003E= \u0027a\u0027 \u0026\u0026 c \u003C= \u0027z\u0027) || (c \u003E= \u00270\u0027 \u0026\u0026 c \u003C= \u00279\u0027) || c == \u0027-\u0027\u0060 appears character-identically in 5 files \u2014 cmd/mekong/subdomains.go, internal/api/handlers/deploy.go, internal/api/handlers/subdomain.go, internal/customdomain/dns.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":"cmd/mekong/subdomains.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b574618a2ea2f2e795aab96a3b1600aa2f942cf17c4643396899221c4bd7a48"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, pgx.ErrNoRows)\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/org.go, internal/api/handlers/telegram.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":"internal/api/handlers/org.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e0d66a57aa03d399bcc243127989bf4b1e0b24db1f9517e67f8eb7c179b55e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || user == nil || strings.TrimSpace(user.Email) == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/admin.go, internal/api/handlers/org.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":"internal/api/handlers/admin.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5679a53c6dc93eb098f3fed84cf312702d99f13e2ce1e1d1fe507fd224a6b404"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060order.Mode == \u0022koma_qr\u0022 \u0026\u0026 order.Status == \u0022pending\u0022\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/billing_bakong.go, internal/api/handlers/wallet.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":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3382fe1c96fcedc54164135a0e7c7cc511a9f1e6469755487d5dd3875d2882a5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060order.ProviderMD5 == nil || order.ProviderPollToken == nil\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/billing_bakong.go, internal/api/handlers/wallet.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":"internal/api/handlers/billing_bakong.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"599830531e28727482edb64ad63587e546194b54dbd36c710d8878bfd4fd1ced"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.StatusCode \u003C 200 || res.StatusCode \u003E= 300\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/billing_koma.go, internal/api/handlers/wallet_koma.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":"internal/api/handlers/billing_koma.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"696b931af492fa9d946e71d182299651281d9ad163a98f05b4c67873ab8a3283"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scope.IsTeam() \u0026\u0026 !claims.IsAdmin \u0026\u0026 !scope.CanManage()\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/domains.go, internal/api/handlers/subdomain.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":"internal/api/handlers/domains.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf31b776cb2df254d6bce8370ddc1642cf780515ab3a3fcc68184c594565768"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scope.IsTeam() \u0026\u0026 !user.IsAdmin \u0026\u0026 !scope.CanManage()\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/domains.go, internal/api/handlers/subdomain.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":"internal/api/handlers/domains.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0fd7526931a3e694bc8957713afeb8dd1b4020e030355aa80edcfbd99d8b71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(err.Error(), \u0022unique\u0022) || strings.Contains(err.Error(), \u0022duplicate\u0022)\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/domains.go, internal/api/handlers/subdomain.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":"internal/api/handlers/domains.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"71559978f4710ee72c6cbb46669f6ecff7925d2f6742ece7cbc5152631e71d4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.EqualFold(r.URL.Query().Get(\u0022stream\u0022), \u0022sse\u0022) || r.URL.Query().Get(\u0022follow\u0022) == \u0022true\u0022\u0060 appears character-identically in 2 files \u2014 internal/api/handlers/tunnels.go, internal/proxy/stats.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":"internal/api/handlers/tunnels.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"94976486bdef773aaf0439f84e3eecc33c4ad70da3ab40ee9a220bb144f39b79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060/\\.md$/i.test(e) \u0026\u0026 fs.statSync(path.join(dir, e)).isFile()\u0060 appears character-identically in 2 files \u2014 mekong-vscode-extension/src/extension.ts, mekong-vscode-extension/src/liveServer.ts. 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":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d4efaa9f7e578bac760856d413ee862899df886133f712ecc809ac25f4ca3a"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context or an AbortSignal: Only 13/43 functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http; net/http, net.Dial) accept a context.Context or an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a \u0060signal\u0060 (Go: \u0060ctx context.Context\u0060) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"577196fe89725f9b0e6c2faf89eceb8eb245919bd44e4439e0b0d649c1ee1c53"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchUserInfo: \u0060fetchUserInfo\u0060 awaits \u0060https.request(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060https.request(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"707265e9325dc2d0306c40dfcd6b78b28ac6270fc2f92e9a5d19ba0bcc71c1f4"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: New: \u0060New\u0060 calls \u0060net.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tunnel/tunnel.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad495caf8a7cb01069988d016ef4037fa2ff71e90e1ebca00b9ebc0c7b0d876"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: detectCloud: \u0060detectCloud\u0060 calls \u0060gonet.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/system/monitor.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"087e228b87addcc9ee582733a7d4bedb1171075a1d68300b51981a1ee008e091"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: sendResend: \u0060sendResend\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mailer/mailer.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e9c23aa5952e4ad476eb71e638a028fc1810005301d914318adffbef7eda08"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: sendSMTP: \u0060sendSMTP\u0060 calls \u0060net.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mailer/mailer.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5152c8c18abe96a784b52d345058e47da28a25fb3e24ec5e57e12dceea157733"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: GetGitHubAccessToken: \u0060GetGitHubAccessToken\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"229615126ae7337532984fabc905d9096d909002fc7ed7cf91b76b5c0f916b4d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: GetGitHubUser: \u0060GetGitHubUser\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa1947b561a99f3a77b4f8867f60a2de6b2660f3903d32549dbb7b669ce540"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: getGitHubPrimaryEmail: \u0060getGitHubPrimaryEmail\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24cbf54a1e9d23b54994ad57eed2b045fe08538b0e899d59a7c51143c1d989d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: GetGoogleAccessToken: \u0060GetGoogleAccessToken\u0060 calls \u0060http.PostForm(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6c49b5a1cb54d10aa1374bbd6ff86840769656e5b4093e499419836fd8a8d5"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: GetGoogleUser: \u0060GetGoogleUser\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/oauth.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49b5b14818ae0bc6533f6cfe638e69a377860538e9c6cf15164034f1899ac9d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: deployProxyToLocal: \u0060deployProxyToLocal\u0060 calls \u0060net.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a317ddfafb0ebcef175d6158031ef4947294f4bac990d50b495b35f3f7ccb88"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: apiPost: \u0060apiPost\u0060 calls \u0060http.Post(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7100fa45bbf8ccb5fbd9e7c7f6d54427db8559890bf139877fcdceaefd6c2548"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: apiGet: \u0060apiGet\u0060 calls \u0060http.Get(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"377c65ab201ef2c7f05dbfc5e4812c9cff917b6a25a5fffc6b56dc38eea679c9"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: finishLogin: \u0060finishLogin\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"55220988f69e28d225cd612513cac75e2dd3f77ab7b575eae02f37b6737c3c8a"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runWhoami: \u0060runWhoami\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ca874bc538b0ef29d3abe10266dd8f7c0fff102ce67d2b928a824fb4988414"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployUpload: \u0060runDeployUpload\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8699aa785f027c432fa34b2a87711e067714c084bc2c61b3f611fec5d1adf8"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployStop: \u0060runDeployStop\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee83407d9cbcb1221bcb1d0c5e2a8024e3a6cfa71d94b5e2fbd86c8c17ebb30"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployDelete: \u0060runDeployDelete\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"324b1b50fe062d4f917b449a74a9626bba98047188c0bf4cc1c83a9bf45d2852"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployLogs: \u0060runDeployLogs\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2edfa097ae6444fa77c45ad9d225d0b2ec53b56f5b8fe1e36e23433dea24cb3"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: fetchDeployList: \u0060fetchDeployList\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d596aaed3eb7dabb5a2f2c5837f4e93af82701bddb0425d853cc5c0788168fcd"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployRedeploy: \u0060runDeployRedeploy\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"680daa41450eb7c444da46fef30b44007a9fd7d2ca06c7551a3ac23b10747cd9"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployOpen: \u0060runDeployOpen\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c8a114fce19621634587feea7ab213392723625d63672775430003cddf19ff"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployQuota: \u0060runDeployQuota\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"53af16ca6a136e19dd48ee1fcde3be21333d6fe7cd6fd423505224d770d9834e"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: runDeployInfo: \u0060runDeployInfo\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"172ac13fc329120221b46d29ed95e86ead64802a0b9fda9e0e9cfc05919008a6"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: connect: \u0060connect\u0060 calls \u0060net.Dial(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6aa5c8d5f37a28bd17b5e26f85f8acdd3b4fee3e3d1247c270c002db1f460e1"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: testSSHPort: \u0060testSSHPort\u0060 calls \u0060net.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/selftest.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"59717269cc50125dca2b83ecdc2b0797b8f053a75e2b51e114f5237181a2e4e6"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: testAuthToken: \u0060testAuthToken\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/selftest.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bc015c93d2a5060e120683d906e0219b33a385adb766f03c2ba9b9c92b860d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: testWhoami: \u0060testWhoami\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/selftest.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c516634b60d05416d8e1a80ddbebccd6b6ce69a45faf8a82a43de666c8da9cdb"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: apiRequest: \u0060apiRequest\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/subdomains.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79664108e42225613cdc62b11e1080861f23605fa27a26bd97b1e3d7fe0e498"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: doJSON: \u0060doJSON\u0060 calls \u0060http.NewRequestWithContext(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/apibench/main.go"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2682edaff64ac578a1107fa9a6887acb1507b2600053a741a42523c943dbd1a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff252592dbbaceace6062981654299b6fce439831588543062dfbc1b3b85734"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75d5414956c763d414c73a345bcb902431084866cb5a31f0dcdd76e0ec8bebb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4623b55030dc2b4bfa8f933340420c102d904b50e04a3f0d49e0bb5e754dee8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bcf6a06f9dc032ee508ac96aac8eb9a52daa2158f9edab7ed2fb6c70d4d3cd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8f54454808cbcc8654e5f48ffea724185f1df3aff8ac000e8ac03cd477672d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef6d77e9c0fdc1a432988b66433aaee566228fa4598033ff6a8a86f59467801"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"78daf146fafa339205c1b9c489a73fc569dc88c183fe0237ca312770dd8bd0d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"44815b6da19e5254ea8dcfa55166cf8731952955f9aa965937db875ba4c4f524"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"mekong-python-sdk/src/mekong_tunnel/sdk.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fcf40366328d9a38e2875db22e4b318207a80629cb13adc31590ab76ddc175"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"mekong-python-sdk/src/mekong_tunnel/sdk.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e88fea12c0cd9ef8e81dce85aeaa8a883b08e9b6ded8b0a0742fc947ab0fc40"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-python-sdk/src/mekong_tunnel/sdk.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"09569224549acb658fbbdc1c574d0fd46acd62936891c198f02dd15e59da2b71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-python-sdk/src/mekong_tunnel/sdk.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f0a0f867e8e24b7a6177d1f8044a901c1c6d554475ee67b81fd039a8c0e68e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/find-mekong.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d613f73228ceb3f880981aa362a46ab98b7b42caaf59fcb0a27b56aeeb56c1b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb279d84d828cb9ae03289428c37e8c445b335306acaa819643f6d93ac4ea7c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-node-sdk/lib/sdk.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfea2b58442731e2482478bf8b04cdbdefc37ef2652c28661d9222c15be83c9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 2048))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/telegrambot/service.go"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"65082a1d9fc22ee937d71ba779d1ac2cd436da386a2a4493195492315c64510a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/system/monitor.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0d6b2078ba6332721b20f5858516ce274e08b69100a603ce38cc4baaaec1aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/redisx/client.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a45ea705a780e0569fe790f18eef54a8c6b6764fec475b1fd9de79b1083b71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(msg.Payload), \u0026env); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/redisx/notifications.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f3bfc022160c16e5df80024e3b6bb9aeefd8fea7eba8bad48e4c83e53bf753"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/api_validator.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6133533b19061ad98a8485671e8414906bddb34b70f9a57917d1cec1d204043"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060backendBytes, _ = copyWithLimits(backendConn, clientConn, config.MaxWebSocketTransfer, config.WebSocketIdleTimeout)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060backendBytes\u0060 as if the call succeeded. When \u0060copyWithLimits\u0060 fails, \u0060backendBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060backendBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d897b4ada017535344e2dcdefe3ace5e00fe7ccd577685ceae1e0d23eda473a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060clientBytes, _ = copyWithLimits(clientConn, backendConn, config.MaxWebSocketTransfer, config.WebSocketIdleTimeout)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060clientBytes\u0060 as if the call succeeded. When \u0060copyWithLimits\u0060 fails, \u0060clientBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060clientBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c74b6054ca379aaeb856a6a7077a6cc64c8bb9dcf5e2e1feb12c5cf4e027ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"58317b0b247d105aa78de528ec5b61988699769f51e878857e3dfba762a41f5f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe8cdd94595b6c43189222133efe3dd0d046affb6575de10aa5eb9ffee5c1f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060msg, _ := io.ReadAll(io.LimitReader(resp.Body, 2048))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060msg\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060msg\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060msg\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/proxy.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada19f8d911968d744034e8e0891bf444d34ba1d7bd655769affa6f13621d388"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee51284354bdc0f661faa2e89ba9f995bb4aa086297be5ec21a53678d3a04f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1649a16d92688daca4a60da43785a82ea4ffdd890dbe4ae643a141529807f75"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060reserved, _ := s.tokenValidator.GetFirstReservedSubdomain(ctx, userID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060reserved\u0060 as if the call succeeded. When \u0060s.tokenValidator.GetFirstReservedSubdomain\u0060 fails, \u0060reserved\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060reserved\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6210d7729a219b6b1d9ab98ac34bd4a90b4c088e2b29b7d66da1fedb7274218b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/ssh.go"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e56b340e6e0466bc98adbfbf1cc1f9f2213c6de0250d22b1503e04fd3ba56bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/stats.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcedf6c1e3b4d65051b74b69e1a795a51420c741a7b898f8fce67f5601a1981"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/stats.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9086e63e7c93f1a36772b53fb007d1ac1fd420e3a2637969d94eaf06e0a5a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(n)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/notify/notify.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2595535dea8354297c10a629d3580d9f0d9ec7ae529ea2165b27af6d3cb894"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mdserve/mdserve.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2473780cb50135ec458d4091017473d2f58231460fdb60b7fa0f46e355918fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060entries, _ := os.ReadDir(dir)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060entries\u0060 as if the call succeeded. When \u0060os.ReadDir\u0060 fails, \u0060entries\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060entries\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mdserve/mdserve.go"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f2ec00b9d705738c890d731e1ac981baacb81bef2823f801f560b5a295a4d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rel, _ := filepath.Rel(rootClean, filepath.Join(dir, e.Name()))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rel\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060rel\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rel\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mdserve/mdserve.go"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c21821e4e8eb4464d6a259cc580f7725c57e4b98b4b241593742a237a00426"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060respBody, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060respBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060respBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060respBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mailer/mailer.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f4abb1d2cea6d3e411364836b333be069bbfef9a816caa02f68b6617b911f2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/db.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96fc8ce3e586ff4a9f3dd99ccc41d78acc65da3abf63766c95ce950445f3ad2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/db.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e351e13e78260095ee8a0024c0071625395c6e08edc7071c87f9ace0f15b578"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/subdomains.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf87dc6382513f533ad19b48eb3d9b873454d2779d6109fd91226c8145a23c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060hdrs, _ := json.Marshal(rule.CustomHeaders)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060hdrs\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060hdrs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060hdrs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/subdomains.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"95aa36044c2fd1a79d639cd9926b2489069674be413cc2773c9f61929aedb8a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/db/tokens.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ef875959375b088ef6ca1f6337b37507004e4c7728c403b36d37b0e58a4d62"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/customdomain/dns.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a2a26a0313b042172d48c839c8500667fe241ec1b2b6c91ad1cb2f960d437c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026subID, \u0026userID, \u0026creditsNeeded, \u0026deploymentID, \u0026email, \u0026balance); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aafa51579e79177ee8e9ad579f30d84b73184834b9118a2037b7f6df6d692b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b925712f01d1ccdba2a672cede4d5893fe59aef39b95d587c54b623c1d5504ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := tx.Exec(ctx, \u0060 \u0060, newBalance, userID, ); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94c0785f624849eaaf48595162dd53a527bd71ad93b156e9a3765063e431099"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := tx.Exec(ctx, \u0060 \u0060, userID, -credits, newBalance, fmt.Sprintf(\u0022 \u0022, credits), ); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1716f571c3f0ad5ea43c60b2b2a41819ff74c738fb7fb3306ca8c377d843ee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := tx.Exec(ctx, \u0060 \u0060, subID, ); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad7d01428e476868caebcecb2619360e72bb00c61dbb9bc0c10f05e7354d33d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026subID, \u0026userID, \u0026deployID, \u0026filesPath, \u0026subdomain, \u0026email); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"521c98629a2422bf47fba8cf115cc6e08f35a8c7f82362588389d7bfa41aa6c1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e831d3261ead28767a86fbb24574fd203feca96d674fb3b38a3ceb5b066e27d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := tx.Exec(ctx, \u0060 \u0060, subID, ); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"035f4b3f3869ac684fb4f4bceb3616b4a64041cf425c0ec1421ddb09323c5fad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := tx.Exec(ctx, \u0060 \u0060, *deployID, ); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9c8521f4c2105d6de3fe9acb8a63de3459412a848adb4db02c67b9702dbebb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026subID, \u0026deployID, \u0026email, \u0026subdomain); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce895789317ca7170ba7663f4b682b6bf230f2868bba6c239d7c93d6cb11c72b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060j.Mailer.Send(email, subject, body)\u0060 returns an error, and the statement drops it: when \u0060j.Mailer.Send\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := j.Mailer.Send(email, subject, body); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"61494d63f07cf163efe874bf8ca9560c520280e41d91053d2eba33d883596b75"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060j.Mailer.Send(email, subject, body)\u0060 returns an error, and the statement drops it: when \u0060j.Mailer.Send\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := j.Mailer.Send(email, subject, body); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/billing/autobilling.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52ff2da0dbdb6069c7844f4d8191a5505a9c4bc60f7f39c01dd35c44b055c0b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026u.ID, \u0026u.Name, \u0026u.Email, \u0026u.ExpiresAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/server.go"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"557a8c9a8de5637346bda6ca9666b0c561e7870b22bda2a25c15298b25c0f285"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060claims, _ := extractClaims(r, jwtSecret)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060claims\u0060 as if the call succeeded. When \u0060extractClaims\u0060 fails, \u0060claims\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060claims\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/middleware/auth.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b719323adcd89c5a09c081c691d3bb309f034f323a532432780c872ec3e2981"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/middleware/auth.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b1f6388cbe57a3f83e98bf00e97260f74e352d58e8f771d2e72b2d45ee42c1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060members, _ := h.DB.ListOrgMembers(r.Context(), id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060members\u0060 as if the call succeeded. When \u0060h.DB.ListOrgMembers\u0060 fails, \u0060members\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060members\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bb87a56f9859ef2fab8f0045485469bfbd0aa793e922f47ff69a2501da6bdf"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060teams, _ := h.DB.ListTeamsByOrg(r.Context(), id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060teams\u0060 as if the call succeeded. When \u0060h.DB.ListTeamsByOrg\u0060 fails, \u0060teams\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060teams\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f140fa5328c5fd28cee75accfb76cc137b54ffc45db88997d6657b4ee89052"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060managerCount, _ := h.DB.CountOrgManagers(r.Context(), id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060managerCount\u0060 as if the call succeeded. When \u0060h.DB.CountOrgManagers\u0060 fails, \u0060managerCount\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060managerCount\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c101ded682d62d211487e013e5ffa8a8cdc85b74352711697ca228c8f9b5f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060pendingRequestCount, _ := h.DB.CountPendingResourceRequests(r.Context(), id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060pendingRequestCount\u0060 as if the call succeeded. When \u0060h.DB.CountPendingResourceRequests\u0060 fails, \u0060pendingRequestCount\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060pendingRequestCount\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"a604f39288557d7324b59b0d3fec1c719261a7dcaeaef5306846ac88f87595dd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060pendingFirstLoginCount, _ := h.DB.CountOrgPendingFirstLogin(r.Context(), id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060pendingFirstLoginCount\u0060 as if the call succeeded. When \u0060h.DB.CountOrgPendingFirstLogin\u0060 fails, \u0060pendingFirstLoginCount\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060pendingFirstLoginCount\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3f0bd58701222bbd4b8929a61c3437250ebccc54cd749ef1ecea65a2cb6f4b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060recipients, _ := h.DB.ListOrgManagerUserIDs(r.Context(), id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060recipients\u0060 as if the call succeeded. When \u0060h.DB.ListOrgManagerUserIDs\u0060 fails, \u0060recipients\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060recipients\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/admin.go"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ff861023a95ca2ebbf548dba275c6238e3343e95b74ec582690cf7b0bab40d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc8fe1048402ff6e9f11bf37ec96654d12e705c828ec7a7b18be294926a16a7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060csrfToken, _ := auth.GenerateSecureToken()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060csrfToken\u0060 as if the call succeeded. When \u0060auth.GenerateSecureToken\u0060 fails, \u0060csrfToken\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060csrfToken\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda09b1693eba35a97a3b593da7ac7da6af3ada87730ee8126087a1d9735a191"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060user, _ = h.DB.GetUserByID(r.Context(), user.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060user\u0060 as if the call succeeded. When \u0060h.DB.GetUserByID\u0060 fails, \u0060user\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060user\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"9446c92d4889c6a685562907426bd00a2b412bd2470af87af9dc5f0eaf9cf8e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := cryptorand.Int(cryptorand.Reader, big.NewInt(1000000))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060cryptorand.Int\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c581a6e54541ce933780d0fa679def3973e21eb54f35684927e65543caafec"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060h.DB.CreateEmailOTPCode(r.Context(), user.ID, auth.HashToken(code), time.Now().Add(5*time.Minute))\u0060 returns an error, and the statement drops it: when \u0060h.DB.CreateEmailOTPCode\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := h.DB.CreateEmailOTPCode(r.Context(), user.ID, auth.HashToken(code), time.Now().Add(5*time.Minute)); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb96eecac38b52698470e68e4abd145dcc2408ef814fb95ab069912097b02cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060csrfToken, _ := auth.GenerateSecureToken()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060csrfToken\u0060 as if the call succeeded. When \u0060auth.GenerateSecureToken\u0060 fails, \u0060csrfToken\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060csrfToken\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7925bf0230b1fe6a938426f324b5ef432e7ec3ebfc46a73b9579dbb4c076a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060user, _ = h.DB.UpdateUser(r.Context(), user.ID, map[string]any{\u0022avatar_url\u0022: gUser.Picture})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060user\u0060 as if the call succeeded. When \u0060h.DB.UpdateUser\u0060 fails, \u0060user\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060user\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"56af3414b56fdd03136ca069916911d2164d045b8305161f0730b99f311af6fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060user, _ = h.DB.GetUserByID(r.Context(), user.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060user\u0060 as if the call succeeded. When \u0060h.DB.GetUserByID\u0060 fails, \u0060user\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060user\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c78d9d2f7a6135c0a1ee6e0bb82a49122f45b9bf44c5aa91d2a9c0464ca2e05"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := cryptorand.Int(cryptorand.Reader, big.NewInt(1000000))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060cryptorand.Int\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4db7408a024d695df693f79e6eea66ce8c45797727c1ba36fa9df57821b9728"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060h.DB.CreateEmailOTPCode(r.Context(), user.ID, auth.HashToken(code), time.Now().Add(5*time.Minute))\u0060 returns an error, and the statement drops it: when \u0060h.DB.CreateEmailOTPCode\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := h.DB.CreateEmailOTPCode(r.Context(), user.ID, auth.HashToken(code), time.Now().Add(5*time.Minute)); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/auth.go"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"235d39dd161302f93a8adf56852c59c74f9e47909203dc7e72eebb4bceea052b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026sub, \u0026filesPath, \u0026deployType); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"be93eab7cfc1ed1d5b67e2bede16d9ff6357f319498fc4b2dd5a94a51b31d569"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060sub, _ = domain.Generate()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060sub\u0060 as if the call succeeded. When \u0060domain.Generate\u0060 fails, \u0060sub\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060sub\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"88456b030c37b2d934c897e2bc8a6ccdfd9c3abe68d1d6c02419396ba8f89285"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060_, usedAfter, quotaBytes, _ := h.checkQuota(ctx, claims.UserID, 0)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060usedAfter\u0060 as if the call succeeded. When \u0060h.checkQuota\u0060 fails, \u0060usedAfter\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060usedAfter\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f40d66db9218833b09d708abb126bcd5535ad8f89f055f79b8dcb75a1581cbe"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060_, used, total, _ := h.checkQuota(r.Context(), claims.UserID, 0)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060used\u0060 as if the call succeeded. When \u0060h.checkQuota\u0060 fails, \u0060used\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060used\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"065b8899472581e1e93283383fce763b24e43b09a498aefb39d361b152cf1f6c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rel, _ := filepath.Rel(rec.FilesPath, path)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rel\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060rel\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rel\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"236048f9e555373ec755c0589e759ccf7c4bd95943448f92fa8c0d4b47db3b5f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060active, _ := h.countActiveDeployments(r.Context(), claims.UserID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060active\u0060 as if the call succeeded. When \u0060h.countActiveDeployments\u0060 fails, \u0060active\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060active\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d05ccc79fd27f3e42b1e2478480a97ffef939538bfefdb92801ec4055404d62"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan( \u0026d.ID, \u0026d.UserID, \u0026d.UserName, \u0026d.UserEmail, \u0026d.UserPlan, \u0026d.Subdomain, \u0026d.Domain, \u0026d.Type, \u0026d.Status, \u0026d.SizeBytes, \u0026d.CreatedAt, \u0026d.ExpiresAt, \u0026d.StoppedAt, \u0026d.RedeployCount, \u0026d.LastDeployedAt, ); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e980dec397274d16435a3be5dfab880e54e96b37fb78888992c0a764901682d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026q.ID, \u0026q.Type, \u0026q.Reason, \u0026q.Requested, \u0026q.Status, \u0026q.AdminNote, \u0026q.ReviewedAt, \u0026q.CreatedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"626e90a1fb97ac80d0b5519630003b60b2e8e59f27541d1fb76897af664d02e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026q.ID, \u0026q.UserID, \u0026q.UserName, \u0026q.UserEmail, \u0026q.UserPlan, \u0026q.Type, \u0026q.Reason, \u0026q.Requested, \u0026q.Status, \u0026q.AdminNote, \u0026q.ReviewedAt, \u0026q.CreatedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13d42711b5655b47de72e5137810df75665590aa9cbe9658dcba1bed98889eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"b872d02c8d315d66dd5f780ec4b8ed2624782b71eb03484d7a90919038c0165a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba5c37debe27b2856c44e4ae8b707b9b89ab80b24fe9d4c91f25533345a4533"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026rec.ID, \u0026rec.Subdomain, \u0026rec.FilesPath); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbd526b42c3ee3be9d24d75439b661f82a37e43c74f92d43dbd7cc493ee9f84"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060h.stopDeployment(ctx, \u0026rec)\u0060 returns an error, and the statement drops it: when \u0060h.stopDeployment\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := h.stopDeployment(ctx, \u0026rec); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/deploy.go"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b2e19ac8ef36ea5003ce453294490d9c7e36a090ea046c367f9b2cfdf4bb28"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.NewDecoder(r.Body).Decode(\u0026body); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"77adac6fc89793b9236525956fe1e085a38619127fe8671b2f216148340c3644"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03eabac83c28162004c114ec2326809c679d06fd13ab1d76d0c3e2f8769a2dc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/domains.go"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b45a19d0a1c8296ff383da606ff55a39dba92270b56e550a5abbc892497f9bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060total, _ := h.DB.CountPublicDonations(r.Context())\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060total\u0060 as if the call succeeded. When \u0060h.DB.CountPublicDonations\u0060 fails, \u0060total\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060total\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/donations.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"515c041b003b7e1dfc0d875239f18673acc33a8ff12ff72134b40397c531666b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/monitor.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74df8a4324496fd84435c04a58f57c328cc55ed274d21e71a9574fbe7a69d13"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/monitor.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e69606f50a0428e8d9854d57879ad114ca52bc8ef1bf4ed0a722629078766f5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b980c888c6aeabd63634f995143fdadc3e539edd91dd3bc06e5e01fb23defdc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"75692f18aaa872663e66a699a9738b5f2ec4b1dc41adb1c9597fa8624ec9121b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7e5665a54f8d58b6262a3839ea267e1f6defb2c2b26c66eab684f1c9b828f2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060currentCount, _ = h.DB.CountOrgMembers(ctx, org.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060currentCount\u0060 as if the call succeeded. When \u0060h.DB.CountOrgMembers\u0060 fails, \u0060currentCount\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060currentCount\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c94f7c958c22d16864e4676e64d5ee96d8cba6a0ac25da1c145ae6ac973e3c0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060alloc, _ := h.DB.GetAllocation(r.Context(), org.ID, claims.UserID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060alloc\u0060 as if the call succeeded. When \u0060h.DB.GetAllocation\u0060 fails, \u0060alloc\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060alloc\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35c6e71c8fa9a1918efdfdc6374abe97f285bd267991f56b20eacc71f6df3ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(q.Get(\u0022limit\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a5714b16bd84890d7a3106829211b227c12c0b6a1c654c01b520eafcbb18ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(q.Get(\u0022offset\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"48111c5991f056e2cc58c12218327d7390cda1815e268b31e066784ea77e8649"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060count, _ := h.DB.CountOrgMembers(r.Context(), id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060count\u0060 as if the call succeeded. When \u0060h.DB.CountOrgMembers\u0060 fails, \u0060count\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060count\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/org.go"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cd72fb55208731459161e7cc04df05293f5b3eeb2c9fed52bd79ef1113b033"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9cd476724cc7dffaf6b8d505234e062169bccfe8ba05a8e110f8401227fb28c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026d.ID, \u0026d.Subdomain, \u0026d.Type, \u0026d.Status, \u0026createdAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06fdba4897da443149280e6b3ce98e96e7ac7315d721f70aa3420347881571c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ = h.DB.GetSubdomainLimit(r.Context(), claims.Plan)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060h.DB.GetSubdomainLimit\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"976f433037a23461004c2ac9b2c75ea1253a224d7a37096c175aac0cd050d6e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ = h.DB.GetSubdomainLimit(r.Context(), user.Plan)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060h.DB.GetSubdomainLimit\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cafc6762c61f529c65a498e53a8793d5bf755432912a4abfbb2132e2b049c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060count, _ := h.DB.GetSubdomainCountByScope(r.Context(), claims.UserID, scope.TeamID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060count\u0060 as if the call succeeded. When \u0060h.DB.GetSubdomainCountByScope\u0060 fails, \u0060count\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060count\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86a8c327fafd3a6fc7a16d1e213ffa6131e1fd5e68b90fa81a47012b5e5298d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060reserved, _ := h.DB.GetSubdomainCountByScope(r.Context(), claims.UserID, \u0022\u0022)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060reserved\u0060 as if the call succeeded. When \u0060h.DB.GetSubdomainCountByScope\u0060 fails, \u0060reserved\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060reserved\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6250f937f62589961a259ab601e1dd81d497e61803b0044f9c6ff8a95a14767"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060count, _ := h.DB.GetSubdomainCountByScope(r.Context(), user.ID, scope.TeamID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060count\u0060 as if the call succeeded. When \u0060h.DB.GetSubdomainCountByScope\u0060 fails, \u0060count\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060count\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f36d794cfd9f575be5d3ff7cc0df393e4eb821a2a75f883dad4fc3e240c146"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060count, _ := h.DB.GetSubdomainCountByScope(r.Context(), user.ID, \u0022\u0022)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060count\u0060 as if the call succeeded. When \u0060h.DB.GetSubdomainCountByScope\u0060 fails, \u0060count\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060count\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/subdomain.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"82253348c8710ed1d57b4f2cba9c9959c7af30c34a8a9ee52d05521039279e9a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 2048))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/tunnels.go"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ddaba6b4fed3e38012123628af101f683849cae1848634d573bb6ea229119f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := file.Read(buf)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060file.Read\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/upload.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dc69d82896486559e958c4d9393118fc00f9c287abbb4193cd98dfeb2fde05"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026id, \u0026userID, \u0026email, \u0026amountUSD, \u0026credits, \u0026ref, \u0026screenshotPath, \u0026createdAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/api/handlers/wallet.go"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"4590d1e374c13aa2b06286eb0683d25461a115fd8ce63967a59e45f894a9b9cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ffbf5b8c2ded697cebbfa8f1a2debb102229cd027d081c9332585d1948ec08"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b58d70e63cf75a1b5dcda1fed1baceadd105ecbaab7dc8ea02191dd3065b322"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := unwrapData(pb, \u0026poll); 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":"cmd/mekong/auth.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d850fa4d2a6550721ba7e3e02e36381acfe39cb4a69b41849d1704f0a9c00ab0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c7267a68167d7a553c06009a76a997a36d3348018ae334d063d97a567387b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/auth.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e9a449dfa4e577d9b25e9c2f94f5eaf4df5ce1be3af2696e4c2f1bc38b4d6a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060respBody, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060respBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060respBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060respBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bb2d3e280ad6d7207e6a7002ff884592233f93294eca747d7ec6fea2384fb5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"aede4c1724b14585867db466e2aecf259bd0d38dd8fe95219fc06a52583746ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a026dbd8aa3feb964e5423b7e8b033bebfc50fda1755ba40a776a5dcae9b659"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"547f3a10b5b3fc7df1a09b3651cac9d78a692669388ddf0231ddef15247fb047"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060respBody, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060respBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060respBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060respBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/deploy.go"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccc85849cc72120df7de675e6ec9acd0d266f80aabe09c592d970066b248277"}},{"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":"cmd/mekong/deploy.go"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d23246ba29d93b419f6d5d4437720f579d48178b1292b5fa55e1ef73c1783d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060normalized, _ := normalizeCustomDomain(domain)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060normalized\u0060 as if the call succeeded. When \u0060normalizeCustomDomain\u0060 fails, \u0060normalized\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060normalized\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/domains.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c5089cfe1e077e43834060ea4a8cae95dfc4b2868f1f79a4973ef4faab45f1"}},{"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":"cmd/mekong/domains.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8d64b7e22e9cc9db04faeb40d56889903b491a66af6e41b1eaf6a088e3c618"}},{"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":"cmd/mekong/localstack.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2053930d2d64e16f056b1a3b606d8be659cb5a4d892d72936aa687912cd617f3"}},{"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":"cmd/mekong/localstack.go"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8d8d9eee9193409c7585caa7fa049d20547cfc318f89d5dc6a23736ebd26b1"}},{"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":"cmd/mekong/main.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1026c35b3a7a3685c5651fd2283a0aaee67af1a4e003a56a8ddd469f213178"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.MarshalIndent(s, \u0022\u0022, \u0022 \u0022)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.MarshalIndent\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56dfa71578733bbae5a95f0f103565029e9d69d5caa3d46933d0d627ccf9e03"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.MarshalIndent(ts, \u0022\u0022, \u0022 \u0022)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.MarshalIndent\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9ad76f12f5e5169c33d39c2c8658dd8955d0aad2a75bac4f6951b14082d4da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(b, \u0026ts); 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":"cmd/mekong/main.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fe4035ab7d74581108dd502ff27f5a0b13a068938dd67b5ce102ccd9c12ff0"}},{"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":"cmd/mekong/main.go"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73b1a0e5676d58ab4ea67eb08409319348e453cad9483c73b6fc22f38839c48"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060states, _ := readActiveTunnelStates()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060states\u0060 as if the call succeeded. When \u0060readActiveTunnelStates\u0060 fails, \u0060states\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060states\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e937c52db518ba7182c0a533b78d68171e7f90870865ba8a5778bd74383dd75c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060states, _ := readActiveTunnelStates()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060states\u0060 as if the call succeeded. When \u0060readActiveTunnelStates\u0060 fails, \u0060states\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060states\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b98c3f4dd5a5f7c590716d8dc4a28306e15bf8701a767dbb03f0bce695d060"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if _, err := os.Stat(cfgDir); err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f2f01d30c795a501d4f4b5797852c4974655efc21319ccf7309bf4f30674e2"}},{"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":"cmd/mekong/platform_unix.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"559bba0aba336940c20c3bdee4ccc281582db4b135605f49ace74139ce37d102"}},{"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":"cmd/mekong/platform_windows.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9961715efc9dbc9caf4608dd37a41f609399dc5b08e98bc1f78d035a065629"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := syscall.GetExitCodeProcess(handle, \u0026exitCode); 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":"cmd/mekong/platform_windows.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2509ed285a6fd30b3b9e1596efdc713d5318a53391c6e1d82b6d79970623b49e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/selftest.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1244e41013cadb986149d2e64bebcc489684c58d61be93b98cff4a03a2f577ef"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060req, _ := http.NewRequest(\u0022GET\u0022, authAPIBase\u002B\u0022/api/auth/token-info\u0022, nil)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060req\u0060 as if the call succeeded. When \u0060http.NewRequest\u0060 fails, \u0060req\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060req\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/selftest.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"18826d0bb115bdafdb03c065734e36f05d3c981b0e1d29dca68903dd9f0406bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060req, _ := http.NewRequest(\u0022GET\u0022, authAPIBase\u002B\u0022/api/auth/token-info\u0022, nil)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060req\u0060 as if the call succeeded. When \u0060http.NewRequest\u0060 fails, \u0060req\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060req\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/selftest.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4958d8cdf603cf61f3cf736f4cfdb02247b38ae225c378718e69681d2e1540f7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/selftest.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"387db3ffa95dc21586482b8297d104b75bd519f4c892dbfbed1d8666c91165a5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/subdomains.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf716a279a3ce4531cce4f6d7e8a9c5e26590d5867f38c3e19911a63844f6500"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060normalized, _ := normalizeRequestedSubdomain(subdomain)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060normalized\u0060 as if the call succeeded. When \u0060normalizeRequestedSubdomain\u0060 fails, \u0060normalized\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060normalized\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/subdomains.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"582c658165b94075de3e0a61ca9bb5901c53f1eec953987f525e5a3dedbb4812"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~6.4 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 12 assertion(s) across the 1865 source line(s) of the 2 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: mekong-vscode-extension/src/extension.ts (12). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060mekongDir\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022.mekong\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mekong/main.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f3458746bae8ac1a0a14734ce0f0a0594f69c4acfb2bb78af2615d8a6bd63d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060warningDestinationPath\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/proxy/http.go"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9db13d37882ae621507975f127093dc71ba064c2bc89483827d28c690ed812"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getMdSiblings\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/liveServer.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"192a2565d0925053cd676e9131db9e51e86636f19655da01cdf276927c87786d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getLiveOpenPath\u0060 swallows every exception into \u0060return \u0027/\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mekong-vscode-extension/src/extension.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25923f273df82d5ee7badb902a815b96ef51277074e3fb8840ce98fce8b3fc3"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"Unchecked Return Value","shortDescription":{"text":"Unchecked Return Value"},"helpUri":"https://cwe.mitre.org/data/definitions/252.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-322","guid":"f9bcce90-227a-d056-9902-7b1c2f9f299c","name":"Key Exchange without Entity Authentication","shortDescription":{"text":"Key Exchange without Entity Authentication"},"helpUri":"https://cwe.mitre.org/data/definitions/322.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)","shortDescription":{"text":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-400","guid":"ca529a89-676d-8857-aac1-84359c77bb6c","name":"CWE-400","shortDescription":{"text":"CWE-400"},"helpUri":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-1","guid":"a40d9a4c-89f5-4b5d-b2dc-32dc9cbfe814","name":"Insufficient Flow Control Mechanisms","shortDescription":{"text":"Insufficient Flow Control Mechanisms"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-01-Insufficient-Flow-Control-Mechanisms"},{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":102,"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."]}]}