{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"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":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"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":"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":"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":"cmd.execServe (cyclomatic 168): cmd.execServe has cyclomatic complexity 168 (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/serve.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af7f8beb462abb188935faa7d7043da98f447480d357b675eb32d426aa39302"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleInternal (cyclomatic 166): Server.handleInternal has cyclomatic complexity 166 (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":"server/server.go"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"d374f1e6122377ce4fe76acc05b8822ae532d6f2893178c5017ce91976451ee3"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.parsePublishParams (cyclomatic 52): Server.parsePublishParams has cyclomatic complexity 52 (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":"server/server.go"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5ed6efcc46fdcb932ce0c4067f4a015014b75fa3be266a1dda108ade4d6b38"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.execPublish (cyclomatic 41): cmd.execPublish has cyclomatic complexity 41 (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/publish.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4976e7e401b10268633d18bcd7aa9744e4b7ec912dde9de88f2de2519765ce1c"}},{"ruleId":"D1","level":"warning","message":{"text":"config-generator.collectValues (cyclomatic 37): config-generator.collectValues has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 4 of the 37 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 192, 231, 255, \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":"docs/static/js/config-generator.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"028d1d01ac9118fd45c35c2cac61e5768dc1a05fe698ec8b84f69f89fc5d2ddb"}},{"ruleId":"D1","level":"warning","message":{"text":"config-generator.validate (cyclomatic 37): config-generator.validate has cyclomatic complexity 37 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 4 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":"docs/static/js/config-generator.js"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad67c2e5ec640374c8589fe84041f8cf09737e2fab2532fafdee4421f6b63fbe"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleSubscribeWS (cyclomatic 35): Server.handleSubscribeWS has cyclomatic complexity 35 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 14 belong to 4 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":"server/server.go"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6811437cd5067a0e2016acdc0fb10035629d68e807491acbacbfdcc807c57e3"}},{"ruleId":"D1","level":"warning","message":{"text":"server.New (cyclomatic 34): server.New 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":"server/server.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2a773850e767d81f0cac9ef2dfa31c0d2c3477ffe0810460a6f2e631bfe14b"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handlePublishInternal (cyclomatic 34): Server.handlePublishInternal 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":"server/server.go"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f247e2ce31ee636842414dd9037a6f60a19a9c5febcd4a88c6555f269add0b29"}},{"ruleId":"D1","level":"warning","message":{"text":"UpgradeDialog.UpgradeDialog (cyclomatic 34): UpgradeDialog.UpgradeDialog has cyclomatic complexity 34 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 8 belong to 3 function items 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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d87fb9e725aade87056378a534866185b8726b381294d13a638f97052cd3f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Account.Stats (cyclomatic 31): Account.Stats has cyclomatic complexity 31 (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":"web/src/components/Account.jsx"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb65094c565faf67ea7cd08c087a0f122df9ede9c7702925324c45fda0708cfb"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleUsersUpdate (cyclomatic 30): Server.handleUsersUpdate 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":"server/server_admin.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac97f276fc85f0480ecbb96b63458d770e31890fad2eb646de01f7fbd60b072"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleSubscribeHTTP (cyclomatic 29): Server.handleSubscribeHTTP has cyclomatic complexity 29 (threshold 15). Of this number, 21 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":"server/server.go"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d96c0743cfce9c5726f33e1eb4ece3c5a45d8986be641212aa6094c69840761"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.execTierChange (cyclomatic 28): cmd.execTierChange 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":"cmd/tier.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e7774aa4f05fe0a9ff2d19bc4b4efa8fba54a429b63cdfa1fb5e25e6a9875a"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.Run (cyclomatic 28): Server.Run has cyclomatic complexity 28 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, 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":"server/server.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf02867a63fd378e6caee8003bb5b724db0b62d964c30a33230a26bd0517c857"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleAccountGet (cyclomatic 28): Server.handleAccountGet has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_account.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a828868ec757ca411d47c0d7315e5497bb3c38ee6278bbcf14ca4b94f7f285f5"}},{"ruleId":"D1","level":"warning","message":{"text":"SubscribeDialog.SubscribePage (cyclomatic 28): SubscribeDialog.SubscribePage has cyclomatic complexity 28 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 14 belong to 3 function items inside it that branch. 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":"web/src/components/SubscribeDialog.jsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebddb3232b3925204d1615340462b2dbff4d60cc6164a5059143003b2692c01"}},{"ruleId":"D1","level":"warning","message":{"text":"PublishDialog.PublishDialog (cyclomatic 28): PublishDialog.PublishDialog has cyclomatic complexity 28 (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. This shape REPEATS in the file: one other method here (PublishDialog.PublishDialog::handleSubmit) 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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d788f4204d9bcc51fb204a6c5105eaefceff50b3c270ac0114db7bc6f47bbb30"}},{"ruleId":"D1","level":"warning","message":{"text":"Account.AccountType (cyclomatic 27): Account.AccountType has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"web/src/components/Account.jsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"82088eff5cec179e73f732c4224b2efed39a3b12c80d927fe010e5609b53fbe6"}},{"ruleId":"D1","level":"warning","message":{"text":"SubscriptionPopup.SubscriptionPopup (cyclomatic 26): SubscriptionPopup.SubscriptionPopup has cyclomatic complexity 26 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. 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":"web/src/components/SubscriptionPopup.jsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49a70edf2719897468dbf36ba581daa23aa682f0af62b48ed502acdde2b5745"}},{"ruleId":"D1","level":"warning","message":{"text":"Account.Emails (cyclomatic 26): Account.Emails has cyclomatic complexity 26 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 8 belong to 3 function items inside it that branch. 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":"web/src/components/Account.jsx"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab42118466d55d12a498c7018de1c4faa7d9beba0e18e156171445321f80800b"}},{"ruleId":"D1","level":"warning","message":{"text":"action.populateAction (cyclomatic 25): action.populateAction has cyclomatic complexity 25 (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":"action/action.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a91fbbb41aae961944140222848f558f7220fc704d5d6df537225ef08070570"}},{"ruleId":"D1","level":"warning","message":{"text":"server.treeContainsDisallowedNode (cyclomatic 25): server.treeContainsDisallowedNode has cyclomatic complexity 25 (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":"server/server_template.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e70b8b5067ad647002ea18af9fcbeec1bc9608b172046ad65187c2c89e2e7f3"}},{"ruleId":"D1","level":"warning","message":{"text":"Navigation.NavList (cyclomatic 25): Navigation.NavList has cyclomatic complexity 25 (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":"web/src/components/Navigation.jsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0104c1f32099ae456c1105d9998af8022370d934c4fb14427cad66c533c76b01"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.transformBodyJSON (cyclomatic 21): Server.transformBodyJSON has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 2351). 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":"server/server.go"},"region":{"startLine":2350}}}],"partialFingerprints":{"codehealthFindingId/v1":"57be01fc29cb7e48169c4658fdafb737cd21948336c47765362bdb08c6d4d0be"}},{"ruleId":"D1","level":"warning","message":{"text":"config-generator.generateServerYml (cyclomatic 20): config-generator.generateServerYml has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/static/js/config-generator.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e1341540f45f03203be88b5447ae88e01b877d3a6f21bb46639fca2819f8c3"}},{"ruleId":"D1","level":"warning","message":{"text":"config-generator.setupServerTypeEvents (cyclomatic 20): config-generator.setupServerTypeEvents has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 1142). 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":"docs/static/js/config-generator.js"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8dea4f267b3b98325a58295e2dd43e54b80c43a0f4144ff832c7a737be535a"}},{"ruleId":"D1","level":"warning","message":{"text":"handleClick (cyclomatic 20): handleClick has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 belong to 4 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":"web/public/sw.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f40909df72999716c34e1b11cd2df5f7107d0985d4a4d088b58e18077b6df9"}},{"ruleId":"D1","level":"warning","message":{"text":"schema.Migrate (cyclomatic 19): schema.Migrate has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"db/schema/schema.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ebba779ab491eff13f1fb0ced760a9c34dc9a1363df1bc09ccf1507410d54b"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.execTierAdd (cyclomatic 18): cmd.execTierAdd 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":"cmd/tier.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c75bd83d3d6e07f0e444a06ec1aefbeb308ff37b68036f2c67c509e750cc0b"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.execTokenList (cyclomatic 18): cmd.execTokenList 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/token.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac68ed90841452dd1f43cddcffe572c0ca986164f51997cc282b368579542260"}},{"ruleId":"D1","level":"warning","message":{"text":"Notifications.NotificationItem (cyclomatic 18): Notifications.NotificationItem has cyclomatic complexity 18 (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":"web/src/components/Notifications.jsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"192cb5208ed69fecb77e4b3542f6a87a89540b48da8df338dcc48410ea968db3"}},{"ruleId":"D1","level":"warning","message":{"text":"PublishDialog.PublishDialog::handleSubmit (cyclomatic 18): PublishDialog.PublishDialog::handleSubmit 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. This shape REPEATS in the file: one other method here (PublishDialog.PublishDialog) 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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff75b3b1cb295c6676b3ee3f57bb8020fe1ce0b62f52aaaa11cdf5264c6de8f"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.execSubscribe (cyclomatic 17): cmd.execSubscribe 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/subscribe.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd6ef75baffd04755bc66e66293d904b5faf684d2dabd2575a0209fc2c4a7b2"}},{"ruleId":"D1","level":"warning","message":{"text":"Manager.maybeProvisionUsers (cyclomatic 17): Manager.maybeProvisionUsers 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":"user/manager.go"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"76996c2f651664e2c16f51e506455fb5f4a2eef4d30c33660ad3a095389bd225"}},{"ruleId":"D1","level":"warning","message":{"text":"UpgradeDialog.TierCard (cyclomatic 17): UpgradeDialog.TierCard has cyclomatic complexity 17 (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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"becbb338bb8e64194122e4de3be6cf2b97f3e0be6f88bcec84e7ebb72fbd189e"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.showUsers (cyclomatic 16): cmd.showUsers 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/access.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8decab62037617f5574cfd64963f199494454f42d8fc5b2b237f5b00330c1d8d"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleError (cyclomatic 16): Server.handleError 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":"server/server.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca200cf8be0198b0d5eed526e6ba48191c3d653fa19df465e257fa518acac24b"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.dispatch (cyclomatic 16): Server.dispatch 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":"server/server.go"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"35550f0839fd9d8c4bdd1225da0a3db323b4e59b56f0d17424da4598cf0ccaf8"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleUsersAdd (cyclomatic 16): Server.handleUsersAdd 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":"server/server_admin.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dc1c3b77b480a5a94667841dad055b05b0806a0507b8ad9d654481663865a7"}},{"ruleId":"D1","level":"warning","message":{"text":"config-generator.setupFormListeners (cyclomatic 16): config-generator.setupFormListeners has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 1267, 1265, 1294, \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":"docs/static/js/config-generator.js"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4989ec07497ae01f23e9479c6bac735918b54f9c6264cddc0b01d1fc41a5d494"}},{"ruleId":"D1","level":"warning","message":{"text":"Account.AddPhoneNumberDialog (cyclomatic 16): Account.AddPhoneNumberDialog has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 4 function items 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":"web/src/components/Account.jsx"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92343eef9e3239ae83cfd351048937e35758dd62366c8e1d2e651e3995b7c81"}},{"ruleId":"D1","level":"warning","message":{"text":"Preferences.UserDialog (cyclomatic 16): Preferences.UserDialog has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 519, 525, 541). 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":"web/src/components/Preferences.jsx"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa62ccd0b3b15a85bba847d57da36290d9e26f1a3c530509952f83c5599e92e2"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleInternal (cognitive 161): Server.handleInternal has cognitive complexity 161 (threshold 15). Drivers by points: boolean chains 85, if/else 76. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"102154833b7d9bc2dfe85491b2448ed4d91f86b44e88816ed0c2268bbd538296"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.execServe (cognitive 157): cmd.execServe has cognitive complexity 157 (threshold 15). Drivers by points: if/else 92 (97 pts), boolean chains 57, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/serve.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cdfab695279d07fb83ffdd646d563daadda84ff0a8cef1c16230039e00abbc"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.parsePublishParams (cognitive 74): Server.parsePublishParams has cognitive complexity 74 (threshold 15). Drivers by points: if/else 41 (63 pts), boolean chains 10, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e441ea56a0bc8e81bf3bd2137b7960993da60de80ee4280ebd47272752dd3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleAccountGet (cognitive 72): Server.handleAccountGet has cognitive complexity 72 (threshold 15). Drivers by points: if/else 24 (59 pts), loops 4 (13 pts) (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_account.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"579499308bec2efdd93558d345844273191520674cc13c9249638702fb67e24d"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.execPublish (cognitive 56): cmd.execPublish has cognitive complexity 56 (threshold 15). Drivers by points: if/else 41 (54 pts), boolean chains 2 (nesting depth added 13). 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/publish.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e533751bc873814b3081c7f786e657c4232f9b3ad349c1c2da47814f1ecb2b7"}},{"ruleId":"D2","level":"warning","message":{"text":"server.New (cognitive 51): server.New has cognitive complexity 51 (threshold 15). Drivers by points: if/else 29 (41 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b70eca93bac784ba3f294ed54cfa7935085201a7a412e9b2fdf92724f3d6b2"}},{"ruleId":"D2","level":"warning","message":{"text":"config-generator.validate (cognitive 51): config-generator.validate has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (37 pts), boolean chains 11, error handling 1 (3 pts) (nesting depth added 15). Of this number, 47 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/static/js/config-generator.js"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"792fa3bbb28e4b519e7341d4042171e683110f7a47208323cf9ab6af2d212287"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handlePublishInternal (cognitive 47): Server.handlePublishInternal has cognitive complexity 47 (threshold 15). Drivers by points: if/else 31 (45 pts), boolean chains 2 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3c78dd2771e8063a7ddeb18527dea2f2f11b9d0177147bf61b4f16f2833bda"}},{"ruleId":"D2","level":"warning","message":{"text":"config-generator.setupServerTypeEvents (cognitive 47): config-generator.setupServerTypeEvents has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (46 pts), boolean chains 1 (nesting depth added 28). None of this is in the body itself: all 47 points belong to one function literal inside it that branches (line 1142). 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":"docs/static/js/config-generator.js"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca981a05e191cd4e93ed8a9369527905fa2e825e6e92a78acc9e480481c4409b"}},{"ruleId":"D2","level":"warning","message":{"text":"handleClick (cognitive 43): handleClick has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (35 pts), error handling 1 (4 pts), boolean chains 2, other 2 (nesting depth added 20). Of this number, 38 points are the body\u0027s own statements and 5 belong to 4 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":"web/public/sw.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b308d543620856ee9c7d68521d612ec3ad0babc2e9c8ecebcb2db5f417422ea9"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleUsersUpdate (cognitive 42): Server.handleUsersUpdate has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24 (37 pts), boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_admin.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"824b04ee3e311e87ce67409dd268a3493c7e3689f6315f369810aea6e25cd83f"}},{"ruleId":"D2","level":"warning","message":{"text":"config-generator.collectValues (cognitive 41): config-generator.collectValues has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 8, ternaries 3 (6 pts), loops 1 (nesting depth added 10). Most of this is not in the body itself: 3 of the 41 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 192, 231, 243, \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":"docs/static/js/config-generator.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"729aae25405f704ba0dcfcd5e0c6fe413a98018643a1d69fcd3e72b8678db701"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleSubscribeWS (cognitive 40): Server.handleSubscribeWS has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (24 pts), loops 6 (9 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 19 belong to 4 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3e581a52b4bb7341f1b56df83d3299179b2e539e18310170708623fa2fa2aa"}},{"ruleId":"D2","level":"warning","message":{"text":"UpgradeDialog.UpgradeDialog (cognitive 40): UpgradeDialog.UpgradeDialog has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 12, loops 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 7). Of this number, 30 points are the body\u0027s own statements and 10 belong to 3 function items 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, 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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"789f498903f771cf21f7df2d435c7db39b72ed3ffb219fe703f8c11e8496082e"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.maybeProvisionUsers (cognitive 39): Manager.maybeProvisionUsers has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (35 pts), boolean chains 2, loops 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/manager.go"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89b231724d2e8d05d3752972ea62b1fd1bb8a644f91ed5ba5512fcd39eb0efb"}},{"ruleId":"D2","level":"warning","message":{"text":"config-generator.generateServerYml (cognitive 38): config-generator.generateServerYml has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 2 (6 pts), ternaries 1 (nesting depth added 19). Of this number, 30 points are the body\u0027s own statements and 8 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":"docs/static/js/config-generator.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c376fdea883935ac4bfa4c14aa39742ea187599965a10d0ce3d24b3c67519987"}},{"ruleId":"D2","level":"warning","message":{"text":"LingerQueue.run (cognitive 37): LingerQueue.run has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (20 pts), match/switch 2 (8 pts), jumps 4, loops 2 (3 pts), boolean chains 2 (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":"util/linger_queue.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a742077503549ca310a92fa8e09ddea9e360f913dc93ac26e95e336f4bf0f2"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleSubscribeHTTP (cognitive 36): Server.handleSubscribeHTTP has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (25 pts), loops 5 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). Of this number, 27 points are the body\u0027s own statements and 9 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, 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 file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f9ae8c9f74006e25c121fd8359c836cbebe94015b0b4d869aa692c4cd5e692"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.Run (cognitive 34): Server.Run has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 2, loops 2 (nesting depth added 7). Of this number, 21 points are the body\u0027s own statements and 13 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"022630e7ff59362e40ffc4a643924bb3fcbe4b82e586963b396d38f1d3c9e207"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.showUsers (cognitive 33): cmd.showUsers has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 2 (4 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":"cmd/access.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a6555b7ccebac14f16ab7fb75319bb9991471e7ab55d86d699acd29f9c4a3b"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.execTierChange (cognitive 32): cmd.execTierChange has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25 (30 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":"cmd/tier.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"09269b4dc624790c6991477081192b5c917a10d3049514144152d501e0861937"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.execTokenList (cognitive 29): cmd.execTokenList has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/token.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66910e14d3d455f5f5d4bb1271b13b32087e57bf7b246ef35987e176186e4ed"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscribeDialog.SubscribePage (cognitive 29): SubscribeDialog.SubscribePage has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (11 pts), error handling 1 (2 pts), ternaries 2 (nesting depth added 4). Most of this is not in the body itself: 12 of the 29 points are its own statements and the rest belongs to 3 function items inside it that branch (handleSubscribe, a function literal at line 150, updateBaseUrl). 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":"web/src/components/SubscribeDialog.jsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ed6b2105e11524f471b653d88236af88c3e9f78f83fb3a310c1b65615d420b"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionPopup.SubscriptionPopup (cognitive 26): SubscriptionPopup.SubscriptionPopup has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 17, if/else 4 (6 pts), error handling 2 (3 pts) (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 11 belong to 2 function items inside it that branch. 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":"web/src/components/SubscriptionPopup.jsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"261e79979512139f01506a34f66150b206e896d24b2bfcaddb104c8e4ba55818"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.Migrate (cognitive 23): schema.Migrate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 1, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"db/schema/schema.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e44b450fa22e0867e5d805f9ba743ac8a2fe85205fe0e8d0eacaff7f5729775"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.BucketSnapshot (cognitive 23): Service.BucketSnapshot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 3 (6 pts), boolean chains 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":"limit/peers.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2d23911ed6b281ed6b01db959d13b2df6bb9330aa7d2dee10cb169b1652e34"}},{"ruleId":"D2","level":"warning","message":{"text":"server.treeContainsDisallowedNode (cognitive 23): server.treeContainsDisallowedNode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_template.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d9de48fe7d1d72f53e843112099ea8a214240202f951644f7e1ff730d0e9de"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishDialog.PublishDialog (cognitive 23): PublishDialog.PublishDialog has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 31, if/else 27 (29 pts), error handling 2, ternaries 2 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (PublishDialog.PublishDialog::handleSubmit) 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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5648ed305a80910c646606f8612e6b09e2262571f8e111859d77a193ec0ae7"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.execManager (cognitive 22): Server.execManager has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 1, loops 1 (nesting depth added 8). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 34). 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":"server/server_manager.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f029e0047be65338dd44502d263195c95de3e68340bbed94f38566cd3911fb0"}},{"ruleId":"D2","level":"warning","message":{"text":"config-generator.addRepeatableRow (cognitive 22): config-generator.addRepeatableRow has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 2 (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":"docs/static/js/config-generator.js"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc63526aa492e6848d836b878f29801044b902ce781e7c69257fb07db7e35bfb"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.BucketDeltas (cognitive 21): Service.BucketDeltas has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"limit/peers.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"10259fa87937ff79a406f69906b41ae2ff98bf30b57354f1f125843cc1e6a6bb"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.transformBodyJSON (cognitive 21): Server.transformBodyJSON has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20 (21 pts) (nesting depth added 1). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 2351). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":2350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8744595056595093d3a1b54ec67ab2aece91d9a24c66221dbaf278e508c6864"}},{"ruleId":"D2","level":"warning","message":{"text":"Account.AccountType (cognitive 21): Account.AccountType has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), error handling 1 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"web/src/components/Account.jsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f26d21ed7082533695ab88805c6a3b19c3133051ba04de83d0c90a1d67bad2"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.execSubscribe (cognitive 20): cmd.execSubscribe has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3 (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/subscribe.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a142d0ba1f8f1da56412626856a41fb6d179050256ddcd90aaaab54cf1f1e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Tail.nextPage (cognitive 20): Tail.nextPage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"message/tail.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"23278cd5f67924f9cdc00171d8d515c2764a833916b26c6e7d6a4157d87125a9"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleError (cognitive 20): Server.handleError has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2edca73f512c00bb295d25716000f25a55d1be994976c8349fc2c127c794b88"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.maybeSetRateVisitors (cognitive 20): Server.maybeSetRateVisitors has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb2a5a16bf4d82aded93178373e63306a8705634f0878a2d14063853d31c077"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.maybeProvisionTokens (cognitive 20): Manager.maybeProvisionTokens has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/manager.go"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a860e40bb7c3ca6c768493e5cab0ffafb289aa039a616b4742db904e133cdf1"}},{"ruleId":"D2","level":"warning","message":{"text":"config-generator.setupAuthEvents (cognitive 20): config-generator.setupAuthEvents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (20 pts) (nesting depth added 9). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 1106). 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":"docs/static/js/config-generator.js"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f9000288dde41145a6928285622db25a4100bc2f716c8bdc7cb5891b9aeaa1"}},{"ruleId":"D2","level":"warning","message":{"text":"Account.Emails (cognitive 20): Account.Emails has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts), ternaries 3, error handling 1 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 8 belong to 3 function items inside it that branch. 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":"web/src/components/Account.jsx"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9d12ec9d1cb3ce23c0ea2777a1231c179c8a18522a0b2388344e9d7f396b38"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.renderTemplateFromFile (cognitive 19): Server.renderTemplateFromFile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 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":"server/server_template.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f942fab56d7923805aab75b552d7c4c974c8a8cb22a7312e13d5230b4a8bc1"}},{"ruleId":"D2","level":"warning","message":{"text":"topic.deliver (cognitive 19): topic.deliver has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 10). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 174). 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":"server/topic.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36467ca56312bc00ca166de2399d35500662c337ca2ca85adde542cd8b5a81e"}},{"ruleId":"D2","level":"warning","message":{"text":"Account.AddPhoneNumberDialog (cognitive 19): Account.AddPhoneNumberDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, error handling 2, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (verifyPhone, checkVerifyPhone, handleDialogSubmit, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde0b97d381fb9ecfe1054a4ccc03223a87bb345a125208097845f3cd1d3100e"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishDialog.PublishDialog::handleSubmit (cognitive 19): PublishDialog.PublishDialog::handleSubmit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 3, error handling 1 (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. This shape REPEATS in the file: one other method here (PublishDialog.PublishDialog) 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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2933d955c614661cdffbbc0bb64753ece3d7604e27ee7aa942367810778b361"}},{"ruleId":"D2","level":"warning","message":{"text":"action.populateAction (cognitive 18): action.populateAction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 3). 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":"action/action.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab13338501ae2815d4cd284811920ffc3ffa23ca25ef48fd8ea87fd5b6150db"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.parseAccess (cognitive 18): cmd.parseAccess has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/serve.go"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2d1d5405e7ce1218c26359d634c26b046ca59c17fcc680f5606eef7a5ed8ed"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.execTierAdd (cognitive 18): cmd.execTierAdd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (16 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/tier.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8d316186e6fe5445392ab69d42fdd874fcd550445d35b5e97291baf5d5f511"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.dispatch (cognitive 18): Server.dispatch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b920e4093c0525c4880eb4ca7dbf7cd9513ac8e532ae9b2ca6138c81385aa82"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleAccountCreate (cognitive 18): Server.handleAccountCreate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_account.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3790c342859a18d0a971e848100cf50afff3297716a4e8730058e3f23315deda"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleUsersAdd (cognitive 18): Server.handleUsersAdd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 3 (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":"server/server_admin.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"50161c9a9cef66b27429555fe0b8dde42ba8fa26dd01058e8cb570bcac242463"}},{"ruleId":"D2","level":"warning","message":{"text":"Account.Stats (cognitive 18): Account.Stats has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, ternaries 5, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5f023d0e4a89424e5e9a085bf20c9f821d4c0646a57fd6c2363e553a076445"}},{"ruleId":"D2","level":"warning","message":{"text":"Navigation.NavList (cognitive 18): Navigation.NavList has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 17, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Navigation.jsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3df6a3ca55c770007aeaa89b62290dd0e65296978febbba12d5b7ce8daa242"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.doSubscribe (cognitive 17): cmd.doSubscribe has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 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":"cmd/subscribe.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"396cfc746239ce9ecbb924a2c0a42303dea0bacf4d04cd40f274d7eec73bb983"}},{"ruleId":"D2","level":"warning","message":{"text":"mail.formatMail (cognitive 17): mail.formatMail has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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":"mail/format.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a695baaf842cefd24de279ba6c0c99a94ef602cb23481ce38c2573f22f811d"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleFile (cognitive 17): Server.handleFile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"7380f758152e24c8211171d62727c5921eaf15a262ef4b6fe346e076863fb485"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleActionMessage (cognitive 17): Server.handleActionMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: server/server.go holds 13 of the 66 functions over the threshold \u2014 including the worst \u2014 and 361 of the 1053 points over it (34%), 2.5\u00D7 the next-largest file (cmd/serve.go at 145). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1cb900dc1f6dddb28992187795c231a21ebd355034eedea6936bf270119c5f"}},{"ruleId":"D2","level":"warning","message":{"text":"hooks.useConnectionListeners (cognitive 17): hooks.useConnectionListeners 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). None of this is in the body itself: all 17 points belong to 5 function literals inside it that branch (lines 54, 39, 77, \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":"web/src/components/hooks.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"651ee198b781dfb2194de26e80e0893d63be415f68fed57a1088935911554f6b"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.execUserResetPass (cognitive 16): cmd.execUserResetPass has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/user.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"d808fad1b15cc80f4b905608de701a7dd05335bd4662e4c93cf0d2912ebcdb8d"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.listMultipartUploads (cognitive 16): Client.listMultipartUploads has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 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":"s3/client_multipart.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2504caba73b605b15607d802f0e7f2066bb6f9c56b89e599fb0051f219e0aef9"}},{"ruleId":"D2","level":"warning","message":{"text":"server.toFirebaseMessage (cognitive 16): server.toFirebaseMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_firebase.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6076a160cd2634c92664564f964d172e328c0fe435b6ca32d46b89fe573b42c"}},{"ruleId":"D2","level":"warning","message":{"text":"server.readMultipartMailBodyParts (cognitive 16): server.readMultipartMailBodyParts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, 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":"server/smtp_server.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b75af565cea2e26697be33dcf3d13c7716cd2120aa1b48066f5415406dff2a5"}},{"ruleId":"D2","level":"warning","message":{"text":"server.extractIPAddressFromHeader (cognitive 16): server.extractIPAddressFromHeader has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, boolean chains 1 (nesting depth added 6). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/util.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"236669aa9e7b23dd696280de8002df722bcc1a9636fb9314e1a1325c54b3446f"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleUsersPasswordReset (cognitive 16): Server.handleUsersPasswordReset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_admin.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"113727707a6e4af5cb573aa11d64ff538c3875228b4e89b8e00c9ea14a0a02fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.AddReservation (cognitive 16): Manager.AddReservation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 823). 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":"user/manager.go"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b26c3f35c3666d4c465c6fb246c67969f6c2f369a4759e45fe15cc8d8476e0e"}},{"ruleId":"D2","level":"warning","message":{"text":"util.ReadPassword (cognitive 16): util.ReadPassword has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"util/util.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"662df4c71fecde47fa0b5d4b565f3f04591b9b75eb80073cf68ec6698fa1a8b4"}},{"ruleId":"D2","level":"warning","message":{"text":"hooks.useAutoSubscribe (cognitive 16): hooks.useAutoSubscribe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, error handling 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 7). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 128, 138). 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":"web/src/components/hooks.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28651cc520237a3b47c4c7886d691ad3bce26c173074fd8972053c154c42381"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Server: TooManyMethods \u2014 185 methods, declared across 15 files: server/server.go (61), server/server_account.go (32), server/server_admin.go (27), server/server_middleware.go (15), \u002B11 more file(s). The bar is 30 methods; this is 155 over it, 6.17\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":"server/server.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"63963d5ca4be146122467be9ebcbe195afaaa5c60dcb09c0f117a2e884064cf7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PublishDialog.PublishDialog: FunctionTooLong \u2014 PublishDialog runs 601 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 501 over it, 6.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/PublishDialog.jsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"03807716c7393ba355d6bdaf7d9fb15cad5ef656ab99bd83bbe2c3c0e7f2d341"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cmd.execServe: FunctionTooLong \u2014 execServe runs 433 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 333 over it, 4.33\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/serve.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4d5589412e5dc9034a4752f22ec4010d04c3c2ad5a17554cb9f5d4e3777972"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 120 stored fields beside 1 method. The bar is 30 stored fields; this is 90 over it, 4.00\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":"server/config.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c05d03597d77b666bc0d531fd794d178dbbff8d582442ba1df24d24d3ce2d14"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Manager: TooManyMethods \u2014 108 methods. The bar is 30 methods; this is 78 over it, 3.60\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":"user/manager.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2bc54c8c2af443a7398342db0829a9a2986378623418f97834d0c905b8bc5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Server: ClassTooLong \u2014 1396 significant lines (blank, comment-only and punctuation-only lines excluded), 185 methods, 62 blocks, lines 54-2479. The bar is 400 significant lines; this is 996 over it, 3.49\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":"server/server.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2522d3af6f30979b011b7841bd81f1435f21a362e3163855ecabaa81f484594"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/server.go: FileTooLong \u2014 1745 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: Server (62 blocks, 54-2479). The bar is 500 significant lines; this is 1245 over it, 3.49\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":"server/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae1a94109b305dacc30a7b8a22ee24b1a6c658512279cf1478e57603ed29c6b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Manager: ClassTooLong \u2014 1096 significant lines (blank, comment-only and punctuation-only lines excluded), 108 methods, 109 blocks, lines 55-1927. The bar is 400 significant lines; this is 696 over it, 2.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/manager.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24d4966f86876a6cff91b9718da37b946c10d52e6027b84e02b04c809c95190"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: queries: TooManyFields \u2014 73 stored fields. The bar is 30 stored fields; this is 43 over it, 2.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/types.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f06f3628508f15d8a884bdb2ed36fb80de78d5fd444361ef35c576b1fbf4839"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/Account.jsx: FileTooLong \u2014 1203 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 703 over it, 2.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20cab2b5791408f7c59bb9d6bbc642375f342f7e847c01f548e2bee276bb4e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: user/manager.go: FileTooLong \u2014 1165 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: Manager (109 blocks, 55-1927). The bar is 500 significant lines; this is 665 over it, 2.33\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":"user/manager.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c08d86af7c566043d2e8ca5ed3fb4f5d65b6f3c0643ee19dde14de6b043d3a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UpgradeDialog.UpgradeDialog: FunctionTooLong \u2014 UpgradeDialog runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd7ebc27c98cd7292803dbee3e8a2932444371439c699f176f9eb34d749e9ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Account.Stats: FunctionTooLong \u2014 Stats runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\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":"web/src/components/Account.jsx"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"b524a083ed1582abadbe5f7adb770bd01d45219bb3adabb55100ca8913aaabbf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/config-generator.js: FileTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 319 over it, 1.64\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":"docs/static/js/config-generator.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98762676bdc5b686d60dc13a7c3cd00804782f68b6bcf2bd092e8e62c083b66c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/PublishDialog.jsx: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: PublishDialog (48-787). The bar is 500 significant lines; this is 302 over it, 1.60\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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8872fb85f07f564f7f651241dfc43be778f86cdf4bf681180dad61867f53243"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: server.New: FunctionTooLong \u2014 New runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"server/server.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1420c0392bc6f99dc842758672ac0e16c4df09854f3bee64ac64cb2b7af3f7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.handleInternal: MethodTooLong \u2014 handleInternal 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":"server/server.go"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75ed91ef329f96efa8deb577c7157e0546bfa66c5f8eb580642be25d96eb945"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PublishDialog: ClassTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 201 over it, 1.50\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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d758317d3418149d9c6a7658e4491c72d6559463a89013d1620309af726fe517"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SubscribeDialog.SubscribePage: FunctionTooLong \u2014 SubscribePage runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"web/src/components/SubscribeDialog.jsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c8c86721bbd6d2df68d4f7f037cd44dedd220e987c0d81406dbb10426d036f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Account.Emails: FunctionTooLong \u2014 Emails runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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":"web/src/components/Account.jsx"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37a9e77090a7356773dd4339e0a716867ba17dc0e54fd714a5f176c8696469b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/Preferences.jsx: FileTooLong \u2014 711 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 211 over it, 1.42\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":"web/src/components/Preferences.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a502e6c00bebe42791db48ee254239e2cb44d68f98bf7484f832857dd40c43d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmd/serve.go: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: execServe (153-667). The bar is 500 significant lines; this is 189 over it, 1.38\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":"cmd/serve.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff22f098a1f9fbe8989131a7d75e92ed7269f58453309fdaa48c47b556cb5b2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/server_account.go: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Server (32 blocks, 25-1001). The bar is 500 significant lines; this is 182 over it, 1.36\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":"server/server_account.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b6d426d6291907ce496be4ea7b7e39f77c230576277d54a3f2e25c88b7b885"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Signup.Signup: FunctionTooLong \u2014 Signup runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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":"web/src/components/Signup.jsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcda196825adbcd6dc682e468e737ad5fe9c8e09747d9879a6dcd18f3ab7903d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: meshCluster: TooManyMethods \u2014 40 methods, declared across 3 files: cluster/cluster_mesh.go (25), cluster/cluster_mesh_handler.go (10), cluster/cluster_mesh_buckets.go (5). The bar is 30 methods; this is 10 over it, 1.33\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":"cluster/cluster_mesh.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca500fae8a0b66d491a8fcda18897d78b9a740b3cae087e9fc87b20cc3c273fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Account.TokensTable: FunctionTooLong \u2014 TokensTable runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"web/src/components/Account.jsx"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c584ca2dcbcce5fdea0f978a02cef17618272eced1a1186187af326a094da8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AccountApi: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"web/src/app/AccountApi.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35ea3851a154e930b56aa78c95951813e8b9b1fb5bce8ed9a5160a0fd7a14b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Server: TooManyFields \u2014 37 stored fields beside 185 methods. The bar is 30 stored fields; this is 7 over it, 1.23\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":"server/server.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05a43a1e3ade3a2b3e4b9513f76f5ae6874e316180e07fa10d2e6f4a59fca02"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: visitor: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"server/visitor.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"203d37c1774767c0a96b8bd3575eb1319d74601169d1507d64abecccd8dc7e69"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cmd.execPublish: FunctionTooLong \u2014 execPublish runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/publish.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fa1f7a60793b2f07a4493e1ca9b215c4eb9628dc0622985f9b566521565dc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Navigation.NavList: FunctionTooLong \u2014 NavList runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Navigation.jsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef4750a931dd34de058ed7cdcffc8d2a77b81f1a6e02ae7a35858425bbafc41"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.parsePublishParams: MethodTooLong \u2014 parsePublishParams runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"server/server.go"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1e044aecda9dddfd642ffbcf8120fedf775d741c87055ac52d00f4602eb7e3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Cache: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"message/cache.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0499985bf3341bed2b37097b96f4c2faff031a7548c2e5309683bb1918c81a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: server.NewConfig: FunctionTooLong \u2014 NewConfig 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":"server/config.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"97de6f6b563c2713d5523fd712d1d0db6272d57ac53797f0da97bf5502d19a5d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.handleSubscribeWS: MethodTooLong \u2014 handleSubscribeWS runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd509c2db0a6920c35c2074ef6149f8440c9282221e7c7e30a108cb2cac3086e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.handleAccountGet: MethodTooLong \u2014 handleAccountGet runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_account.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1403536aee7c9fa8d8586d95fd409f7cde1169e8adaf5e4fcd264260721d26d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.Run: MethodTooLong \u2014 Run runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"server/server.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fbc8193ae15d4b059f563d7c1722c76993bfc02168bf7fb2561490aedd8514"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Account.AddPhoneNumberDialog: FunctionTooLong \u2014 AddPhoneNumberDialog runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"web/src/components/Account.jsx"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7c9793f4f0f4397431619628e2c28a2f66a1cfde8cc2b2d98eef7689b2e632"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UpgradeDialog.TierCard: FunctionTooLong \u2014 TierCard runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a37ad6558ea693b61aa99a63567362df968a5cba68b427e1319e89cd7ba45f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/Notifications.jsx: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\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":"web/src/components/Notifications.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0b3df816530e87a750cb102c7bd6b00a602892de7d87d9d0880ddc9144da8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/server_admin.go: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: Server (27 blocks, 52-682). The bar is 500 significant lines; this is 23 over it, 1.05\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":"server/server_admin.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f22a1f91bb7a88a228260f20b319256fd1d49a0740d39db381741a773644c87"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: message/cache.go: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 15 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"message/cache.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b841c22ca31906d0f61781fab334c553a646ad18d9e0f956c865a41cfcfc2ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Notifications.NotificationItem: FunctionTooLong \u2014 NotificationItem runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Notifications.jsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fe6fafe84868151c787e03ef0fa2a6a0d966bdb626863fa5a4df23ee4bba00"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): cmd/user.go:267-286 | cmd/user.go:288-317 | cmd/user.go:374-394 | cmd/user.go:409-438 \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":"cmd/user.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc9f014d14b43c777a0ff8c2d3cd2f74f474891d84fc91fb9c8e0833ecbf04a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): cmd/serve.go:721-762 | cmd/serve.go:764-798 \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":"cmd/serve.go"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a51a301f9e849580988a8ecc02178c93c1050e432b774e28ec86f71b18a730"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): server/server_account.go:617-646 | server/server_account.go:691-721 \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":"server/server_account.go"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc3d75a63faa8cab4f6359b82ee4b6397dc78f6bc8bb82b3836a7b06763c8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): server/server_account.go:435-456 | server/server_account.go:458-484 \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":"server/server_account.go"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b35bcd38865bbecb5b171330bdfcb4eafbaf112b77bb6eecdd205133356167"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): user/manager.go:763-788 | user/manager.go:791-813 | user/manager.go:889-912 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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":"user/manager.go"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a3febc48ec72e9d87b5b9ef4664449ebab12d40a46ba9b2da2d089200770f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): limit/peers.go:70-88 | limit/peers.go:129-148 \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":"limit/peers.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d166a17db66d8b7776a93ce8a8f50dd9eaed16c8ab32273ee8d8d3b622e7021b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): server/server_account.go:749-766 | server/server_account.go:770-788 \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":"server/server_account.go"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f7d58121a4d4fae61b71ccc157f5ff21464edac7fa34a58ed136869b0a8b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): server/server_admin.go:264-284 | server/server_admin.go:378-394 \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":"server/server_admin.go"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"394bef469772b1e37480b63d7433dbb0facc0b4d37dbbbed1da6eef6b5de995e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): limit/counters.go:51-64 | topic/service.go:87-104 \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":"limit/counters.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea54595e9d5db254bd92b84ef644d1079c930c392f65a431448a83e79176aedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): user/manager.go:1260-1268 | user/manager.go:1271-1276 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"user/manager.go"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44ac36610f10169793496fef91122c615397ea7253a4667c3431a8a16aa1e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): limit/store_sqlite.go:43-57 | topic/store_sqlite.go:43-57 \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":"limit/store_sqlite.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a088c0baafb0b0e17b306934cbf372265609f2647157356eb79b65443a51a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): server/server_manager.go:146-166 | server/server_manager.go:168-185 \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":"server/server_manager.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"afca6950870ec2baf43b7120e257a38e440770c883cc45e8728e8c18bae4f5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): server/server_admin.go:475-490 | server/server_admin.go:492-505 \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":"server/server_admin.go"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c9d2ba8f7b1e6ab3adafba2111e9748a7fb1f03457391d62ba180622d7fe3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): user/manager.go:1148-1166 | user/manager.go:1168-1185 | user/manager.go:1291-1308 | user/manager.go:1384-1402 | user/manager.go:1437-1455 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/manager.go"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"26366e6615bdf712e899335aea773b257fedd02bbbae01cbeaf0916eb48dfbf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): user/manager.go:372-389 | user/manager.go:392-405 \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":"user/manager.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b150619954300a757337b9e38ad2d24e3a0905d2d563fd1e27ba65c4a6c148d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): user/manager.go:1531-1552 | user/manager.go:1790-1803 \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":"user/manager.go"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8029b2de33a9a2c6b92cb79a2289537fe3897e8c3f1d6037e8836cd8769908"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): limit/service.go:252-265 | limit/service.go:269-281 \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":"limit/service.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99a2366177b88600db50e2708c9ad37e7769b495804a2986ea3da19dbad35d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): limit/service.go:205-219 | limit/service.go:231-248 \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":"limit/service.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12436259aa92a7a7afaed384b34facd446dfe5917f2c8989c6eba356f68796e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): attachment/backend_file.go:49-67 | attachment/backend_s3.go:29-43 \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":"attachment/backend_file.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74e54ceec5615085db5b56155b1e6e762e35bf04c3742b9e12dbdee14093d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): util/util.go:288-299 | util/util.go:302-313 \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":"util/util.go"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e34dfb3d5a79c91b91ecf1ef3e465ae8a0cd9905fbdeefde420e21fd078928b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): message/cache.go:462-476 | message/cache.go:603-616 | user/manager.go:517-531 | user/manager.go:940-954 | user/manager.go:1009-1023 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"message/cache.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"337fd00b0a16b1cc0e920c36520717d8edcdf24abd41dfe59fac9dc758c2050a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): message/cache.go:512-523 | webpush/store.go:108-117 \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":"message/cache.go"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba7b7fe733fa7cab0c1f37de949c0d55197f4fa150f2f276c0e70bb544c0539"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): user/manager.go:215-227 | user/manager.go:307-319 \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":"user/manager.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e98925b3e6f5bcadea12c449e114554d5267f5ee05d5be384998320d3264fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): user/access_cache.go:137-151 | user/manager.go:130-143 | user/manager.go:423-436 \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":"user/access_cache.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9d25307371ba15b05516a78c5b7b616520d11030a6befd79e4a91c9270e425"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): db/pg/pg.go:115-126 | db/pg/pg.go:136-147 \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":"db/pg/pg.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"081b34f54e2ef7c359e4e57e93ad54e7c391200cc38c6fabfbe3e4c80a219c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): user/manager.go:1478-1488 | user/manager.go:1493-1502 \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":"user/manager.go"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1593ecf1307e715a92ac94d506b48d7edfb76d2aff939b99d0c76f9d8a9946f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): message/cache.go:686-700 | user/manager.go:545-556 \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":"message/cache.go"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"e911b5b5ee35c858aa166da11237a041b10c8b76acf58923c1d7ecb2c581c283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): message/cache_postgres.go:161-166 | user/manager_postgres.go:335-340 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"message/cache_postgres.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc8fbcc3a7dacfcfdbfbec33bad512acafb13c65da7b7fa4dc3df965e433d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): user/manager.go:1138-1145 | webpush/store.go:88-95 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/manager.go"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc3567b3db0a29df10112142694cfc46f34c0818191d8f5eb3d6ead7797a2d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): user/manager_sqlite_schema.go:427-437 | webpush/store_sqlite.go:105-113 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/manager_sqlite_schema.go"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"43aeb337f8d026a867a1719c6210623b833ddc30081326982b94b5f91a16bba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): user/types.go:191-197 | util/util.go:110-116 \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":"user/types.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"9529116dea18027faedc5856cc31343f8438c318788dc35bfd7ffef1af71c990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): server/server.go:1765-1788 | server/server.go:1925-1948 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060server/server.go:1762\u0060 calls \u0060Header\u0060, \u0060Set\u0060, \u0060WithCancel\u0060 and \u0060server/server.go:1924\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":"server/server.go"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"27988c6338c8ec580954e8a0e215ec5ee71e0dc61d303de0dfe071eca8286223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): cmd/publish.go:172-194 | cmd/subscribe.go:113-135 \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":"cmd/publish.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe8ab235f18aebfa8b718bb5bd96e6094074e124945d0bf92492c863d26892f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): cmd/config_loader.go:43-60 | tools/pgimport/main.go:406-423 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/config_loader.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31f06fdf5ecdc06f1dc7e4ac7db1f409e7afede821286a9a3dece4c47abe82d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): message/cache.go:560-577 | user/manager.go:1323-1340 \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 \u0060message/cache.go:560\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":"message/cache.go"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"df968cd8833cfe19d9b5be69c8bffd70becbe88e4d7ad4ccea5fe0f090473a4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): server/server_payments.go:122-138 | server/server_payments.go:283-299 \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":"server/server_payments.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3857bc2cbd8acedcc903740ecc457fef6c7708b97a1eea661c98559b0d704e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): limit/store.go:97-112 | topic/store.go:83-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"limit/store.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51bc5774a0302dae9db371875b4178e7983f5f54bf03e0fc987d772d7634a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): user/manager.go:1151-1166 | user/manager.go:1170-1185 \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 \u0060user/manager.go:1151\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":"user/manager.go"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d554af57698bdcc2630c8f5ad25e5a881c081fdbb9a28ca506edf19791dfef88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): message/cache.go:794-806 | user/manager.go:1513-1525 \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 \u0060user/manager.go:1513\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":"message/cache.go"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"da34865cfb0021ddf1fa663ffed89a033e3b84e5b5cd1514c1d454a9b2dfcc81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): user/manager.go:595-606 | user/manager.go:1369-1379 \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 \u0060user/manager.go:595\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. 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":"user/manager.go"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fc8eed5e547cb1978569488889c45b11fbc5c6cf635e78d3e3738414bb4b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): limit/peers.go:71-81 | limit/peers.go:130-140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060limit/peers.go:71\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":"limit/peers.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbc5c8df7012a8b67c3836d27c746a2ad96728f58ead6d4c1f497ce79a05e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): limit/service.go:191-201 | topic/service.go:108-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"limit/service.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb31deff918e8603e53876f93b1d9f41c245c4518bb914ab09d0f7e3f840743b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): server/server_account.go:315-325 | server/server_account.go:361-371 \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 \u0060server/server_account.go:315\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":"server/server_account.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"069dc4fa41f2196556c40b6bb19133c23fdc0ab752c09345d1abb51834abcdf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): cmd/user.go:271-280 | cmd/user.go:296-305 | cmd/user.go:379-388 | cmd/user.go:416-425 \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 \u0060cmd/user.go:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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, \u0060cmd/user.go:413\u0060 calls \u0060New\u0060, \u0060AllowedTier\u0060 and \u0060cmd/user.go:269\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/user.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"650535286800a1882835ea1feca53d6467537b158d52417e61e067cc6ac71800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): server/server.go:1695-1704 | server/server.go:1823-1832 \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, \u0060server/server.go:1821\u0060 calls \u0060logvr\u0060, \u0060Tag\u0060, \u0060Debug\u0060 and \u0060server/server.go:1694\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":"server/server.go"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a803e7ba38eef7a9f0573713dc789a5a05c580b2a51ebc1d15899b3661b9d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): server/server_account.go:78-85 | server/server_payments.go:72-79 \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":"server/server_account.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f45f39004ef6efc485d6fae870ca0d7b00d709fd03e3211ee31334c6bdc8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): server/server_account.go:750-756 | server/server_account.go:771-777 \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":"server/server_account.go"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec0e755f9736e6d59bf1647ffc876565d76fb3c68758f8603645f3d6045fcc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client/config_darwin.go:11-18 | client/config_unix.go:11-18 \u2014 before extracting anything, compare \u0060client/config_darwin.go\u0060 and \u0060client/config_unix.go\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"client/config_darwin.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5975f997c278c6c38e87c153400b098cfdcc4498328a6062cc36df59c077d9f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mail/sender.go:73-77 | server/smtp_server.go:74-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"mail/sender.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"604d7e646482073af75180964b6a0a8af0053baba80ca41170540c6d31fb16a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): limit/store_postgres.go:33-44 | limit/store_sqlite.go:29-40 \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":"limit/store_postgres.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f531b0581dde7d43f92df4126605c5a419da461721635081e7a1769a65142035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cmd/token.go:148-157 | cmd/user.go:330-338 \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 \u0060cmd/user.go:330\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/token.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8264e5ae220cd41ecc935672958943f36ad72ef9be032457ce191f83c18e2ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): server/server_account.go:716-721 | server/server_account.go:809-814 \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 \u0060server/server_account.go:716\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":"server/server_account.go"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb581537c63b37bdd7e6ebfc2157c840a83facf92e9a567054bca2100043718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cluster/cluster_mesh_handler.go:24-28 | cluster/cluster_mesh_handler.go:45-49 \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 \u0060cluster/cluster_mesh_handler.go:24\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":"cluster/cluster_mesh_handler.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb69bf6ebfb2192aa7d2102a8135fef36be0fd0993f7f5fd9db0b7f2b2e4cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): tools/pgimport/main.go:515-549 | tools/pgimport/main.go:551-594 | tools/pgimport/main.go:596-632 | tools/pgimport/main.go:634-668 | tools/pgimport/main.go:670-701 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pgimport/main.go"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee5cdf469cd45496fcf75d8ff55153aa0316580ac87329f60a07568bc315c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): tools/loadtest/main.go:323-343 | tools/loadtest/main.go:361-379 \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":"tools/loadtest/main.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3224d07dde3beedcc76b5dfb41ea5d39ccfe7643e9c52fe11fcba6b30a2fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): tools/pgimport/main.go:239-254 | tools/pgimport/main.go:326-341 \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 \u0060tools/pgimport/main.go:239\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":"tools/pgimport/main.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"2724d8a67ad9abd673e98cce2f5a66ebbda288799f1dbcd1269cc1307b6e36f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): tools/pgimport/main.go:520-534 | tools/pgimport/main.go:556-574 | tools/pgimport/main.go:601-615 | tools/pgimport/main.go:639-653 | tools/pgimport/main.go:675-689 \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 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":"tools/pgimport/main.go"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"c328b52499be26a3fb1c6de607f0a06933fc730608c2c5f6ee985d1f3fe7ba29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/loadtest/main.go:329-339 | tools/loadtest/main.go:365-375 \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 \u0060tools/loadtest/main.go:329\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":"tools/loadtest/main.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b65c48c8b8cfd7d4f31ea9950366bb67a16e6f6a90246ca16ef483514aa0de2"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 web/ runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/account.spec.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"de66981feecc46b8b7dd58f080a3e9e0fb7666a5e6199690ab27175c2e531714"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/account.spec.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"699af718da0318d5377a80025f90956772c43489256487c0713c81021ffda40b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/reservations.spec.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d298077b998291ad36a65b518e776a98086d111f747dac0f72c974eace1e4b15"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/subscribe.spec.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8a770faf61f45059c880c6c0e511e87754b891e8f46bba18571715fff3bdf2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/subscribe.spec.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"96449d43534720094eac2b33b9fc84fe891310acd7d3684bdc4468f518d95df8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/subscribe.spec.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1413e11b839f2131df8c4e850d54b51ba06123bd8c96bd90eaa66bbea25f1443"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/tokens.spec.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82e6809da2c5ae370d010086b95d22f1d022ed3fe5751750b9cf4c9887b1c26"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a new message is shown: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/notifications.spec.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead7545d534af4b956dd06285f364b0e0d3a73a6eac8841e999d023d64193137"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: not below the minimum priority: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/e2e/notifications.spec.js"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bb1aed4c314f78acaa50f8596484ccbd9f37fbdb95027ae144a24f356138ea"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: applies language, notification prefs and subscriptions from the fetched account: This test sets up 4 test doubles (for example \u0060vi.mock/jest.mock of an imported module\u0060) against 0 real object(s) of its own, and its only verification is 7 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/AccountApi.test.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb6669285ea2cec2fb056fd47f71dfb7e76e6c27b61427c3741a4ae2b235724"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::heckel.io/ntfy/v2/user.TestManager_AddUser_Timing: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"156bf12ffd1ff4252bbf6e457324540920c51970b13e5ac2fc0ddcd2972cc831"}},{"ruleId":"D13","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eda172057b4330d43638cd382636243c77460fa98ad0074625c5baaa66ea9526"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0cc8600622edf01d0d904837c65cb2a51a6ebf4431306c6153e2443bcfe32fa"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"efc2d2245359af3f0687bb8cec555e07da0794e092e146a71bd3a84e3ae92aca"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: server/server.go: server/server.go changed 112 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 166 in Server.handleInternal at line 769. 3 of those changes were fix/bug commits, and the other 109 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:04:18 \u002B00:00\u0027 --until=\u00272026-11-13 11:04:18 \u002B00:00\u0027 --full-history --no-merges -- server/server.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67bc877ed54df09f812b32aa4c1c6a36a97f4554c1e3b93af74259e5f348f68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/serve.go: cmd/serve.go changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 168 in cmd.execServe at line 153. 2 of those changes were fix/bug commits, and the other 20 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:04:18 \u002B00:00\u0027 --until=\u00272026-11-13 11:04:18 \u002B00:00\u0027 --full-history --no-merges -- cmd/serve.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/serve.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"52dc84083c374abeb72753a2e529b4fdd3d2a29a30dc19dddcfcefb67d8334bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: server/server_admin.go: server/server_admin.go changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Server.handleUsersUpdate at line 167. 1 of those changes was a fix/bug commit, and the other 35 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:04:18 \u002B00:00\u0027 --until=\u00272026-11-13 11:04:18 \u002B00:00\u0027 --full-history --no-merges -- server/server_admin.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_admin.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e342ab551ed672e93e4e1ea1899a6b1b86f0295249c2a504745af53b54498b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: db/schema/schema.go: db/schema/schema.go changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in schema.Migrate at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:04:18 \u002B00:00\u0027 --until=\u00272026-11-13 11:04:18 \u002B00:00\u0027 --full-history --no-merges -- db/schema/schema.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"db/schema/schema.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38eff342ab581dbdbd18943e33e6d398f22245056c3084e8a1114d7a6807737"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/components/Account.jsx: web/src/components/Account.jsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Account.Stats at line 840. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:04:18 \u002B00:00\u0027 --until=\u00272026-11-13 11:04:18 \u002B00:00\u0027 --full-history --no-merges -- web/src/components/Account.jsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afa106a7b063edd1c2ad8715e1459faf62f9590d38e193a53a2d044b8364873"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/components/Navigation.jsx: web/src/components/Navigation.jsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Navigation.NavList at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:04:18 \u002B00:00\u0027 --until=\u00272026-11-13 11:04:18 \u002B00:00\u0027 --full-history --no-merges -- web/src/components/Navigation.jsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Navigation.jsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd68cd1b900e4a22572e5571def39a1f76ca3398987a5e64cfd9d3615e2c203"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 67 significant file(s) lose their only recent owner: server/server.go, user/manager.go, tools/pgimport/main.go, server/server_account.go, server/server_admin.go, message/cache.go, cluster/cluster_mesh.go, server/server_payments.go (\u002B59 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b9c8777cfa50af930d527104bb7e602b21568d7666930a3df4c3d167e35eea01"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: If the time is parsable, but not in the future, \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"util/time.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94b6eec95c02afe4396041cc1e1b6a753259bdfacbf5af988647fb3a76cf6f6"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: Enable auto-provisioning of users and access grants, disabled for \u0022ntfy user\u0022 commands \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/types.go"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a1161ad6d71584565324eb486d40cceec281cf247d7c47908d1897ae5915ea"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME document limit \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/errors.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf9d696ca6bdd38a857c4bb2541e75bf6a773d84bf1d0d9bef32cb5bb270371"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME document limit \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/errors.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0009bc89c41a2ae09320e1b59bf1b288aca817461fd96c46757a3c8d7808e28"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // CORS, allow auth via JS // FIXME is this terrible? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":2122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aca49c9ef76ebc8a39a714c606ec2e6cc37dbe1fa817238f19d60ebcd464928"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME super inefficient \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_admin.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"73db51317b1cd18a6694696359e2089042be4ab3a861aca691ba205eb9a0e43c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME How do we rate limit this? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_payments.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c960326b51adaade883d2801a6e556a127ab540dcfbf89ccb2b06df64213dd1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME CI failing not sure why \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_test.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0cece7d59c03146c22da8481a0b16acd461215f32091834eaf4f3164cafcb8"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack! \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_test.go"},"region":{"startLine":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25c238b413e2af6f6e8b231c663629d48ffbc640a3f1d5f7fb6cd5d1a08122b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_test.go"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42f1b3939dd7ea51714655be04cb2b559b96256298f405351b9bab41634b54f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server_test.go"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1a1d10a5219ed336c2de7ef41b934db129574d716d6ef8faf7067450c21c81"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/publish_test.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93416d060b1ce29da132a11645faeb0829ef2a6564e97d57cce5b1416b85923"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: Do not re-provision users on manager initialization \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/user.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"61062759b5a262e4f0bf21c737702b54a03f76e5ca403bcbdc854382885b6096"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO combine with server.message \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/client.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec52354d914fabbabf67575aab813eac6e903c9c6da61ddaab1256c31cae979"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO The retry logic is crude and may lose messages. It should record the last message like the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/client.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f72753c34dd5bc47bfa25e8f684c08645769e3e3cf22257d36222b63bef24e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Add incremental backoff \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/client.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7eb117390efb0f71ce3bbd66c6708551e0e856046654fe0946665c3463d724"}},{"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 \u0060main.go\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a3e98f9a3db0a104ca87a623a16ba8fc33487b53a279d445cb50087c399a8a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find the latest notification for each sequence ID\u0022 repeats the code it sits on: 4 of its 5 words (latest, notification, sequence, id) are already in \u0060const latestBySequenceId = this.latestNotificationsBySequenceId(recentNotifications);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/Poller.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c275dd193996e4127da4d942368d7ddcc87a793f30c229bd1ab86f8c5df99baf"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if an event is a notification event (message, delete, or read)\u0022 repeats the code it sits on: 5 of its 6 words (check, event, notification, message, delete) are already in \u0060export const isNotificationEvent = (event) =\u003E event === EVENT_MESSAGE || event === EVENT_MESSAGE_DELETE || event === EVE \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/events.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ed76552f7f4e20aee126e189dc5db2df6c8964f469976bcdfc6ccd976c0eba"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060(repository root)\u0060 (30634 LoC, 156 module-visible types across 38 directories). 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":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"bdca820aace396db7efb79c76c364990cb56bb9d15bad820edff846112638f5c"},"properties":{"commitSha":"344031b575dc85e0fd164473edf5d1ecb400a578"}},{"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":"9ecbd5a50785d9bfe1b6c248dbfff0a1a56fe8141528db1f6318829e5b052cfe"},"properties":{"commitSha":"5cf92c55c647107067271211a54eb7426752a46e"}},{"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":"b707be0776d2defee7c084cc045e04afa97200a26e49a70b2792702cb333f428"},"properties":{"commitSha":"f99801a2e6d8c7675fd624ff8e16075dce734f4f"}},{"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":"9b2e5947d604f7acd2ce575319738b3e21894a814a4b7f6e131d980812fc2508"},"properties":{"commitSha":"86b20e8ccd004c741e00619a7f7a964209f8b9b8"}},{"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":"09df41eee395ad187779e7009eb81af8c6629d5d2d9d35e48dbe26ae9eff5475"},"properties":{"commitSha":"86b20e8ccd004c741e00619a7f7a964209f8b9b8"}},{"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":"333e6d3d927179ee3f1e55e5fb0644acfadb5fc84a6a9985c9ff7a1c55349a26"},"properties":{"commitSha":"86b20e8ccd004c741e00619a7f7a964209f8b9b8"}},{"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":"aa7e6faaa28465d314d20525ebf00284462e27fe2e3e4cf03ab80b2f0a68886c"},"properties":{"commitSha":"12875945057600a4f5202f981d3b3f1e10c03614"}},{"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":"90270307e86abaca9942b4b7f431e9b18b753ed62e6fd61d2c7247f5b9027b81"},"properties":{"commitSha":"12875945057600a4f5202f981d3b3f1e10c03614"}},{"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":"2de8e64d7c294e37e1a765048ec12da189e792b5df17fb4a4e7f8648ccb84ef2"},"properties":{"commitSha":"b908f07355f2b5b2ce5f1b1168eaf0de6d3323a4"}},{"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":"b2c34b2341948f4748e7d0e99f7bbe5109f4afc44554494c24157f12d9be7bd7"},"properties":{"commitSha":"12875945057600a4f5202f981d3b3f1e10c03614"}},{"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":"30b5961d19cc638a67d701ad820b55fbd11fbdd5a436f9b6868a15b318ad3014"},"properties":{"commitSha":"2fb4bd49751247f8404bb06341c04e5495a6d127"}},{"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":"3d3446d73a0df75dae69c61c595a5e19486e1fc0a95b7900b7370f2b52e812e1"},"properties":{"commitSha":"d4c7ad4beb9fdbc3a3301f9b69997f01e7b4a1cf"}},{"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":"fc01a0712fb380320ec998e550884f478d1246d81d861f2eaf4d6337fdbf000f"},"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":"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":"8644da3af93b65e0c2996cc1e4cab33a60afd9c666d1238bab34ef820e1c4a03"},"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":"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":"673f1d4d95b29d8e48f94f3ee3557758e69205cce2f3e801d05b48fb7372f47e"},"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":"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":"ce2748087799bbacb31e1aada283bcef1bc3af217f10347db083c730995065e7"},"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":"8f7ff28d84fe3aee27364f276caafb496c87d43a500a026b2ac9f19fc8809651"},"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":"b37a0c8d5412fde92558ac9925e16f44e46432b0c4c6a254541da851a9509b42"},"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":"31df05d1c36a04ccb445ea1d0a421d0e40ce60b69b257250b9913875d973a3d3"},"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":"69dbdc3e6f4ed3f180bd49a72d8b2b98b3da9132956d9511cf3ae38c096fe471"},"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":"7a0546d206e05d9a9525626ec6a8015de4f5487e7f74cc3f843eb13fca13d152"},"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":"28195c748a1cd2c565f17a149e7a21ab77083ac3dd5680ee39ed4b7d8de61f2d"},"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":"f3f648db68070fb616dc39866555f3670ddde396d1b6e1ecf2ae3071cb3f7744"},"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":"bbb570fc79beb12fb2dc4f25038ca4678e631704c3c7e302d8cfd4bfec761b0a"},"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":"3eae44e8e708fb81df46bec72fc9f6865462c76e54b83ace2aaf21960733fe39"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","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":"5a31be96035f143b43b1c57fe776672e21760309b6f4fedddcf92c812b151f05"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","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":"17f85ead09c4ec3515f991da591dd9fdacc04962767d639ab291e3dc21e79ef1"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","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":"e9fc05a47234e5ba05fc0b823e6bf0b947455c16776674fd7b676923d8c8dbb7"},"taxa":[{"id":"CWE-328","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":"9411eab179a54c0061c1dd68c45fdb836ae6f385c7443a8b6f76e45a0086657c"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5fff64c0689bb010cad88e578dde3721862c63776683f3cd907c199c1bc2b87f"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47c6737c0b4cca92fcb829cd1c57a2fb9fa1f73ae85aa533f14e11206bbd7db0"},"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":"3fb49a1a6a98d90032932b91b87858764d60e687c096f4ca4d213ea165a3e8aa"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9042347813aa57ae5c5328b2992b9d23dcb83af08df8f228ac22e3d1dd286465"},"properties":{"dependency":{"package":"glob","version":"11.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"f7a3cfdcf0af42325e5befca57277578382f27acb2875a120a8d639c8e635ee2"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"d871eaec7afc64c3225d64a37dbfd5e326ab58b18c870ebce65305058d243058"},"properties":{"dependency":{"package":"deepmerge","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2fa61ae0bcfcd50bb9c44fa2d665452903e2524c19a4652162badcced7077fef"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"40308261b358174d0e89ae9b0a61861e9289b416ad720c628cc3fa8054d41237"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"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":"4849560ff0e17f5aa164ac2cc45ca7663a5e37f8f8ddcd3504c94500a07ffccb"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e83b518b7f52f2dcaa5ae6040062bb11c1eb9b8af4b47d50866778e1f843e3bd"},"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":"becbc5502f94878197b05d70c7ef15f1353fd99a90efcb824b9c43f11ae5ce7a"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cd56c50de84b81c982953df82bb295aeb7389554e0efe5612c35db6e0962a08"},"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":"0b2c1d2c864c3191d99833806c7b5526883bf62cb49cafa39ec8da8690c0c5ee"},"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":"6bc50d99cd9029fa7bd0dcaff14adfaa1d61afb1806fc5e3eacc46244eb88339"},"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":"c8ac18815b7668b957c8daa840650a4cd09d18bc7cbebd031863bd8ff49e6eda"},"taxa":[{"id":"CWE-754","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"27c53897d93306e87cf8fddc8dcfc143e60f3a9d6ee70704ce0b158c76d29a38"},"taxa":[{"id":"CWE-754","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 107 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 107 of the 164 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: util/sprig/list.go. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"util/sprig/list.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae534414a95a7cccb7a61a7f48dcb6bd0ac55761cfc2fd4a6bb6ec8ea0f6f5b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ConnectionManager.js \u2194 App.jsx: \u0060web/src/app/ConnectionManager.js\u0060 and \u0060web/src/components/App.jsx\u0060 change together 72% of the time (13 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u00606869d166\u0060 fmt; \u006046798ac3\u0060 Make web push toggle global; \u0060fdee54f9\u0060 Account sync in action (at that commit the file was still \u0060web/src/components/App.js\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/ConnectionManager.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6961d31eb7c6d70d06c7bf3691dcc4a61f49f5d14d4fc8cc3adfa44a5d98baad"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: server.go \u2194 routes.js: \u0060server/server.go\u0060 and \u0060web/src/components/routes.js\u0060 change together 67% of the time (12 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u006033ae3105\u0060 Phase 3\u002B4; \u006030dd4840\u0060 Phase 2, email verification rework, ui stuff; \u0060e6bb5f48\u0060 Self-review, round 2 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"667bf3919dc8e8b96401752735791c844d73af30ce0139711cd7aa26d754a8dc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Connection.js \u2194 App.jsx: \u0060web/src/app/Connection.js\u0060 and \u0060web/src/components/App.jsx\u0060 change together 67% of the time (12 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00606869d166\u0060 fmt; \u006095a8e64f\u0060 Figure out user manager for account user (at that commit the file was still \u0060web/src/components/App.js\u0060); \u006030726144\u0060 Finish web app translation (at that commit the file was still \u0060web/src/components/App.js\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/Connection.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed17793d1d828a768314d49bd923cd15dac55bad7e8ad18907a15855b854e8a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: server.go \u2194 config.js: \u0060server/server.go\u0060 and \u0060web/public/config.js\u0060 change together 54% of the time (13 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u0060cc9f9c0d\u0060 Update checker; \u0060e8139ad6\u0060 Move web-push-config endpoint to config.js; \u006092c38437\u0060 More self-review \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a109902527070318f975aab3af93c3fe97c09e30020c807b0e326f31e7d28d8f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: tier.go \u2194 config.go: \u0060cmd/tier.go\u0060 and \u0060server/config.go\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006036b33030\u0060 Add message-{size|delay}-limit; \u00607c574d73\u0060 Cont\u0027d Twilio stuff; \u0060f99159ee\u0060 WIP calls, remove SMS \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/tier.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3be606b9d7abe122d2bb3ca4f9bd2f35329cea79580f8e0652a4ad2e9183c0c"}},{"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":"db5b1b88c6d574d6965af789ad60c2326d773896afb95fdfd884edfa1c59bc33"},"taxa":[{"id":"CICD-SEC-7","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":"7e37904db2ccbc85e059aeb48973ed8e1f6e6831834f4b40800c83663672d401"},"taxa":[{"id":"CICD-SEC-5","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":"b7b53d5a099578d3d4c48fd54f2bbc1634be69e08fa858c78368cd7e92d1d9d5"},"taxa":[{"id":"CICD-SEC-5","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":"fa704d87d3a54ee8f9602e897f9959cae44793f66341b12c09c3d47ac909e9ee"},"taxa":[{"id":"CICD-SEC-5","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":"d339e23018d6ba57a64e7789bce515a9b72a731c2f4069852406dd1012e4a611"},"taxa":[{"id":"CICD-SEC-5","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":"docs/static/js/config-generator.js"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"469dff69d342128b708715e271e72c30156db6d49d104a2cb8eaa259cf0aed55"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"569d494e998747ec120b090a7d1e12b2edd6de736b5a749aece4a70bbdd8e155"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19caacdc83533e71319aeab840595758d0a96afe9ca959925e82286907384d0"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d6a4504f435e584ef1a4a14635ae5972e7dbb6e4fc13430d2a6cf39a2ce44f"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ae3e188bd121e46355ba6f082e46554627b68568c8ee153935a13b30a235ec"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f6e24ec4b6d91a494d84eaada4e44fbcf6b78ed69a2537b5ffe42ce2dc2ca4"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"81414fb4ae71b59eb7cd8b7af7503b0065933591e51bb9118d7554beb2171641"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e2ca3955214d4e0435cf69a2d3a7b92143d7fa14f35a8d1906dfd55884b133"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"6106b1f8361043b82bff3c776f20d6c0a00af27961026dc7a0a374fbd84b2369"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\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":"docs/static/js/config-generator.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f2d0aa18336ddab8093b50f97d0d89f9101499a61b6ebc5bd52e3aded88b80"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\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":"docs/static/js/config-generator.js"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd405bd79723ef4394d08e2b6c65b3882f5d2c47db1ef3739214b33d1c7165b"}},{"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":"docs/static/js/config-generator.js"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e305f8a5b80b9a68f2a4afdd27210cdebeffea92214e3e8d9b21f71d0db31c"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CRadioGroup\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de285d3d8f0ffd26ca76c1be5384965967afa22318381e791520320d0158200"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/ReserveDialogs.jsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb92786be934671f02efb6a4f7ff81a81b587f207bdd4e9041d9dddded189cb2"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CAutocomplete\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/SubscribeDialog.jsx"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"980db2eb37cde5f7a05fed7ceb9178ee8a58791d1535d567c7b27ee1c8200e74"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/index.html"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"531fc4a7c4b416d0d56618ce3fa5033014c41239c7fed30cca9a19701a65ae67"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .close-lightbox with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/static/js/extra.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7becdc8a5eda38f0bcb0ebeb394761b311fdf7da82e2a25196029c17cb139f2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.0:1): \u0060body[data-md-color-scheme=\u0022slate\u0022] .cg-mobile-toggle-btn\u0060 sets color: #888 on background-color: #2a2a3a \u2014 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/static/css/config-generator.css"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d775e2e83105095db724ebbac68d7e8170a0637c925bdfdb607fd53c28e526"}},{"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":"P3","level":"note","message":{"text":"Dependabot does not watch pip: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060pip\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf68ee1ea2969cbbdae4336ca738b5320c565628ea6ee894219d523831dd0f17"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"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":"twilio/client.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de0bcf6db5a0266fbb46e5199534f8c354ca99f8f89cba730ea283a044457a9"}},{"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":"twilio/client.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a883bd041ce91d847ca7daf81b7a8bd25938d14fd4629ba499503a815d0279c"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 81 plain JS \u2014 the untyped files are web/e2e/account.spec.js, web/e2e/env.js, web/e2e/fixtures.js, web/e2e/navigation.spec.js, web/e2e/notifications.spec.js, web/e2e/publish.spec.js (\u002B75 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (79 matched lines \u00D7 2 locations): web/src/components/Login.jsx:17 \u00B7 web/src/components/Signup.jsx:20 \u2014 the two spans are one implementation copied and then locally edited \u2014 483 tokens are still identical, in the same order in both files, 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":"web/src/components/Login.jsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f62155460c400a583b9203d724dd8cdac27d3176dfd0d683dca10a037c2d2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (53 matched lines \u00D7 2 locations): web/src/components/PasswordResetRequest.jsx:16 \u00B7 web/src/components/Signup.jsx:21 \u2014 the two spans are one implementation copied and then locally edited \u2014 316 tokens are still identical, in the same order in both files, 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":"web/src/components/PasswordResetRequest.jsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a89989adf42184cd56ba13753e6e31205a4ab451493c57ed13fd09adc46335d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): web/src/components/Account.jsx:158 \u00B7 web/src/components/Account.jsx:1386 \u2014 the two spans are one implementation copied and then locally edited \u2014 246 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":"web/src/components/Account.jsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc8b00e3bb8c99478baddf91a8a1a11d3184c804493cbc400b0fa044b3de94c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (28 matched lines \u00D7 2 locations): web/src/components/Account.jsx:1212 \u00B7 web/src/components/Preferences.jsx:480 \u2014 the two spans are one implementation copied and then locally edited \u2014 149 tokens are still identical, in the same order in both files, 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":"web/src/components/Account.jsx"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb3bc431ba454f0a08aa99937843e75632c775a65c5d5d89742c5ac14e7d134"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): web/src/components/Notifications.jsx:572 \u00B7 web/src/components/Notifications.jsx:598 \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":"web/src/components/Notifications.jsx"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f6c209333a0de9bffb4bbe8cd3fd86f0c383808daa127ceb1db8b272bce49f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): web/src/app/AccountApi.js:362 \u00B7 web/src/app/AccountApi.js:388 \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":"web/src/app/AccountApi.js"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a91a034b60ba2e9981e551af2a21b7e502dfaa0868a33d2ad97c0b6791dddaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): web/src/components/DialogFooter.jsx:5 \u00B7 web/src/components/UpgradeDialog.jsx:261 \u2014 the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/DialogFooter.jsx"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d81f073bcd8acea06bd673e3dde3fc3d0e8daf89d87b216ed88cdfd79fdc421"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/public/sw.js:166 \u00B7 web/public/sw.js:198 \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":"web/public/sw.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1b2479273ecd33502069143e712b8cebf89205897ed7496dcd46114ba266ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/src/components/PublishDialog.jsx:390 \u00B7 web/src/components/PublishDialog.jsx:760 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/PublishDialog.jsx"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c226579a5cadaeb63cd8f37e6c834d6c0547e85beb1618b75cc7fdbb1510cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/src/components/Signup.jsx:83 \u00B7 web/src/components/Signup.jsx:111 \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":"web/src/components/Signup.jsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e998d4b5a8aa33e881b306ba97e74552127fc43463a8145de47fa28887b882e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4 locations): web/src/components/Account.jsx:860 \u00B7 web/src/components/Account.jsx:893 \u00B7 web/src/components/Account.jsx:923 \u00B7 web/src/components/Account.jsx:954 \u2014 all 4 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":"web/src/components/Account.jsx"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50482613941eee4f7ddfdba7ee5e567409a2d6b5a1567e71221f205da561ab4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/src/components/Account.jsx:551 \u00B7 web/src/components/Account.jsx:708 \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":"web/src/components/Account.jsx"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"1663951f121e88b758e1d30ab7f1c381a7dc1a4aaeb253ce515f53e5fa4cb645"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/src/components/Preferences.jsx:272 \u00B7 web/src/components/Preferences.jsx:314 \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":"web/src/components/Preferences.jsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a0f3ad0043727e6591a0b4a6592e6cff77e8e0559ecbca630def32991db078"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/src/components/Preferences.jsx:372 \u00B7 web/src/components/Preferences.jsx:422 \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":"web/src/components/Preferences.jsx"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa485c2e1be2ffebe5b37f4ebd49461786d2560f818bb3a486ccbce3453c707"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/src/components/Preferences.jsx:450 \u00B7 web/src/components/Preferences.jsx:775 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Preferences.jsx"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdd5ed50e8e770b1f7b4daa7b488c3e2ae8f9e704b1c84b2742cea723d5df17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/src/components/PublishDialog.jsx:504 \u00B7 web/src/components/PublishDialog.jsx:642 \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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea9c1ff292b876aa9f6da30f4e42d70152f432ca3ae30900ef31efffcb790dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): web/src/components/Account.jsx:886 \u00B7 web/src/components/Account.jsx:916 \u00B7 web/src/components/Account.jsx:947 \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":"web/src/components/Account.jsx"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5a034b7bb76e57852aa215a798251daadcbdfb493816e986be547d4db08ba8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/src/components/ReserveDialogs.jsx:79 \u00B7 web/src/components/ReserveDialogs.jsx:119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/ReserveDialogs.jsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1403001244699f682eb67974383fc92e025b4eb1b260f64b8a7d319894765d49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/src/components/ReserveDialogs.jsx:101 \u00B7 web/src/components/ReserveDialogs.jsx:139 \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":"web/src/components/ReserveDialogs.jsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b7e3334354f97fb2719f89e5c744d0602ee0f98996ab687b6c9230e630e756"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/src/components/SubscriptionPopup.jsx:213 \u00B7 web/src/components/SubscriptionPopup.jsx:241 \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":"web/src/components/SubscriptionPopup.jsx"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"312f946fe7af50bb7d765a4e00b0c179b5b8eaa606f358dd55c00918c0b0685c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/src/app/AccountApi.js:194 \u00B7 web/src/app/AccountApi.js:212 \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":"web/src/app/AccountApi.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ec2fb504e8551f56b39ac9e82abd3f48fe2755b2b2009f01be27a8425cdf87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/src/components/PublishDialog.jsx:430 \u00B7 web/src/components/PublishDialog.jsx:528 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/PublishDialog.jsx"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e98036174b3f5677c0425c1e16be054a4dbcad97c04327c38681ccf8a29dc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/app/AccountApi.js:109 \u00B7 web/src/app/AccountApi.js:413 \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":"web/src/app/AccountApi.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b938cd38a258860b4063040b28e0367ad70c36664eb6a650f33fb1542f1555"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/app/AccountApi.js:316 \u00B7 web/src/app/AccountApi.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":"web/src/app/AccountApi.js"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca84cae1a162467cf67f9d75650d2516939a716fd1566f5ecda30ca0636d794"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): web/src/components/Account.jsx:79 \u00B7 web/src/components/Account.jsx:1339 \u00B7 web/src/components/Preferences.jsx:596 \u2014 the 3 copies are spread across 2 files, 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":"web/src/components/Account.jsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"801b3eb73dcb9d7387b3ce0e5af0bcefa712f43dacfe42bc443250a8ac6b2468"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/components/Account.jsx:358 \u00B7 web/src/components/Account.jsx:703 \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":"web/src/components/Account.jsx"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d579c57a2e436f36df75c3114bf43accb51dad85d698ad5e897d1366599055"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/components/Account.jsx:508 \u00B7 web/src/components/ReserveDialogs.jsx:184 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b6d48b22a7402a2ba90e74236d1f83c489b2924d326fd9f630e1ac849ee345"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): web/src/components/Account.jsx:573 \u00B7 web/src/components/Account.jsx:730 \u00B7 web/src/components/Account.jsx:747 \u00B7 web/src/components/UpgradeDialog.jsx:143 \u2014 the 4 copies are spread across 2 files, 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":"web/src/components/Account.jsx"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af2418d758c98f560cde07fb8b592882fe26f08160d6d95550326d3e8c07430"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/components/Account.jsx:1259 \u00B7 web/src/components/Account.jsx:1316 \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":"web/src/components/Account.jsx"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f15879bf911f2ec9430145ada2a4250683e1ef77c7880bea1683a8fd306eac5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/components/ActionBar.jsx:216 \u00B7 web/src/components/SubscriptionPopup.jsx:220 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/ActionBar.jsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"5732f789e462ad432e1b410eb7b4765771e71ad22405b5a275fb7930197e802c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/components/Preferences.jsx:552 \u00B7 web/src/components/ReserveDialogs.jsx:65 \u2014 the 2 copies are spread across 2 files, 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":"web/src/components/Preferences.jsx"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"16502d9ce0d99654bf7e4c3e5346ef53148561e2caad332be1378f231d058c1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/public/sw.js:233 \u00B7 web/public/sw.js:249 \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":"web/public/sw.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"640ee3d12e6878eb1f2c9b8c1630fc8962da67c517ccf61b9370f9e663ceae5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): web/src/app/AccountApi.js:337 \u00B7 web/src/app/AccountApi.js:349 \u00B7 web/src/app/AccountApi.js:376 \u00B7 web/src/app/AccountApi.js:389 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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":"web/src/app/AccountApi.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"831b2d3acbd1ebf05a109064e445b07f43836c35562a64ca8aac2cc622d89df6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): web/src/app/AccountApi.js:483 \u00B7 web/src/app/Pruner.js:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 tokens are still identical, in the same order in both files, 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":"web/src/app/AccountApi.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d3cbd76bf64f26d53c54db3e946b559649ec4306cd3142e4a50e05e436f63e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/src/components/Account.jsx:391 \u00B7 web/src/components/Account.jsx:632 \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":"web/src/components/Account.jsx"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc1a24cadfa785cebb09f08f6ec8c936291ea4beccc2c9006b12e63d96bf99e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): web/src/components/ReserveDialogs.jsx:51 \u00B7 web/src/components/ReserveDialogs.jsx:105 \u00B7 web/src/components/ReserveDialogs.jsx:143 \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":"web/src/components/ReserveDialogs.jsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a9a410894a706a2932b9d9c3fdd6dda369df39814c29b02dd4cf5a5a19aaf5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): web/src/components/Account.jsx:902 \u00B7 web/src/components/Account.jsx:932 \u00B7 web/src/components/Account.jsx:989 \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":"web/src/components/Account.jsx"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"19447686e6f24620d48715d467d390cc138d1eb2d6e51473a4459e44eee1f393"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/src/components/Account.jsx:1334 \u00B7 web/src/components/ReserveDialogs.jsx:194 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76eff562d1f0f4d8f9e766e7532bdca628dc5ffb4e9f0236a79bfaf8926eae7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/src/components/Preferences.jsx:407 \u00B7 web/src/components/Preferences.jsx:739 \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":"web/src/components/Preferences.jsx"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4a48baebf8af2783aa9fe1a23b56b26aa4d0318f0460d96b59be9976b4c4b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): web/src/components/Account.jsx:120 \u00B7 web/src/components/Account.jsx:1354 \u00B7 web/src/components/Preferences.jsx:361 \u2014 the 3 copies are spread across 2 files, 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":"web/src/components/Account.jsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d7098d4cfe18f9e3d1f672be9590983413a1c305f83851e75d5dd68b3fe05f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/src/components/Account.jsx:1438 \u00B7 web/src/components/ReserveDialogs.jsx:189 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec1d10cb461cb9538ef66df2f9c5d2789d8c3211495b755ddcd4ad1a2f4d6ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/src/components/Navigation.jsx:415 \u00B7 web/src/components/Navigation.jsx:425 \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":"web/src/components/Navigation.jsx"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f218c18e83cbfd2a8f7be8bb081846db62cd3ee1758dd8b7546a42904038709"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/src/components/Preferences.jsx:245 \u00B7 web/src/components/Preferences.jsx:275 \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":"web/src/components/Preferences.jsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9bd45e481bf9319abf8eb62b7f832d0cb4ca12ec113962c22fa5ad3dd6399f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): web/public/sw.js:30 \u00B7 web/public/sw.js:160 \u00B7 web/public/sw.js:192 \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":"web/public/sw.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"541b0682d129112d30eb68c963f60f4c56c2870ed2dda49a8f13d98cb0e38089"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): web/src/components/Account.jsx:1126 \u00B7 web/src/components/Preferences.jsx:447 \u00B7 web/src/components/Preferences.jsx:772 \u2014 the 3 copies are spread across 2 files, 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":"web/src/components/Account.jsx"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45ce350bd18f9dd07a41a29404b76b33ff5e0141dfac972aef1185e9d3233cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/src/components/Account.jsx:1394 \u00B7 web/src/components/PublishDialog.jsx:46 \u2014 the 2 copies are spread across 2 files, 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":"web/src/components/Account.jsx"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"251ceead0984c419b1057810c631365a0e25e06f35364d4d895b2cd43c356dfc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/src/components/Navigation.jsx:391 \u00B7 web/src/components/Navigation.jsx:459 \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":"web/src/components/Navigation.jsx"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12750581c659885fa78b7e58df7b755a4e67030f2cf5397a5357f5bcfe1a533"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/src/components/PasswordReset.jsx:46 \u00B7 web/src/components/PasswordResetRequest.jsx:47 \u2014 the 2 copies are spread across 2 files, 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":"web/src/components/PasswordReset.jsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"320525b6f2fb46f703cd50ae5ce98cb12c1e53fd4372a95666714db44c9327b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/src/components/PasswordReset.jsx:94 \u00B7 web/src/components/Signup.jsx:142 \u2014 the 2 copies are spread across 2 files, 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":"web/src/components/PasswordReset.jsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5200dc5389e8204a85fd8f756663bb535eb1474436e81f1593fef0dd97fa3641"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): web/src/app/utils.js:31 \u00B7 web/src/app/utils.js:40 \u00B7 web/src/app/utils.js:46 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/utils.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba54732aa3f985ad998363f35451a49c998ef330119ba6fd638fab611dbe6ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5 locations): web/src/components/Account.jsx:718 \u00B7 web/src/components/Login.jsx:17 \u00B7 web/src/components/PasswordReset.jsx:19 \u00B7 web/src/components/PublishDialog.jsx:63 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bcd11c4e05cecd6f636064c1690962c8ac28ca89a54e8bcfe2d32cac3261db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): web/src/components/Account.jsx:1061 \u00B7 web/src/components/Preferences.jsx:386 \u00B7 web/src/components/Preferences.jsx:719 \u2014 the 3 copies are spread across 2 files, 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":"web/src/components/Account.jsx"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"434cf045657f8a874a7d12621074999b3af2d78bc539cc8e3f4806b5588ea983"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/src/components/Preferences.jsx:388 \u00B7 web/src/components/Preferences.jsx:722 \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":"web/src/components/Preferences.jsx"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f2324262b4972333e014c4b23c5f57a9497c21c8c144009a55ac78de1f9ce9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): web/src/components/Account.jsx:247 \u00B7 web/src/components/Account.jsx:371 \u00B7 web/src/components/Account.jsx:627 \u00B7 web/src/components/SubscribeDialog.jsx:86 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/Account.jsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e419af2775d90db855703b34c3419f168ffd91dd6e5842008400e77c3f184b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/src/components/PasswordReset.jsx:19 \u00B7 web/src/components/PublishDialog.jsx:51 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/PasswordReset.jsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bae4d0e85c4831381bd9b53a448c56221e93292d6938e07c086f7bb51970e48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/src/components/PublishDialog.jsx:56 \u00B7 web/src/components/Signup.jsx:18 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/PublishDialog.jsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df2864c0598cb82433e006ee4026c1c65dbe3541a27e5449ceb8343d1c08b9b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Stats (cyclomatic 31, cognitive 25): Stats has cyclomatic complexity 31 and cognitive complexity 25; 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":"web/src/components/Account.jsx"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd571008e8318fe1dde5f39265b9b31543414e34c3a86c07493bb6033bad472"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UpgradeDialog (cyclomatic 28, cognitive 35): UpgradeDialog has cyclomatic complexity 28 and cognitive complexity 35; 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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e63901f937e59a3331fff93883977145c7d0f4efa3717b0535150b28930dc83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PublishDialog (cyclomatic 28, cognitive 23): PublishDialog has cyclomatic complexity 28 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 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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8edc4dc7e100baf631947c3cd5b84c1f7884d77227ff83db93baacb2e038d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AccountType (cyclomatic 25, cognitive 21): AccountType has cyclomatic complexity 25 and cognitive complexity 21; 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":"web/src/components/Account.jsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fdc7c653bab5cdd444bf9f24f9f314d6f2d1ac8eba3da36f1ec63c81936498"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function NavList (cyclomatic 25, cognitive 18): NavList has cyclomatic complexity 25 and cognitive complexity 18; 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":"web/src/components/Navigation.jsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67ad6beaf146d557a26fce8e73131b82fa27e320ff86b71305ecac3f993a2ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SubscriptionPopup (cyclomatic 20, cognitive 16): SubscriptionPopup has cyclomatic complexity 20 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 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":"web/src/components/SubscriptionPopup.jsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5679867099fd3672e501684f59c262abd7ac8e92a394972565706fe9dd543c31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Emails (cyclomatic 20, cognitive 14): Emails has cyclomatic complexity 20 and cognitive complexity 14; 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":"web/src/components/Account.jsx"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf1a6b817a1b7edb64cf776445d26ff71dee49721c7499fb8f5e2e5ba3a308a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSubmit (cyclomatic 18, cognitive 19): handleSubmit has cyclomatic complexity 18 and cognitive complexity 19; 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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df2e6476e53a56a222b7a99683a070d364bd6ed59a4d8074edd7b87e0003e4f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function NotificationItem (cyclomatic 18, cognitive 15): NotificationItem has cyclomatic complexity 18 and cognitive complexity 15; 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":"web/src/components/Notifications.jsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0c5ad041908959fde59b63814e5687cd3da1bcfe1f91806ee2ab1807ba9c9f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClick (cyclomatic 17, cognitive 38): handleClick has cyclomatic complexity 17 and cognitive complexity 38; 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":"web/public/sw.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"f813e181c48d8c0384bedb7aa070b4320d648ff3ca19f962ffddd35d507a6cc8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TierCard (cyclomatic 17, cognitive 15): TierCard has cyclomatic complexity 17 and cognitive complexity 15; 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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d31500a8ec66271f56dcaa2e751d2db692723f036dee8326077fe79b71fe5e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SubscribePage (cyclomatic 14, cognitive 12): SubscribePage has cyclomatic complexity 14 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 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":"web/src/components/SubscribeDialog.jsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fefd04d6a9d5ecf8932c4e2c8d0ad11c67bcb6283454a973dd8ebd18f50f0e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sync (cyclomatic 12, cognitive 15): sync has cyclomatic complexity 12 and cognitive complexity 15; 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":"web/src/app/AccountApi.js"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c671a8baa607ef09d0072580f42e3a55090945d9d8cfa0a10612db0d64a56a42"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function throwAppError (cyclomatic 12, cognitive 12): throwAppError has cyclomatic complexity 12 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":"web/src/app/errors.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9021981310dc7aaa3567040b1bd3a90397c33f60d20e085ad3aa4b33163181"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 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":"web/src/components/Account.jsx"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"deecb673002579f1691dbbb979d31f57f5923c51d9ae8c07247f1ec1423391ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Signup (cyclomatic 11, cognitive 9): Signup has cyclomatic complexity 11 and cognitive complexity 9; 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":"web/src/components/Signup.jsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab04257958ed008d028dbc461e7c7ea3efe7976949e5d912cd90cb2999112a4"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/components/Account.jsx: 1377 lines of code: web/src/components/Account.jsx has 1377 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":"web/src/components/Account.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"627e2a18bfcce0b51a171951bf248ccd6e3f6a5dedf34b1c2c8f5281846c3b23"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/components/PublishDialog.jsx: 945 lines of code: web/src/components/PublishDialog.jsx has 945 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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d89a37e27f6fa700c376792d09689bebcef058f505fd154b06fafafa9de9c30"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/components/Preferences.jsx: 815 lines of code: web/src/components/Preferences.jsx has 815 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":"web/src/components/Preferences.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"689997b8d8c5f420a1a99570657d1499f0cd4b3d6fdd23db6ceff6dea07f2d00"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/components/Notifications.jsx: 642 lines of code: web/src/components/Notifications.jsx has 642 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":"web/src/components/Notifications.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62b1e9cf53b6c35a97b8714325353229ed89076310a67d6c911555424727bcb"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/app/AccountApi.js: 498 lines of code: web/src/app/AccountApi.js has 498 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":"web/src/app/AccountApi.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be468a073fa1c0813f7e297d9ab14c625273237def1df6d7cc9b34b9d19a3e88"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/components/Navigation.jsx: 440 lines of code: web/src/components/Navigation.jsx has 440 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":"web/src/components/Navigation.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c428bc4c7155d2a97bd199b8beeb73ed813c60bc6e378576b9bc16784201216c"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/app/utils.js: 428 lines of code: web/src/app/utils.js has 428 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":"web/src/app/utils.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6c6ff3f4dd9176fa7418dfafd399b211e73fd507b347a8ce2b6d152c6b44ba"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/components/UpgradeDialog.jsx: 420 lines of code: web/src/components/UpgradeDialog.jsx has 420 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":"web/src/components/UpgradeDialog.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b100c8edf2facfc0ba30e6f470508154a3a341497960a3734ca858aaf6cfaf9b"}},{"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":"web/public/config.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3186bf134a14fc919e74cb372eafee34cc4541d26bb0c348ca3fbd179f71f608"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027EVENT_KEEPALIVE\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/events.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd52035eaa11a61c5642bc74a8de472f5509918bceba736724743005600dc47"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027EVENT_POLL_REQUEST\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/events.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec197f21bad68aa559ccec15c6a812c04dc914ce68a44259b8e64f7f1df5bd97"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027workbox-core\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/public/sw.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3b33f07e5363c3e8fa1a18ad743d36194c225d378d3cb7288bc4c2e0161e35"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027workbox-precaching\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/public/sw.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc75db38574c89c6d1b6bb00090ccb246544fa4fb5f67a787b2bdb049bc2dd2c"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027workbox-routing\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/public/sw.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31e1c0bb5948660387a65e5e9ea3c2c22558d2b96336e457a34c7e62523825a"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027workbox-strategies\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/public/sw.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a9246757c411caace1219cee3d051065c7ae660a606e498b2681f6a4e78e7d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060conf.DefaultUser != \u0022\u0022 \u0026\u0026 conf.DefaultPassword != nil\u0060 appears character-identically in 2 files \u2014 cmd/publish.go, cmd/subscribe.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/publish.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"417e88dce5087d81fec3b3964cafc0a680a253ee662f86b79daec795a0153c95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m.Attachment != nil \u0026\u0026 m.Attachment.URL != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 mail/format.go, server/server.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":"mail/format.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"148a13349ab86532982d973745135b518aee480e4e2de0b27944863c53b2c7aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg.Event != model.MessageEvent \u0026\u0026 msg.Event != model.MessageDeleteEvent \u0026\u0026 msg.Event != model.MessageClearEvent\u0060 appears character-identically in 2 files \u2014 server/server.go, server/types.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":"server/server.go"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e09680ba43cb02c48ce076c2671b64627eb783f60c8db165d053b4daf917074"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060username == userEveryone || username == user.Everyone\u0060 appears character-identically in 2 files \u2014 cmd/token.go, cmd/user.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/token.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d4ddcba483709c293514f6ac7ddc9bd86700c7863c04147478ca2b413d64b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060notification.sequence_id || notification.id\u0060 appears character-identically in 3 files \u2014 web/src/app/Notifier.js, web/src/app/Poller.js, web/src/app/SubscriptionManager.js. 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":"web/src/app/Notifier.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bc35c37d36e792f3ce61d7aac884796633e1a203981d35450b9ce663f4ee90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status === 401 || response.status === 403\u0060 appears character-identically in 2 files \u2014 web/src/app/Api.js, web/src/app/errors.js. 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":"web/src/app/Api.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3eb7fe2791b51e7b1ba58900dc0106e1dca21dc0ed268c4c125fab4a1347951"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status \u003E= 200 \u0026\u0026 response.status \u003C= 299\u0060 appears character-identically in 2 files \u2014 web/src/app/Api.js, web/src/components/Notifications.jsx. 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":"web/src/app/Api.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ddfe9273e34e265ff3da4c6a5e369f5497e7701915684f7a54788b9f36e782"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context or an AbortSignal: Only 9/17 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: topicAuth: \u0060topicAuth\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/Api.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc8a7ecd2f66de93629b16c94adba1c5f3c7159abd9ca47a85c4970f1c8076a"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: checkVersion: \u0060checkVersion\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/VersionChecker.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8915638185de08e9c7ab7846bc5a90a9c1ba021c26287380ba608aa27201af"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchLinesIterator: \u0060fetchLinesIterator\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/utils.js"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbb4a39a3048b8c7f3b0d3f9e018702cac53fc4920e9ca3483b682475687ba5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: maybeExtendToken: \u0060maybeExtendToken\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/public/sw.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"66acb5e29f30e26c134a6a22bcf4015b4ee7c66eb81c83067727acf181a65e52"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: forwardPollRequest: \u0060forwardPollRequest\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":"server/server.go"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"2820e924863329ba017cbec2d3fa050257311454d32ac42a0340730043354d1f"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: listenAdminSocket: \u0060listenAdminSocket\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":"server/server_admin.go"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b189fa0f3e111cd24a5152e36d579a19152b82916b7af8922f2e35d74514a0"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: publishMessage: \u0060publishMessage\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":"server/smtp_server.go"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e1a45ea41f0406635d263d90c777df03fae90e545c7bdedea9f52ba273499a"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: PublishReader: \u0060PublishReader\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":"client/client.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"531e303c8c1344665457ded2c35144d41395602f0380407e4a85689e3f800c96"}},{"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":"web/src/components/EmojiPicker.jsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"258c1c463990cea420f27106c4a79c3ff256daf2aedaba19378dfb46d94a1845"}},{"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":"web/src/components/PrefCache.jsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7ac1b043cadebe7b24ab2b85795f1b3c78801e5ad839872dc15fcd07aa8812"}},{"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":"web/src/components/PrefCache.jsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb6d5e5ac91f8b6e68415fd50e2db1a24979ce967e2ef679371c7b744eaee02"}},{"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":"web/src/components/PublishDialog.jsx"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d340357d7b6b86822bae8e186ff761226e573c2b971f4298ae36ccbfc0817c1"}},{"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":"web/src/app/Api.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"520c1f1b267271455e13fb75930cfa665107f6d7a243337df199cc9104929234"}},{"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":"util/util.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7f15e04c2d64f29c9eb92ef78eb1386a272ae986f5c6b8741934aa47654ed7"}},{"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":"util/sprig/date.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"363d7acbeaad5a67e6d0a178a878592d922b38cd5e76ebe038d1d00e88da5988"}},{"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":"util/sprig/numeric.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe93a25f1d337caf562ca75839d8d454b8aefcd9799f906acc9393c2f2ccc70"}},{"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":"util/sprig/numeric.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba24d28957094d9647f4232804763a3946ce586e8778d909e17009bde12dd7c3"}},{"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":"util/sprig/numeric.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b9c9e02c0c21e2681f7f3a801a5544d57e8c55782e0bfa0db609523f9ee078"}},{"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":"topic/service.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a035895cf1580d369d172852b3c65689a1aad9f6572927abde1b1a9d3df5cbe"}},{"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":"server/server_admin_unix.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dafd2fdc77166ae96f485732bb966053d1e4161af280fd70cedb084d299681"}},{"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":"server/server_firebase.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"64800a413e3fa9e660aa3fc50d622ebca67c28734e73a884d76dbac2dff7fdeb"}},{"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":"server/server_rate_visitor.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"50abaac1f3d3f8034c4040f44d23aa8a8511cf95847b36cc3fcb606527c5a515"}},{"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":"s3/client_multipart.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"061c5cd52b7bad9758db7bed47f8ebcc9162e654fed9306089217d9df9a9b860"}},{"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":"s3/client_multipart.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0583067de254b4b9a595e9694d70202515f0781a1a298be9838918f4da072b03"}},{"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":"cluster/cluster_mesh.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8f66a055180a6aadc4a822cdbd61cb62c856091a70b841092b02e80e6d88b5"}},{"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":"cluster/cluster_mesh_buckets.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"da79ffe2209ca226f71112008e8d786a0777a72e5c0b20ae6312622c85c89f28"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.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-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-703","guid":"fa730aa9-95e4-845e-83fa-8169f2cf339e","name":"Improper Check or Handling of Exceptional Conditions","shortDescription":{"text":"Improper Check or Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/703.html"},{"id":"CWE-704","guid":"50bd74b4-a921-5159-8671-99fd7e78c810","name":"CWE-704","shortDescription":{"text":"CWE-704"},"helpUri":"https://cwe.mitre.org/data/definitions/704.html"},{"id":"CWE-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-754","guid":"d9239381-f467-405a-862b-02e65c819273","name":"Improper Check for Unusual or Exceptional Conditions","shortDescription":{"text":"Improper Check for Unusual or Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/754.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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"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":"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-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"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-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":58,"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."]}]}