{"$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":"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":"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":"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"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":"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":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"protocolV2.messagePump (cyclomatic 40): protocolV2.messagePump has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nsqd/protocol_v2.go holds 3 of the 17 functions over the threshold \u2014 including the worst \u2014 and 39 of the 138 points over it (28%), 2.1\u00D7 the next-largest file (apps/nsq_to_http/nsq_to_http.go at 19). 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":"nsqd/protocol_v2.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"03274f14d7a1ecc482d61cc6688df8f7db4ed1b35c7d13b8d4e0e3c0792db843"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 34): main.main has cyclomatic complexity 34 (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":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ed51dcf039ef10b65f529ef32cd9921aa09fdb66d1ee1118f76c50f345dc34"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 31): main.main has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_nsq/nsq_to_nsq.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ce0668a583e708e28dbc9533160419464f7e5827182ac4d6cc8d4071649433"}},{"ruleId":"D1","level":"warning","message":{"text":"nsqd.New (cyclomatic 31): nsqd.New has cyclomatic complexity 31 (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":"nsqd/nsqd.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eea04d403ec4e1c1c0e4c0e927ecea274dc6b20b262800263b3f9958d3cc5f0"}},{"ruleId":"D1","level":"warning","message":{"text":"protocolV2.IDENTIFY (cyclomatic 28): protocolV2.IDENTIFY 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nsqd/protocol_v2.go holds 3 of the 17 functions over the threshold \u2014 including the worst \u2014 and 39 of the 138 points over it (28%), 2.1\u00D7 the next-largest file (apps/nsq_to_http/nsq_to_http.go at 19). 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":"nsqd/protocol_v2.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb186cdc95c43402b6415a16a997979eeb9463798fb25cc1e2d073485b13e0d"}},{"ruleId":"D1","level":"warning","message":{"text":"nsqadmin.New (cyclomatic 25): nsqadmin.New has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/nsqadmin.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5a4fb2cc5db4f2fc84d1c6b140d48a6a9cb3c68ecf7b16469a5a5f1405bdad"}},{"ruleId":"D1","level":"warning","message":{"text":"Topic.messagePump (cyclomatic 25): Topic.messagePump has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/topic.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ed89145f20ede2e39887e41c37375988cd751a41a7bb6d623d5b347e46294b"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 21): main.main has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/nsq_to_file.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd60fb25a4465eacff91564d35ef124c9e405efb5253d973ab98a00c18b972e"}},{"ruleId":"D1","level":"warning","message":{"text":"NSQD.lookupLoop (cyclomatic 21): NSQD.lookupLoop has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/lookup.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93c75a289b9047078e755aae82800e0dd8729facd456d02dcd86983a7062361"}},{"ruleId":"D1","level":"warning","message":{"text":"FileLogger.router (cyclomatic 20): FileLogger.router has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7df57d687b010ed5cbf93a672a6ae19d94b03a640c82423778baecaab30a5d3"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 18): main.main has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/to_nsq/to_nsq.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"079b46ae78fd91784693ea94800eac16a0d0efb7e1d74eabea9ce8885c147cd8"}},{"ruleId":"D1","level":"warning","message":{"text":"NSQD.statsdLoop (cyclomatic 18): NSQD.statsdLoop 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":"nsqd/statsd.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"820f1fd9c54229b0dd60a738cf9f38326ef5949839ace30e930fe7d07e511dc6"}},{"ruleId":"D1","level":"warning","message":{"text":"Channel.flush (cyclomatic 17): Channel.flush 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":"nsqd/channel.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce183b5cc022f845af9d6a6090073cfc9b2df0f2010951a96e2f6b012492a24"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 16): main.main 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":"apps/nsq_tail/nsq_tail.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"355e60f0b08b06b62eb71a15e75aa69ecf9ecee08b24222753ab139088ab9048"}},{"ruleId":"D1","level":"warning","message":{"text":"FileLogger.updateFile (cyclomatic 16): FileLogger.updateFile 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":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4b4f33daf0f1b0ed0ec046642d3175688c9af45a3cc63b66bb0aa8ec7b9a7f"}},{"ruleId":"D1","level":"warning","message":{"text":"httpServer.doMPUB (cyclomatic 16): httpServer.doMPUB 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":"nsqd/http.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc95860b7c5353c3763985bc0f5d94f3fb724bcfca5c5144f75a95274e6f5533"}},{"ruleId":"D1","level":"warning","message":{"text":"protocolV2.IOLoop (cyclomatic 16): protocolV2.IOLoop 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nsqd/protocol_v2.go holds 3 of the 17 functions over the threshold \u2014 including the worst \u2014 and 39 of the 138 points over it (28%), 2.1\u00D7 the next-largest file (apps/nsq_to_http/nsq_to_http.go at 19). 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":"nsqd/protocol_v2.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f2737ad2935d36423d8a65cb3da63a549819cbddb65c449da4e3a93fb4a6f5"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.messagePump (cognitive 79): protocolV2.messagePump has cognitive complexity 79 (threshold 15). Drivers by points: if/else 27 (66 pts), jumps 6, boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5956345c2b29f0d8ffbcff5ac715a709f93d3ed516bb891cd738b6533b35dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.statsdLoop (cognitive 57): NSQD.statsdLoop has cognitive complexity 57 (threshold 15). Drivers by points: if/else 6 (26 pts), loops 7 (26 pts), boolean chains 2, match/switch 1 (2 pts), jumps 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/statsd.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"785d4fd47698a8155dc2f89a4306b761e7e05094596035be225a877849a62d16"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.lookupLoop (cognitive 52): NSQD.lookupLoop has cognitive complexity 52 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 5 (13 pts), match/switch 2 (5 pts), jumps 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/lookup.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c78ff11a8e70d01aca78e37836fd196e6d366141589483b766b006a57631d9"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogger.router (cognitive 41): FileLogger.router has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 2 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3c3a9efdca66457105a1a117d7b3bf0a976639cd889e67292a61ebd7cd102d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 41): main.main has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (27 pts), boolean chains 6, loops 3 (5 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de10d6ab030fae2b16279c705d9cd075b70098e930cef17ac6918dba6516bba"}},{"ruleId":"D2","level":"warning","message":{"text":"Topic.messagePump (cognitive 38): Topic.messagePump has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 5 (8 pts), match/switch 2 (4 pts), boolean chains 3, jumps 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/topic.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e1af01bb4b0d09aeac2800f755f2679649c0d99123337720d41058ba539d06"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 37): main.main has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (22 pts), loops 9 (10 pts), boolean chains 4, match/switch 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":"apps/nsq_to_nsq/nsq_to_nsq.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8113680ccf254976344254a764de198416378b80c74ff5595867c15eec282d22"}},{"ruleId":"D2","level":"warning","message":{"text":"nsqd.New (cognitive 36): nsqd.New has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 7, loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b64d07b02da2ef157c3453c369efdfd75d0a6a8b657d0b8f3c3cdbf7dd88ce2"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.IOLoop (cognitive 36): protocolV2.IOLoop has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (34 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e318f684d6ca0c75e07a72febf3123381c3b8fbb4d2a8975d1a0a9f9fbb056aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.GetNSQDStats (cognitive 33): ClusterInfo.GetNSQDStats has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 19). Most of this is not in the body itself: 3 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 560). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b99835bdb4b0b7e2c20657702262cf2d6cebf714cae623509c52ec5b08ce9a9"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.IDENTIFY (cognitive 33): protocolV2.IDENTIFY has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ac51fff126cb7df2a55ada4d606b000efbf5306595b352dc604c1b82b7d979"}},{"ruleId":"D2","level":"warning","message":{"text":"httpServer.doMPUB (cognitive 32): httpServer.doMPUB has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e12bcc529b7edb2be0731b2cb17a49ad23f6acbcaef46c061ae5171a284892"}},{"ruleId":"D2","level":"warning","message":{"text":"nsqadmin.New (cognitive 31): nsqadmin.New has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/nsqadmin.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e33a6df98126513e7c103c0f23e12a839473a5afd37204a729f6262d6740c9d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogger.updateFile (cognitive 29): FileLogger.updateFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e90302daa65ba181b29b79d0196222be526d54f2a8995205a79e2c9ab50e85"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.GetNSQDTopicProducers (cognitive 28): ClusterInfo.GetNSQDTopicProducers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (5 pts) (nesting depth added 17). Most of this is not in the body itself: 3 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 456). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa83006e9e7b3cd71eebfb739be2b115e0735bb3d6aaf2a3565db79a087210ca"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 25): main.main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 4, match/switch 1 (nesting depth added 8). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 93, 76). 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":"apps/to_nsq/to_nsq.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdad9b36d2734de78c8dd01bb0a053a99e2f934943da2f723ccf1f7e3ffb5d82"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.GetStats (cognitive 25): NSQD.GetStats has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 5 (12 pts) (nesting depth added 11). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/stats.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e96168e90348033d63ec5574738ff0e8e670a9250a8918101a54195d4ca6e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupProtocolV1.IOLoop (cognitive 25): LookupProtocolV1.IOLoop has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/lookup_protocol_v1.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"06307e17c07e3716edefcab6d8220aae4f1a69cf0f8060700a699bef513693e4"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.QueryAuthd (cognitive 24): auth.QueryAuthd has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (5 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/authorizations.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce65568de0b68d1f9cda12d76becf657fc6bcd6cbef0256e7d820c1b8d59a11"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.LoadMetadata (cognitive 23): NSQD.LoadMetadata has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 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":"nsqd/nsqd.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3789e62aaa281d0b4e5890038b5304f1d4e20e8cb67fa714f0da63afbb34b26"}},{"ruleId":"D2","level":"warning","message":{"text":"httpServer.doConfig (cognitive 22): httpServer.doConfig has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaff8f6bd5913d64ce566cb020258f7dac53e4bf7604c791e14495f649d776b0"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 21): main.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 5, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/nsq_to_file.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f839ec601b1f4f5a96261c229b04320c889d065638791338a286cfc93097f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.flush (cognitive 21): Channel.flush has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3, match/switch 1 (2 pts), boolean chains 1, jumps 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a0afff89236964a1d2cc162ad6ced01c6d2a8ac4e7c70350ba50333f7f6df7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.CreateTopicChannel (cognitive 20): ClusterInfo.CreateTopicChannel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (20 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e33a71dd5cd1add953e323d7788d34afa1d9b57f07705b0f1be18be8db76211"}},{"ruleId":"D2","level":"warning","message":{"text":"httpServer.printStats (cognitive 20): httpServer.printStats has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 4 (8 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b7cfe1a641eed9755e4a6322eb6d4661c71e90b19bdb0d7939882128b1bd97"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogger.Close (cognitive 19): FileLogger.Close has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 1 (2 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":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b615da32fedab5440ecd5247288e7d1bc81c4a41b3befe488fff43ad2212d5"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.queueScanLoop (cognitive 19): NSQD.queueScanLoop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), jumps 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f798759c288c268a7b62644ce6c9453c534678a808905a3b030ebd2ce41dfb10"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupProtocolV1.UNREGISTER (cognitive 19): LookupProtocolV1.UNREGISTER has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/lookup_protocol_v1.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86de6ce94f7f0c51faf2b823453650962f04e35d8672060491951fe65a8559a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 18): main.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_tail/nsq_tail.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9009c10b8ce5c77d610d62dcd421c2cc54f51022b5bf879b042a1c7b3f965a"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishHandler.shouldPassMessage (cognitive 18): PublishHandler.shouldPassMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_nsq/nsq_to_nsq.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f3a0c50d4a5ec0f8c6f6ea8e9165fc62966ea77845c05b2ffc0b68ec3a2cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.GetLookupdProducers (cognitive 17): ClusterInfo.GetLookupdProducers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (4 pts) (nesting depth added 8). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 185). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ead88057a99a4c6edcf9726d071c30481ff0bbe548ba7bc2c43b558fb73f85"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.POSTV1 (cognitive 17): Client.POSTV1 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, jumps 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_request.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"55efefba29a981942961de0bcfed6c9f906e4254d2686fdf0c51e5b24286f23d"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.SUB (cognitive 17): protocolV2.SUB has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"295a176079125d95cc9e7fa4aab32ed6287e5f17e69c0d0b79369451a3b7a25a"}},{"ruleId":"D2","level":"warning","message":{"text":"config.Validate (cognitive 16): config.Validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsqd/options.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f85e72748be06fc3dd9e28f73552dfe165dab41b32dd3199dcd8ea92b956e8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Options: TooManyFields \u2014 59 stored fields beside 1 method. The bar is 30 stored fields; this is 29 over it, 1.97\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":"nsqd/options.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bbe4ffdcfadf6cf790c1d51cb35f35c5486c0f7f8c4342e71c2c47df473b81"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: protocolV2: ClassTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods, 20 blocks, lines 30-1005. The bar is 400 significant lines; this is 210 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ece95de19495aca01fe5e45633b3d377940ac15051c0c5b62a378a23aca7f98"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClusterInfo: ClassTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods, 26 blocks, lines 37-918. The bar is 400 significant lines; this is 173 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f1003295a11ffd64c24ac5a863a02bae56dd0708e5b7381379b281bc5c3aa8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: clientV2: TooManyFields \u2014 42 stored fields beside 28 methods. The bar is 30 stored fields; this is 12 over it, 1.40\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":"nsqd/client_v2.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"996b4e019c72a05701243d854a96f91fa51a7d59853130efa7701bbffb0f7e0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nsqd/protocol_v2.go: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: protocolV2 (20 blocks, 30-1005). The bar is 500 significant lines; this is 172 over it, 1.34\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":"nsqd/protocol_v2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"074a1567b72c6b77d13fb3d12545b072a75ed3f43c37ef3cb0e031f2d7797c7a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: httpServer: ClassTooLong \u2014 492 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods, 21 blocks, lines 51-826. The bar is 400 significant lines; this is 92 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"57323af74fb62603915fa3cf8d1f6639b4d53291e60f6503e37d593c9debc276"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: clusterinfo/data.go: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: ClusterInfo (26 blocks, 37-918). The bar is 500 significant lines; this is 101 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2855384b153c5f2ef2b23235375b2b6a085a2b6c21d5a2bf780711e67e2dc1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: protocolV2.messagePump: MethodTooLong \u2014 messagePump runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"nsqd/protocol_v2.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1aa720cc23607511cb3656b686af7986198a9625c56767dfc8cdfcd48b8ed42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nsqadmin/http.go: FileTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: httpServer (21 blocks, 51-826). The bar is 500 significant lines; this is 98 over it, 1.20\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":"nsqadmin/http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b59ce87f9d93b5ea115d6cd95e9bfccab4cc31eab2a18d980979996a1eb860"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Channel: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0385d862d2e07055fd94bb7f4c15b0e92040e375edc6bf7ce90fc6ce19de43a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NSQD: TooManyMethods \u2014 31 methods, declared across 5 files: nsqd/nsqd.go (26), nsqd/lookup.go (2), nsqd/logger.go (1), nsqd/stats.go (1), \u002B1 more file(s). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bcd3ac4d815dc623d3c6a4022f761c8346a0e6593f8a8d988540ced9bb1d0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nsqd/client_v2.go: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: clientV2 (29 blocks, 132-736). The bar is 500 significant lines; this is 6 over it, 1.01\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":"nsqd/client_v2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"419ec7210d9c69995415b1e3bd06aa03b71cd945ae6fc7e26a319edc35fe6f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (58 shared lines): internal/clusterinfo/data.go:343-428 | internal/clusterinfo/data.go:432-536 \u2014 These two members are variants of one another: 58 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30ac69428d5d71c92cc2de4e30683bc8ff65e69c984c35bafc32b8ce37f5e09"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (21 shared lines): nsqd/http.go:42-93 | nsqlookupd/http.go:20-62 \u2014 These two members are variants of one another: 21 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4044384f2cd2cfaa1037f9ca3e17c78b88d92a541d5c17b7cbd632763170b95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): nsqadmin/http.go:215-265 | nsqadmin/http.go:267-304 | nsqadmin/http.go:306-341 | nsqadmin/http.go:343-361 | nsqadmin/http.go:363-412 | nsqadmin/http.go:414-452 | nsqadmin/http.go:454-499 | nsqadmin/http.go:501-528 | nsqadmin/http.go:530-558 | nsqadmin/http.go:656-701 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5832513518d6ade067e26e799fa3c778f484ff3c1a80b22a041e3c62557189e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): internal/clusterinfo/data.go:73-118 | internal/clusterinfo/data.go:122-167 | internal/clusterinfo/data.go:170-236 | internal/clusterinfo/data.go:240-289 | internal/clusterinfo/data.go:292-340 | internal/clusterinfo/data.go:546-640 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86fd1d5fa34b82ac253cab0186a94cac6cd999913d535242fe6029aba8588f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): nsqd/http.go:395-432 | nsqd/http.go:476-507 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"2817a2375574946f7cc96ded5f219a9abb57a3e0f13fc498fde40b9a8e80bed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): apps/nsqadmin/main.go:86-127 | apps/nsqd/main.go:31-64 | apps/nsqlookupd/main.go:60-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 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":"apps/nsqadmin/main.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb9c394f685354026e4273651936628ab679a87ab9ecb7e3d5f026fdb586fe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): internal/http_api/api_request.go:51-89 | internal/http_api/api_request.go:93-143 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_request.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbbb45132747776cf76ce0d3f63e41501de71ff958c6f413127160ea891ec6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): internal/clusterinfo/data.go:644-682 | internal/clusterinfo/data.go:684-734 | internal/clusterinfo/data.go:777-815 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd9246bca52c25ca5485cf8577f3f4ebb982b4410190ab5741a64b857629d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): nsqd/protocol_v2.go:726-750 | nsqd/protocol_v2.go:980-1005 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd6866f64fce56d2147c386ae6b11f07b7d04828298ccc955e29c9cc6f06c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): nsqd/channel.go:623-656 | nsqd/channel.go:658-697 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c071f9b737d7f06dd0b315f618c09255838678214dbd356ec0e3c8f9634c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): nsqlookupd/http.go:130-150 | nsqlookupd/http.go:228-250 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/http.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27b4305edca9d36deb7950894cae8a997d2e4860f8f142fac164c88cf12b638"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): nsqd/http.go:173-191 | nsqd/http.go:375-393 \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":"nsqd/http.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bddb22f6db32a9c889c60c29975bcfe1fc527712cd1a88c75eb5ec97597036"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): apps/nsq_to_http/nsq_to_http.go:126-144 | apps/nsq_to_http/nsq_to_http.go:148-166 \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":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d70f456ad19aaa266d3c189778b30950c4cf9624533093aaf1b01162809be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): nsqadmin/nsqadmin.go:170-190 | nsqlookupd/nsqlookupd.go:54-76 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/nsqadmin.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f7653ccac632fe8258e646b908d5a63f30c35ff03abe12e2d4b027e411895a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): nsqd/client_v2.go:609-627 | nsqd/client_v2.go:629-647 \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":"nsqd/client_v2.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ba95112e7e04cbaef13b3048f69b781c29b453506bb5ab61eeec9415b9eb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/pqueue/pqueue.go:49-61 | nsqd/in_flight_pqueue.go:29-43 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/pqueue/pqueue.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4488c266f57a91cdd0eeef3d6296bed7d59f946e4a6af7f2a3a62bc44b313b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/clusterinfo/data.go:888-902 | internal/clusterinfo/data.go:904-918 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3fbfe0d1c7604e12ae00ff3d3cec9dcff2e075dca1b31508f5525750b26762"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/pqueue/pqueue.go:35-47 | nsqd/in_flight_pqueue.go:15-27 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/pqueue/pqueue.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"df51eb185c42fb151681fb67cb5313c8786c43e6722555d335deafe6b5ae6a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nsqd/client_v2.go:501-518 | nsqd/client_v2.go:570-585 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/client_v2.go"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9aef3dabf2c2cd35dc04aeeb7db91f91d47ba826784fafc107207e253170a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): internal/http_api/api_response.go:132-139 | internal/http_api/api_response.go:141-147 | internal/http_api/api_response.go:149-155 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_response.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c24d2dda5f799744ae6cb8b3328928e0d5affb47a2050d0bf04184821636669"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/nsq_to_http/http.go:18-28 | apps/nsq_to_http/http.go:30-41 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_http/http.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b328ad04a64dae6d066131d0e7aa78eaa23f9b9de8ec3e440102eefe4defeb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/clusterinfo/data.go:25-31 | internal/clusterinfo/types.go:338-344 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0385cd0ddb73f81d204c78c4103e467e546b6d483abb2df2307d3e0d9aa812a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): internal/clusterinfo/data.go:344-368 | internal/clusterinfo/data.go:433-457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"696689f72b504ec28d157ca9290c45bc18a87f2532ef87fe6574e84f352a9aa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/http_api/api_request.go:60-82 | internal/http_api/api_request.go:114-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/http_api/api_request.go:111\u0060 calls \u0060Add\u0060 and \u0060internal/http_api/api_request.go:58\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_request.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6888a2c00417438c7b0b21855fe41a682011e8b2e60eef9ba78b45b6b23459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): nsqd/http.go:412-432 | nsqd/http.go:487-507 \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 \u0060nsqd/http.go:412\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23b21e27211978799920d4b37c2a82b46b682b28063bcd77545f290d6d171c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): nsqadmin/http.go:829-847 | nsqd/http.go:681-699 \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":"nsqadmin/http.go"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"a782aeae01a1a4d14c6c56944f4a53c444111d606bda0391ece3847dc7c14ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): internal/clusterinfo/data.go:103-118 | internal/clusterinfo/data.go:152-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76a58c261feac4ba4d582ad89cd1d07f9aed2139ecb9c9b1467edb686731082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): apps/nsqadmin/main.go:90-109 | apps/nsqd/main.go:35-54 | apps/nsqlookupd/main.go:64-83 \u2014 \u0060apps/nsqadmin/main.go\u0060 and \u0060apps/nsqlookupd/main.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/nsqd/main.go:55\u0060 calls \u0060applyBackwardCompatibility\u0060 and \u0060apps/nsqadmin/main.go:110\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsqadmin/main.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f96bfd3342419e6649cafffb2aa6d98d028f0df491b009b9850d888ad9a937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/clusterinfo/data.go:310-323 | internal/clusterinfo/data.go:576-589 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:310\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5bb701688ecbcb9aff62200e7ebb835b1914f10f74f5d9bda36d27924de70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/clusterinfo/data.go:669-682 | internal/clusterinfo/data.go:762-775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:669\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/clusterinfo/data.go:668\u0060 calls \u0060Sprintf\u0060, \u0060QueryEscape\u0060 and \u0060internal/clusterinfo/data.go:759\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"e682c7de401c06fb8907f112fe7634a8145161ea729c37e7f94c1f24ca0c3597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nsqd/nsqd.go:258-271 | nsqlookupd/nsqlookupd.go:55-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fa9e2b1a6f335f5bad0ab6a2606e215c4a49af118cd25bdd160ec58cfd0fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): internal/clusterinfo/data.go:89-101 | internal/clusterinfo/data.go:138-150 | internal/clusterinfo/data.go:189-201 | internal/clusterinfo/data.go:256-268 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d2ba25ec7f8e1a0adecdada720f62acf3e25032a89d728eeb82663c4805158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nsqadmin/http.go:789-801 | nsqd/http.go:655-667 \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 \u0060nsqadmin/http.go:789\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nsqd/http.go:669\u0060 calls \u0060triggerOptsNotification\u0060 and \u0060nsqadmin/http.go:803\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":"nsqadmin/http.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22ec0e4bfc84f568a99aa1f1b8bf9ea898ce6ca10bad873fcec4bce1f4f9976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nsqadmin/http.go:272-283 | nsqadmin/http.go:312-323 \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":"nsqadmin/http.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad56436118fdee22a7f6b83243c4a9778f54d544b07289bb93a9189db349ba5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nsqd/nsqd.go:766-777 | nsqd/nsqd.go:786-797 \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 \u0060nsqd/nsqd.go:766\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3f02abc8302a6d5665d579cc4214c9d3cfbaab4ca8eb5bd4b8c2140a90b997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): internal/clusterinfo/data.go:191-201 | internal/clusterinfo/data.go:258-268 | internal/clusterinfo/data.go:312-322 | internal/clusterinfo/data.go:578-588 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8e4b11ee11a3873842b709b077c516dcd58be7a71aba123c50e2e3d56bc892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/clusterinfo/data.go:370-380 | internal/clusterinfo/data.go:479-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d02a6959c3aa1804f5d1dd75294a05f64dc281cfe74d6da28b0ee20ba50019d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/clusterinfo/data.go:387-397 | internal/clusterinfo/data.go:465-475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bf5b0821da8fcebe092b55cca6a4f8139e0c68e54a5ebb50c74a842fc361f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/clusterinfo/data.go:406-416 | internal/clusterinfo/data.go:509-519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/clusterinfo/data.go:405\u0060 calls \u0060Unlock\u0060 and \u0060internal/clusterinfo/data.go:508\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2bb7a293e331356261f3a6261293f8071f8e7e0e3842ba220fb15d665d90c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nsqd/channel.go:124-134 | nsqd/topic.go:67-77 \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 \u0060nsqd/channel.go:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"12de1df672dcc3ada1414d72bc0fa4001c7575fb529a57d7ad323a9d4e20e580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nsqd/protocol_v2.go:500-510 | nsqd/protocol_v2.go:513-523 \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 \u0060nsqd/protocol_v2.go:500\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":"nsqd/protocol_v2.go"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"303e3b8b4e9eccfb8b692716604393866f5dfa23d3a99f2e1a98eb22d9e3e21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): nsqd/http.go:347-356 | nsqd/http.go:376-385 | nsqd/http.go:396-405 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nsqd/http.go:358\u0060 calls \u0060IsValidTopicName\u0060 and \u0060nsqd/http.go:407\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":"nsqd/http.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"006399e52717b2c4e0f3bdf8cfb343155d8b236e6270bab019e744626ef596d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/nsq_to_http/nsq_to_http.go:129-138 | apps/nsq_to_http/nsq_to_http.go:151-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc8a2426f9b6ce694c39efbbc22bc5b518b22eb13bbfd5c4e2043788917b4f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/clusterinfo/data.go:737-747 | internal/clusterinfo/data.go:778-787 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29304d6fc665ce121b86ab4d32b4bc3ff0bc6bb180c9b1c01cc5855d9aacc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): nsqadmin/http.go:66-75 | nsqd/http.go:45-53 \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 \u0060nsqadmin/http.go:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18d85a0bfb3f424d778e80bc4e5401b4776a53f7b02ecaef517c71af12d0dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): nsqlookupd/http.go:88-96 | nsqlookupd/http.go:105-113 | nsqlookupd/http.go:131-139 | nsqlookupd/http.go:153-161 | nsqlookupd/http.go:179-187 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/http.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"733b3e638cae298f9c09e1bb6b4ea5512d5ff000a7d52a8431be26e00ba5fb41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): nsqd/protocol_v2.go:500-508 | nsqd/protocol_v2.go:513-521 | nsqd/protocol_v2.go:526-534 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/protocol_v2.go:500\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":"nsqd/protocol_v2.go"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4ce28b095d0e047939af8e94f4a284062fe0b74022212f516486a947bb9d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nsqd/http.go:350-358 | nsqlookupd/http.go:133-141 \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 \u0060nsqd/http.go:350\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060nsqd/http.go:349\u0060 calls \u0060logf\u0060 and \u0060nsqlookupd/http.go:132\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":"nsqd/http.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8ea23235281c427c77a6587b8fef1115f9dc3e21054c9d020177a701bb31d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nsqlookupd/http.go:207-215 | nsqlookupd/http.go:229-237 \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":"nsqlookupd/http.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"775c356dd2ad7c1cf8eb455af4860800bfe5c395bddc5505cc509552330f332c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nsqadmin/http.go:462-469 | nsqadmin/http.go:578-585 \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":"nsqadmin/http.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ec16acdd02ecc5ec224ad51f7a72b374e5abc666f0bb777d48dfa8b300a519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nsqd/http.go:43-50 | nsqlookupd/http.go:21-28 \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 \u0060nsqd/http.go:43\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":"nsqd/http.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fa1a01e35dafbf21c1309691a01c6a66ed09d4e80b8d4d14a288ec1d15ea32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nsqadmin/http.go:777-783 | nsqd/http.go:643-649 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10b5474a72785b73360c7a39c896a09300d17c135863097a657b3ead025ed22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nsqd/channel.go:116-121 | nsqd/topic.go:61-66 \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 \u0060nsqd/channel.go:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nsqd/channel.go:123\u0060 calls \u0060getBackendName\u0060 and \u0060nsqd/topic.go:67\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ecec1d9f80f4a2fffc4fcb56bc381ecf98abd277c76ecbbf4c83679b0fcfc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nsqadmin/http.go:319-323 | nsqadmin/http.go:665-669 \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 \u0060nsqadmin/http.go:319\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":"nsqadmin/http.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5446b2b96c663397251e19edad5e4c905afd4d1eccaf46bac13ffa967eaf4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nsqd/http.go:223-227 | nsqd/http.go:642-646 \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":"nsqd/http.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"44543c575519e9832ffd2b9425f37c819c17166b03dd9a2f52ead86d2eec90bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/nsqadmin/options.go:9-22 | apps/nsqlookupd/options.go:9-22 \u2014 \u0060apps/nsqadmin/options.go\u0060 and \u0060apps/nsqlookupd/options.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 14 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsqadmin/options.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ab8aa0c3b9f1855f028c1afe2e4f0e23b63de4a5e321a116690dd4f63476a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nsqadmin/logger.go:7-20 | nsqd/logger.go:7-20 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/logger.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51e20ed0482f8bc28d588c998835553cdee0d95415a06cd64ff198507083907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): apps/nsqadmin/main.go:71-76 | apps/nsqd/main.go:24-29 | apps/nsqlookupd/main.go:45-50 \u2014 \u0060apps/nsqadmin/main.go\u0060 and \u0060apps/nsqlookupd/main.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsqadmin/main.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5307c0f8edf2fc3adfae12b79f82b16ca89c1456583776a345b2f9cd9d6d1ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/nsqadmin/main.go:78-84 | apps/nsqlookupd/main.go:52-58 \u2014 \u0060apps/nsqadmin/main.go\u0060 and \u0060apps/nsqlookupd/main.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsqadmin/main.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b553a8db3d164c38d5dc79d184a37a5b54b81eb544de505db1ca8d836f759661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/pqueue/pqueue.go:29-33 | nsqd/in_flight_pqueue.go:9-13 \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. Check import visibility before settling on that home: \u0060internal/pqueue/pqueue.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/pqueue/pqueue.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fc129376a8a7c3c63e4e49b92a97940d50eb9202072af065bd8d282a4e1f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/clusterinfo/data.go:715-725 | internal/clusterinfo/data.go:755-767 | internal/clusterinfo/data.go:795-807 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ca543b69a1a6b2fbd928dfb1e8296b12e58f1906e84b576571dd45b220c2be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nsqd/channel.go:174-184 | nsqd/topic.go:360-370 \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 \u0060nsqd/channel.go:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060nsqd/channel.go:171\u0060 calls \u0060Lock\u0060, \u0060Unlock\u0060 and \u0060nsqd/topic.go:359\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":"nsqd/channel.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b57cec6b547a6b5bb0bd2c4033f0f43c61394a0591d2b1f6fb5aab64dee6ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/clusterinfo/data.go:649-656 | internal/clusterinfo/data.go:702-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b4dbd8165cea7e6ecc94c9515309290946180b0c984058b4f412144f82dc75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nsqd/protocol_v2.go:410-417 | nsqd/protocol_v2.go:558-565 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/protocol_v2.go:410\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":"nsqd/protocol_v2.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d020fa3966ac06cd695eb95f1d8a4d830528e7fd044875b4bc6306ec650ae52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/nsqadmin/main.go:23-29 | apps/nsqlookupd/main.go:22-28 \u2014 \u0060apps/nsqadmin/main.go\u0060 and \u0060apps/nsqlookupd/main.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsqadmin/main.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a6a3591a4375a546c691b087b1a963161897a13dcefb8152aa0ae05ca7129b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nsqd/protocol_v2.go:400-406 | nsqd/protocol_v2.go:548-554 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/protocol_v2.go:400\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":"nsqd/protocol_v2.go"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fdc2243b011b2a9c7163249ae3fd52f58eab13d59cf5305695a184034de37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nsqd/protocol_v2.go:837-843 | nsqd/protocol_v2.go:953-959 \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 \u0060nsqd/protocol_v2.go:837\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":"nsqd/protocol_v2.go"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"407148a054834b9d716b94f57cb485326df8e1a5a8eee5b5076f279a825b03e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nsqadmin/http.go:285-290 | nsqadmin/http.go:671-676 \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 \u0060nsqadmin/http.go:285\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":"nsqadmin/http.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75bef58ee7a27f6ec75172ee7f5c33d674762e8a7f292430b7063b1566a021a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): nsqadmin/http.go:275-280 | nsqadmin/http.go:315-320 | nsqadmin/http.go:347-352 | nsqadmin/http.go:369-374 | nsqadmin/http.go:513-518 | nsqadmin/http.go:543-548 | nsqadmin/http.go:661-666 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqadmin/http.go:275\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":"nsqadmin/http.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"285b8516dd6616c250026577137182c23f2d0b9afba97e95f2fc884e10bac6ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nsqadmin/http.go:437-442 | nsqadmin/http.go:481-486 \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 \u0060nsqadmin/http.go:437\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":"nsqadmin/http.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c9a62b765bdd54bc0c8602490ba20825ecca7955351b94b50d965f1d75e64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12): nsqadmin/http.go:275-280 | nsqadmin/http.go:285-290 | nsqadmin/http.go:315-320 | nsqadmin/http.go:325-330 | nsqadmin/http.go:347-352 | nsqadmin/http.go:369-374 | nsqadmin/http.go:437-442 | nsqadmin/http.go:481-486 | nsqadmin/http.go:513-518 | nsqadmin/http.go:543-548 | nsqadmin/http.go:661-666 | nsqadmin/http.go:671-676 \u2014 all 12 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 \u0060nsqadmin/http.go:275\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":"nsqadmin/http.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"161762e2239f04fb89d2761de4f0e99f0e4dc7bc90dedb4955f60a1c6851b299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 13): nsqadmin/http.go:232-237 | nsqadmin/http.go:278-283 | nsqadmin/http.go:288-293 | nsqadmin/http.go:318-323 | nsqadmin/http.go:328-333 | nsqadmin/http.go:350-355 | nsqadmin/http.go:372-377 | nsqadmin/http.go:440-445 | nsqadmin/http.go:484-489 | nsqadmin/http.go:516-521 | nsqadmin/http.go:546-551 | nsqadmin/http.go:664-669 | nsqadmin/http.go:674-679 \u2014 all 13 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 \u0060nsqadmin/http.go:232\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":"nsqadmin/http.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38cc47bfa400592f5b6cf0adae9d0912600121e37cad49559c5c4ce86cd0425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nsqd/http.go:80-87 | nsqlookupd/http.go:51-58 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nsqd/http.go:88\u0060 calls \u0060Handle\u0060, \u0060Decorate\u0060 and \u0060nsqlookupd/http.go:59\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":"nsqd/http.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"815f94bcc15ae9a79cf8020d48d7d01db32a22b285e5886349e9e9155f8a0f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nsqd/http.go:54-58 | nsqlookupd/http.go:30-34 \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 \u0060nsqd/http.go:54\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nsqd/http.go:61\u0060 calls \u0060Handle\u0060, \u0060Decorate\u0060 and \u0060nsqlookupd/http.go:37\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":"nsqd/http.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea946ebba5d8d0ad2ae5ff023e3dd2a44e15861deeeaae54312eace479e647e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/http_api/api_response.go:143-147 | internal/http_api/api_response.go:151-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/http_api/api_response.go:143\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_response.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"814e57ac593d85ddc0975604afeef45f0cb71a2937c4d01b2f923124751fab9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (34 shared lines): bench/bench_channels/bench_channels.go:41-125 | bench/bench_reader/bench_reader.go:71-151 \u2014 These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f78fae7b2dd1cf4d2320aed0493d44c25409965167643621653ee31f2c2fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): bench/bench_reader/bench_reader.go:30-69 | bench/bench_writer/bench_writer.go:28-72 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_reader/bench_reader.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb12b074bc2b9add5717959a3a65fc82189ca731ac77824429689368aac583ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): bench/bench_reader/bench_reader.go:18-28 | bench/bench_writer/bench_writer.go:17-26 \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":"bench/bench_reader/bench_reader.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b007f141b06f0c39cf38fdea5934c5527636b89481bdc9396ff18cae5ae9fa49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): bench/bench_reader/bench_reader.go:45-69 | bench/bench_writer/bench_writer.go:48-72 \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 \u0060bench/bench_reader/bench_reader.go:45\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_reader/bench_reader.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9286eec7db28299540739b691af4f7da186f9469b35bd249370f101d73f3eef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): bench/bench_channels/bench_channels.go:67-81 | bench/bench_reader/bench_reader.go:97-111 \u2014 \u0060bench/bench_channels/bench_channels.go\u0060 and \u0060bench/bench_reader/bench_reader.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa000515a5f6d48beace4b292ac3cfddac17a1db6c676a9a01325030e0a300f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): bench/bench_channels/bench_channels.go:83-92 | bench/bench_writer/bench_writer.go:115-125 \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 \u0060bench/bench_channels/bench_channels.go:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060channel\u0060 in one and \u0060topic\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c70a3fd69674fafbe7ef0aa80d4a68b1109691a0065a9a0ef1ac82eb0b15900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): bench/bench_channels/bench_channels.go:42-51 | bench/bench_reader/bench_reader.go:72-81 | bench/bench_writer/bench_writer.go:75-84 \u2014 \u0060bench/bench_channels/bench_channels.go\u0060 and \u0060bench/bench_reader/bench_reader.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060channel\u0060 in one and \u0060topic\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060bench/bench_reader/bench_reader.go:84\u0060 calls \u0060Sprintf\u0060 and \u0060bench/bench_channels/bench_channels.go:53\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":"bench/bench_channels/bench_channels.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e01fa790f1e0ae6f61cae31d3b2e33dd2dedd35fadf2d714ac02dbcfbd39bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): bench/bench_channels/bench_channels.go:53-61 | bench/bench_reader/bench_reader.go:85-93 \u2014 \u0060bench/bench_channels/bench_channels.go\u0060 and \u0060bench/bench_reader/bench_reader.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b85c5b3548be395b21f343f70d92331eed96744077ceb34a16ae7a6815b9205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): bench/bench.py:176-182 | bench/bench.py:197-203 \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":"bench/bench.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"47126aee57eaf0034f5b8056f0f1b74ddde185d4737b42cc6fdcbaf065fcd5ab"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/nsqio/nsq/nsqd.TestDPUB: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"084d7c357d642e62bdb1cebcbb2af1e1ca198d2fb95b1736d5eb3f8f329220b0"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/nsqio/nsq/nsqd.TestUnixSocketDPUB: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"45c49a41062a9952f0bd909b7d096f8e5e800ab897a36023aeb59fad22c8495a"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/bmizerany/perks: Direct dependency \u0060github.com/bmizerany/perks\u0060 is required at \u0060v0.0.0-20230307044200-03f9df79da1e\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2023-03-07, 3.7 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/bmizerany/perks\u0060 and has not moved this requirement in 3.7 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/bmizerany/perks\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0132c628c9307913c072db1e170d6c981b23005ad03875254830fe6bc7a7b460"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: these can be DRYd up \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":"nsqd/channel.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7d29ef64db26605f6251d536a803993240b64cf28577690d935ffd2cfabe29"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: these map lookups are costly \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":"nsqd/channel.go"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"347ac9ed93526a52313558605096aa8fe0da8a8e3f331484f46928d846f35bfa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: these map lookups are costly \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":"nsqd/channel.go"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8754d6519a6e0531884e6e4aa46b55f3c66896a07010541e3c28055136bd5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: one day I\u0027d really like to just error on chunked requests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"381eded005c3886b71ff596cf28798ea8f86221040e846230b2d1c11617c18db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: one day I\u0027d really like to just error on chunked requests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c06df548b443c04124eb0425fd5e5317e4b245ea073cfa74eb77fc058c11ab5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should producer stats be hung off topics? \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":"nsqd/http.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f2523e5967353dedaa20e3684d77282aed58672619ef9daf8303ff9d45d18a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: paused \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":"apps/nsq_stat/nsq_stat.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"644a4930c90e0f04e3af8afd38ffc06fe2904fd6af044fd3f465913d52025aa2"}},{"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 \u0060apps/to_nsq/to_nsq.go\u0060 makes this repository a deployable product (line 4)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/to_nsq/to_nsq.go"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af636f5d2d020b3475f1ce1abce57d6537d6825565139b9c08e8888933209d3"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (10798 LoC, 118 module-visible types across 25 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":"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":"55a9feee9774121f2f799f78815f48406c361b20f27615a6b6c4aa576c312700"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df72c1a2ad596a4b63097390e5b5d0f28564f1c7c843238637457a7edbf12ae3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"929889218fe2adba5577454da6e2fffb54a21f38de62c057ea511bf22abbc080"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b86d01b31e1d7848adb2c82937a66e899ce18e5b34515d14ac815138dc3fb00"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c922e0286eb32dc13535e8f6f234973af8da68f60967385d5b3c9900a883b13"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5737efc06c6e8974d9eca5116fd6fad508959b148616caec8005de3fc2426593"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"171d0053bd4af3abc51d2dac6e82ccae94fb79c6fd63bc05de96af12a8f61fe2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5872ad246244f9df279c4304517409d731b0b59253c3a49ddbcc01324b5d268e"},"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":"2b882ffdbf18255b61b407b8d76423257457279ab393029fb7e320e2b18200d6"},"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":"920227652f5085ff02d59e50a6aea77ba654f5e6806ce78cba6deb4ebb141863"},"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":"063f774149f6771aa86cc7410756a5e88d141a17cbfa1b27c6575e9436c8b04e"},"taxa":[{"id":"CWE-322","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"9d16f92eaefa603327aa93cecf032d776d724b82b3e9f266bfa23e3a6196b619"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"0a0b93d629370f31bc1eea2b56e1573dc639652e4f938a62bffa689199f64544"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"c480d529768f24767c35c96836b37e684e3b73cc977d4cf952d2bc1f4addcf29"},"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":"d86bf1e9e35bc1961f366287bb2004444b6cbedb269a726c00970f9fac9e8900"},"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":"fa1a1f96ffd11c47e1cd44221385496f702103b9ef3dd795e3a08fef81627f01"},"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":"913957a312d49aceae5660135375af154c948e677ed71d4fe6b9f256daf3a429"},"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":"d8ed1ec3774333443c949bd593c8ce34d2e408631a45babd1ea4e2b0a1b0580d"},"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":"6c8c35f650e532aaed63e74424b35b6d7044d45209de786efad97cc448c0b400"},"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":"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":"a2467d95a43a52fc692cbcccdb71b5cee98401cabd563977616e94ad5ae8b207"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c27f7af9d56a6a3d069102239a7819b42bdc4c4a70a954d2df08f0dffc03d1c"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"236f82eea35c9da84a39d4a72a3ac800009ef561632a4cf6e380281c08e67f67"},"properties":{"dependency":{"package":"cipher-base","version":"1.0.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cbeb319842591893ed2e552a98f13cd90ac29cd398c50577a0dd0363723ddb20"},"properties":{"dependency":{"package":"elliptic","version":"6.5.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85e0308877d240bccfa65be232e8da6758997ea576ff91ad4d3bd7b563de39b6"},"properties":{"dependency":{"package":"handlebars","version":"4.7.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"nsqadmin/package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a144785f7501cb3abc8d04b726fdca0e00b8f89b8bab4e86cdce96c5416299fa"},"properties":{"dependency":{"package":"minimist","version":"1.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c1e65b9d36b3a4a6028a9741127762c1f99d1205d4b154bc0817950fab7bc65"},"properties":{"dependency":{"package":"pbkdf2","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"17ea2a370bc80fc6342319ffa6cdbce91d47638d8bf1c73f4620a5a6ea566d49"},"properties":{"dependency":{"package":"sha.js","version":"2.4.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f7a7ab19fd2e8215210856f530fa2d2f3d801a7a4c442b23079c6fe0a79141b0"},"properties":{"dependency":{"package":"shell-quote","version":"1.7.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"143c82fa90459be4d1aa2bbf3957d2b4e15638db4772cb33dedbcba898988936"},"properties":{"dependency":{"package":"ansi-regex","version":"3.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ac75904f6ba1212e9a185b6af4da8bf738cd9a8abf6ec90575c239eb70e9a75"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f588e94557e987518507761136992d750bb2a0328174bb148b483996fb6c821"},"properties":{"dependency":{"package":"braces","version":"2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"88154935f9c2eef49dd34d88ab7812ad4a7dce73266928aa187589c01cca35ef"},"properties":{"dependency":{"package":"browserify-sign","version":"4.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35bc6b37c0e590046ba0da60c53fa1f1613e6298ac13b3f906a4de22ac941eea"},"properties":{"dependency":{"package":"cached-path-relative","version":"1.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c17b5665b5b90d6936c13314641414c6dc159b501459bcee81eb1e585c5bac74"},"properties":{"dependency":{"package":"cross-spawn","version":"7.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3f21ea2a5176b79d97ef534cf953f09f1e0ac96937fb3f74a53ea7ee3ed01e01"},"properties":{"dependency":{"package":"decode-uri-component","version":"0.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89e5d9c4bebaae348aabd621fa63e29fd0ba0e838dfa8848ecce3077fc7d2d3e"},"properties":{"dependency":{"package":"flatted","version":"3.2.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"655e476560b8880d23e543f1031834687a4a8429b606bb39dd041786f6703940"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe39cb4c4f228aaaf6686da6763176c0a56a2ae559f64affb253bb7ad5545358"},"properties":{"dependency":{"package":"lodash.template","version":"4.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c459d5d79aba2009b3db78dfeb7f4e01d76c7e2db6561dbc51a8bcd6360ceea"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"17176b05067458a46dccdabbccf50f468241a0f38702a6c9bdb559b33f3832b6"},"properties":{"dependency":{"package":"moment","version":"2.29.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1fa20f2c5d167852d78c9c8f4d14395e1abd2047bc2b254c089f05bc1bc73015"},"properties":{"dependency":{"package":"semver","version":"5.7.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"659ed06766dd00d189f6beda04c7f223db69efeb6dde1202fc74b8399627b525"},"properties":{"dependency":{"package":"picomatch","version":"2.2.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6deb23bfd2545407e4c77715680b80ce9c8d70ae398806190007ef73377d25e6"},"properties":{"dependency":{"package":"postcss","version":"7.0.36","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b4dc75b7ac28c1d6bd434c885de5fdc62f500433cc0d4c97bcc818371851f05"},"properties":{"dependency":{"package":"braces","version":"3.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fded5268e5be30142192d7d7bad816960bd682823651a2b64c99123b2d5598cd"},"properties":{"dependency":{"package":"semver","version":"7.3.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b30d634d3a001ac0906f18b655d08b0324979e7b0726a3f391536292e45f89c"},"properties":{"dependency":{"package":"underscore","version":"1.13.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"nsqadmin/static/js/app_state.js","line":2}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d94222fa9934edd47ba3a0ef99e3a7d85a9c2a0dac93507e5359a1abb9d5d840"},"properties":{"dependency":{"package":"stdlib","version":"1.25.0","advisory":"GO-2025-3955","aliases":["BIT-golang-2025-47910","BIT-golang-2025-47912","BIT-golang-2025-58183","BIT-golang-2025-58185","BIT-golang-2025-58186","BIT-golang-2025-58187","BIT-golang-2025-58188","BIT-golang-2025-58189","BIT-golang-2025-61723","BIT-golang-2025-61724","BIT-golang-2025-61725","BIT-golang-2025-61726","BIT-golang-2025-61727","BIT-golang-2025-61728","BIT-golang-2025-61729","BIT-golang-2025-61730","BIT-golang-2025-68121","BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2025-4006","GO-2025-4007","GO-2025-4008","GO-2025-4009","GO-2025-4010","GO-2025-4011","GO-2025-4012","GO-2025-4013","GO-2025-4014","GO-2025-4015","GO-2025-4155","GO-2025-4175","GO-2026-4337","GO-2026-4340","GO-2026-4341","GO-2026-4342","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"apps/nsq_to_http/http.go","line":19,"symbol":"http.NewRequest"}}}},{"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":"b9504bfebe909787b5e8409ae163c8956f9c8b5caf2fb654aee88eb43e8e3b33"},"properties":{"dependency":{"package":"ajv","version":"6.12.6","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":"075cdb73648ffe25201f8ca51ffb2044d116be2afe99ab6fef11b97367209af8"},"properties":{"dependency":{"package":"bn.js","version":"4.12.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":"e8b564e8f65e4faa992a6dfdae01af9a84ffeb1d704445521b5766e75cdc86b3"},"properties":{"dependency":{"package":"bn.js","version":"5.2.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":"7cea6dd961f56311f98332d07d08f74b14ee99bdba4a08992493df035d3f22a2"},"properties":{"dependency":{"package":"bootbox","version":"5.5.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"nsqadmin/static/js/views/app.js","line":5}}}},{"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":"d0542fd023529a0644751d4e3a5ee7762144c11677fb912b73e620ed83304978"},"properties":{"dependency":{"package":"bootstrap","version":"3.4.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"nsqadmin/static/js/views/app.js","line":4}}}},{"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":"cf5cb4a1571715cadf865f9e574d0048cbc2a3ae8ec54ab68c3f82894a216850"},"properties":{"dependency":{"package":"micromatch","version":"3.1.10","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":"db015a2f72791182143af83e5cb20b5751f315ae5dea88b738f16764cb907e88"},"properties":{"dependency":{"package":"uuid","version":"8.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[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":"4c907c2c64ab7ac9c10025004767e7d1ff238976cb83f915328823ca1008a8d4"},"properties":{"dependency":{"package":"es5-ext","version":"0.10.53","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":"81b7b122dd29fa300cc907bb6c67190012ccd02c5ea06ad02dcacb4f073ceaf0"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"becbc5502f94878197b05d70c7ef15f1353fd99a90efcb824b9c43f11ae5ce7a"}},{"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":"D34","level":"note","message":{"text":"Dormant codebase: 31 of 37 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 31 separate risks. Counted over 37 of the 89 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde2e47151ff69db3956b3a9e78935aae27fada67e2c91e05b0862ac6783cab9"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f83b74061897b6936cd656a0fd3510203aa7017ae804d372509bd4c4f8653e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6075549527c8f70a676240619f682bcda4989ad10038bc128257859c47bc4d33"}},{"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":"internal/clusterinfo/data.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1aa1a08e72721e2d3a518f30a31d71c25ea7f4038e065af409adc839dd9219d"}},{"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":"nsqd/http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"947277a9ebf51c534a037707863db69eb98690b8740e7f8350cf86e799293ef9"}},{"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":"nsqd/client_v2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"353e30b6966fedde80ff7f54089936fb1d24ead94be4ac7a69b0d51773476235"}},{"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":"nsqd/channel.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce72fdc76f95ba35a3be492c7676559c36228ad3b72680fb46bed863f98c119"}},{"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":"bench/bench.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d11e589c73d6a358a6df25e978e154c0f2ce456736b421f8bd36325acc7674"}},{"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":"nsqd/topic.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d43ccd7fc3bd287077f8bdc0e944319e1a258e6638e18297c751f75feae9df8"}},{"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":"nsqlookupd/http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8865072be355baa814276ab2ac35440dd37c612b0b72350d69d89dd5039455ec"}},{"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":"apps/nsq_to_nsq/nsq_to_nsq.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6116cf057718d4236ab65c8a1db4375bebc124e6887622cbae945ed1352925"}},{"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":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b13753bada24499a590dbb06bd2870c4702e1260614b54c6b91fb38537b981"}},{"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":"apps/nsqd/options.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd17b69a49e79c5f1df3d38bc2a9f8f20239c75e82e50aeedd72582a40ed1cf"}},{"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":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db759bbf56c1293ccee07385067786a2e5eb2aa103823c44f9be351fe4343539"}},{"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":"nsqd/options.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3142d83756dff78f56450dd9fe5d2e526b548383a6956679918bf944283073b4"}},{"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":"nsqd/statsd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4d2f58a934d8b7867ce7b635ac63efb8dd9b00e28df6db7fd7585b9d39549c"}},{"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":"nsqadmin/nsqadmin.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"423caea90b9f733ca924edcbe55e8c4367ef0f1d779b7c3e1182f931a8ddd1a5"}},{"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":"nsqd/lookup.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10c652e1a610a2a3458c5928001fbcbd7237b3a5151071f8bad31f1f7557376"}},{"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":"apps/nsq_stat/nsq_stat.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2407b6f7567c1d28b468fce8ce5c33b5c92fe302caa136060b950b2a80cda277"}},{"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":"apps/nsq_to_file/nsq_to_file.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17863cff0150d120514ba29460f3659b82daac94a20ca84392e815bcee036c39"}},{"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":"apps/nsqadmin/main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afa833d2a95a1f6842a618fcf44c9ed220064ec7ff87965d6cf0f5d58b1bd20"}},{"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":"internal/http_api/api_response.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4c51c8d2f6faaa2042ddf9e93ce00d33fd847b6fe31db820f05d6b60e958ae"}},{"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":"nsqd/lookup_peer.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"710f2c30fa4c943900d43435421905f5d586b20dee4f63165ee86c4c25cf7a86"}},{"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":"internal/http_api/api_request.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bccb3b8b9307d88292e6a7895e8718342bf446cdab5679d2586d80867d3b1aa"}},{"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":"apps/nsq_tail/nsq_tail.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d3c3853d1928e121dcdc1c09671f5a20d49c34e437b645467d9499939d3d06"}},{"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":"bench/bench_reader/bench_reader.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e38804aa5412375add22fb3c5e38da127011233b22ee14bc4f7636e9e549d7"}},{"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":"apps/to_nsq/to_nsq.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3151adf3aa58ac069d306c7387caaf98c574e8167cfe964c2590cfac7bd09690"}},{"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":"bench/bench_writer/bench_writer.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"463c19a620d4f0c54463c1b63ff34e1e6bf8cf38d0cbe89f3d3a1744c0a221e9"}},{"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":"apps/nsqlookupd/main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c09a78504e4fd033421c3bb6149435df9fbde6568d3721bd5555d23ad88fa3c"}},{"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":"internal/quantile/quantile.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6587ab2bd23ace38a381759e823faf2ac2f3ceff588e2980521c680bce5df9f8"}},{"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":"apps/nsqd/main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3e646468705e50ec5d40c5cceb4ca2d52eef54a54912cdc3dfbd05677a62f1"}},{"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":"bee16a916192bc47803c755fa5c777c01a15fb56e69ce46b43bdf718adcb77fa"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c540ad137a7c1380107ec6c878e7c739519b7b264db945142c997f34ba9c0fc"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a28f2bed7363d6c6ca144fb788718c6b1bddf53ac74b01ff916ecb5c899584"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d054c273e5ec9becaf1bdf35be42499a9ab22b614dadcfba5955841b4a857ec"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fedab3825c3b865ca3e056582c88491c5a9bd19e26ed253a6dfadeb49b0c66c"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d57e48aedb03836369dc243f2c4253626c3332dd27248ca24de734206683a46"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc22b51ee3fcdc37723085978ae5d65dac76b7a487197a3efe3974047f91213e"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b30720c84ebcc66640f81792b07ade9be9ecba640deeef95a0109a6c6c029f"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"538941bb9c864f715e534658feb3fbb5c7643c71d2e353dcd8a255f1c589796a"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b82da0d7fc5ea59efd12ee7d83d69346ae273c51e50945964e24672fb1563f"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cdfd42a53224dad466ccba68b119a228dde88ec78304778c16ab77aba00610"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cddd9ce27110be8183bf3f70c65ef1e3e784f9c4494e3e2077f8e8ed0a2b0bf"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3622f0230d771437ba16d9757f598a237f88c19cfd1decfdf18e535c75d90680"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8cce49b4294c40f143a4abc9ede74f7d2c00b95f6f08944631d0298cb5b4f1"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f8558269e32172021f6bcc7ab0c90f214ff7eb9758880dab73a5305aced441"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b7ae98bbfb2a715d521f3652fe0665518f66b42e97f4a74aff0fc1093c1d01"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/channel.hbs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b793cd821d4b7244b3640dbed8c8e76bc2ca02edb7fc45c62fa703f12160531e"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/counter.hbs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7cb843f07b611dadd01b668f75f4627ca35de2ded49d86f8251990a5fa7fc6"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/header.hbs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"50495521853c041937b7822eacfa57c619026b8f091094ad14d9e450af8856bd"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2010a443e5c8f7ee357c5eecee50e9bf718f4048f3b80808c206f2000ef6c2f6"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"810f2ffb01b41ba1332899192d7778aa72170aa52931a5857d57e598efb24777"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c178107ad395bc59a85d46ee972c150c0b0915800b1e6401490acd5930d074"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d974cba0b5acc976983df83e526b8c128dd88e66d1082361b0325303413c92"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eecb1918bcdd29bfd73490cbcf757e0422529022a0f69843c3e043840834eed"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2a8c8a85e38abacdd7787ce29108e4dfb382e465815ea343d8cf37f55c8bc1"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21878515fde22135b4a4aa15610ade2b60e46ccf1011b3e6d1040419e2983c1"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b8ab89b4b6e31abde5b997c31631e51418db3d5e26ab3a7eb097b66f962047"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c63265a2f7ddace11bec513876e646885ef2974ebf5d3f313f6857c5d13939"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"07acde1a5a4525e57d0e564868d586ab52488643dd10e389e0935faaca2b55d2"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e3597f7eea0719d3c14f2e05cb8b0235821be872624e6e9ef96b17c59cad9c"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"41731711f0ee8627a20b6b0aacb06f341a2382d213f4c39d5dc88098ddacc1c3"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"605918e4b86a710893f558292d20924ccbb14fabbdfe9e20009e78d6264fbd2b"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49f8879292e23138a64eb7f3007d83a7bdcf8ed5777283168a53027135d5469"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc25c32468a3c366b522e6da701a74954f2cceb3eac5878f8b3b1a2a78132f64"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a410f2ebf6b1d4df14a3dba8551d3ea16772e253199a3e81ba13f440133d8e"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9791af4620a92e8b5c02a5d5eabf3c03ce58773bc36d7edd3bcc700e79c3fe17"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"60645dfcd0f5f9ce1d4866848170c12eb540868d31f27c4fc950fd79ac806140"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f25a4ec31a4131db0be5a3971875c994a57d7ae756072452aafb6a18c19c03f"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"955aae052af85d99f55ff76847c8786f31a0b16e3e161c2f03981596bb4d4cf4"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1872060961c146537f5cfcdfdb8d5ca2e2e1808d4a7a9a15d299360f123ab0"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topic.hbs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acad760b1ae677581cfe93225dba41bf9a02390225bd3ba5a222755c3fdec91"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topics.hbs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb888a577b6cf99f0486498f37114588efe0e978467563454dc910c103b5343"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topics.hbs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7844552812adb28cc39aa2e7650bfbac62560ca7f8dd8e5f8729f3a6733a9aa"}},{"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":"nsqadmin/static/js/views/lookup.hbs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"475c0928b09d378df572b9dc2de12b2ca718bc23561c755eb55a9aa469f2b9a3"}},{"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":"nsqadmin/static/js/views/lookup.hbs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5771d88dcb73ca89895b38d8d3077344399e807f668a11d763f6cd522f8a26a6"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/html/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"468f95bcf753942aac99f3d3e13158d6baf1ed5eef1d7efcb1c87351d12462e0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/html/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0df65a6e26768d7d6ff5c3c4b3fdf69451d6c3e73521f59fa2101852415c2fe"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h2 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/lookup.hbs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"19656b397f6d974274da1c1276ce97966e7b0eee9848c2f55b274b28ccf21fe6"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/node.hbs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf85cef6aee26fbf61dde7065022932cde87b9413f79adde5066d6de630ba95"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h2 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/topics.hbs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ee558763becb683825ab129d79f543eafb3b034ba55458b9b09fda63da7682"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/nodes.hbs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65929f29e5dd827eeaddec34061dbdaee2a2c08acb158a3f6ae62ed1bc75c8b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.number .top:nth-last-of-type(3)\u0060 moves (\u0060animation-name: top\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/js/views/counter.hbs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"480e967e04ebb6c1e081cf265dfb17f858b5f71a3fb5afa0a5852ce611cc6f56"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.bubblingG span\u0060 moves (\u0060animation: bubblingG 0.9s infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/static/css/base.scss"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07df83565e1be252d1dd74f6883106b939695a4563ac81e774011ab32de2854"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060nsqadmin/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/package.json"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6aafe397e7f3990e94c46bf076626124e4d8a423db93aaae8745566c5d09754"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Client{\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/nsqadmin.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e754ec4256a4ceabba3f7207db5043bf2f3669631bf728e371fb1456348044"}},{"ruleId":"PF1","level":"note","message":{"text":"Benchmarks don\u0027t track allocations: A Go testing.B suite exists but nothing turns on its allocation measurement \u2014 allocations (the main way hot code pressures a garbage collector or allocator) aren\u0027t being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/registration_db_test.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed15be9ee413010485459a8a113cfea1e6e01c568d04026fcf0ea66eb6ee40d0"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 21 plain JS \u2014 the untyped files are nsqadmin/static/js/app_state.js, nsqadmin/static/js/collections/nodes.js, nsqadmin/static/js/collections/topics.js, nsqadmin/static/js/lib/ajax_setup.js, nsqadmin/static/js/lib/handlebars_helpers.js, nsqadmin/static/js/lib/pubsub.js (\u002B15 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (35 matched lines \u00D7 2 locations): nsqadmin/static/js/views/channel.js:19 \u00B7 nsqadmin/static/js/views/topic.js:18 \u2014 the two spans are one implementation copied and then locally edited \u2014 314 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":"nsqadmin/static/js/views/channel.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f82449f2378f5c3c3b7d552d1b4845b02e9d6477a811f2934c05c3eb0b0ebaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): nsqadmin/static/js/models/channel.js:6 \u00B7 nsqadmin/static/js/models/topic.js:6 \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":"nsqadmin/static/js/models/channel.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f1ef4848e3479d3bd552816171263bb35e463092391688fcc7724749b0d67d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): nsqadmin/static/js/views/node.js:11 \u00B7 nsqadmin/static/js/views/topics.js:12 \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":"nsqadmin/static/js/views/node.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ff66116d65094360d4ed16023704e00b046afcf69410f5aadb191b30d79d06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): nsqadmin/static/js/views/nodes.js:17 \u00B7 nsqadmin/static/js/views/topics.js:12 \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":"nsqadmin/static/js/views/nodes.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29982fb9e5bedae76e23fcffe7cc53c166f87c235fcef3bd6abc58da0a7f728"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): nsqadmin/static/js/collections/nodes.js:7 \u00B7 nsqadmin/static/js/collections/topics.js:8 \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":"nsqadmin/static/js/collections/nodes.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42c60344fc13ec72a2ad622f194359e70a2dacdfdb42349b59ac0262b57ad17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): nsqadmin/static/js/lib/handlebars_helpers.js:255 \u00B7 nsqadmin/static/js/lib/handlebars_helpers.js:277 \u2014 the two spans are one implementation copied and then locally edited \u2014 105 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":"nsqadmin/static/js/lib/handlebars_helpers.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5774db4b76d3221fec94a1e32c577d867e46b97d9966a73f746c6e9082f573"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): nsqadmin/static/js/views/app.js:88 \u00B7 nsqadmin/static/js/views/app.js:118 \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":"nsqadmin/static/js/views/app.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96f425b1fb0fa4278de2af6a0c14d5cfc40824d87bc8e83b841c4546be9c3ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): nsqadmin/gulpfile.js:65 \u00B7 nsqadmin/gulpfile.js:120 \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":"nsqadmin/gulpfile.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24d1c65a10a8e8c5e8c7a95ce8d46e88347f16ce0a05d86878b3f6ea29eba60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): nsqadmin/static/js/models/channel.js:3 \u00B7 nsqadmin/static/js/models/node.js:1 \u00B7 nsqadmin/static/js/models/topic.js:3 \u2014 the 3 copies are spread across 3 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":"nsqadmin/static/js/models/channel.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21340b8d8318904ba14b0e0dd93a120798cbffb95089d5aefe19d6b8efc9dbb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): nsqadmin/static/js/views/lookup.js:51 \u00B7 nsqadmin/static/js/views/lookup.js:62 \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":"nsqadmin/static/js/views/lookup.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a2f5414c92e9786888fadcf3b5c42cc87f12a8293f277ea48b828810f12789"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): nsqadmin/static/js/views/lookup.js:36 \u00B7 nsqadmin/static/js/views/topic.js:30 \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":"nsqadmin/static/js/views/lookup.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4216c6610bd211273254dc570e8fe8fdf295e95435942972b4894512afb5e3"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027moment\u0027: Declared in nsqadmin/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"94723b62a9fd1d95fd5f51da569e50b3b275ca194e815074c5e8ab1708048783"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060int64(len(body)) == readMax || len(body) == 0\u0060 appears character-identically in 2 files \u2014 nsqadmin/http.go, nsqd/http.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":"nsqadmin/http.go"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7dd255ce29733078058ec70ea4590b029ae4c9ea76924e9564f2770d7e1ec9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(nsqdTCPAddrs) == 0 \u0026\u0026 len(lookupdHTTPAddrs) == 0\u0060 appears character-identically in 3 files \u2014 apps/nsq_tail/nsq_tail.go, apps/nsq_to_http/nsq_to_http.go, apps/nsq_to_nsq/nsq_to_nsq.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":"apps/nsq_tail/nsq_tail.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cae0e571ae8a4330fa0a38d6b40f51cf507671f85f8b8c79c63b9d33c7aa4c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(nsqdTCPAddrs) \u003E 0 \u0026\u0026 len(lookupdHTTPAddrs) \u003E 0\u0060 appears character-identically in 3 files \u2014 apps/nsq_tail/nsq_tail.go, apps/nsq_to_http/nsq_to_http.go, apps/nsq_to_nsq/nsq_to_nsq.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":"apps/nsq_tail/nsq_tail.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9845e6e299040e112823a8900eaf65704d4f44b1b50848ca443bd046eb18306f"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060bodyLen\u0060 is read from the bytes being parsed at line 208 (\u0060binary.Read\u0060), then used to size a \u0060make([]byte, \u2026)\u0060 at line 213 \u2014 and nowhere in its scope is \u0060bodyLen\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: \u0060make\u0060 reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the runtime cannot satisfy is \u0060fatal error: out of memory\u0060 \u2014 not a panic, so no \u0060recover\u0060 intercepts it and the whole process dies; a 64-bit length too large to represent panics with \u0060makeslice: len out of range\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060bodyLen\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/lookup_protocol_v1.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"165ce2bc38fdb0710da11502e1e3f2f16f764ca5d7c5ce7003306790947c5640"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context: Only 0/6 functions that make a cancellable request (net/http, net.Dial) accept a context.Context or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a cancelled request, a shutdown, an expired deadline. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it (\u0060http.NewRequestWithContext\u0060, \u0060DialContext\u0060); where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"faab330444baf00d50193f250b5c9b514f84cdca16c24014ef3776329847910c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: Connect: \u0060Connect\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":"nsqd/lookup_peer.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f4a505dd4ce5376cfead7efe7e359e06c7eb0ea0318ac9dce782d6b1f8675d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: statsdLoop: \u0060statsdLoop\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":"nsqd/statsd.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5613c8bb956db0832afd418cf4ae6656ec7556519126c3f197a898a46e40831"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: GETV1: \u0060GETV1\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_request.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bdbbe80211ea3be3a44648ec8b241e0c7df275094d2127f2b0bfe9eae74f17"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: POSTV1: \u0060POSTV1\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_request.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5195c8c7c593437041078376591f427718c15953833e71ac9b783f07eb0e25e"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: HTTPGet: \u0060HTTPGet\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":"apps/nsq_to_http/http.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3e68426c4dcedce4f3d87607695377dbd5ce187e48f807543f090eaa990dd7"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: HTTPPost: \u0060HTTPPost\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":"apps/nsq_to_http/http.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0df1d2ef0649386000b3b528b252178537349edf3a3be7d6c156c47d36301df"}},{"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":"nsqlookupd/lookup_protocol_v1.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e5da7ed6dc3b30bb9cd984a71257c8992f827d536d225756a4493fbe2cb130"}},{"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":"nsqadmin/notify.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d961d9953d94645a0e333212ed93e1a9a91bc85e6cd84c3ba2a7ee5a99730b76"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := s.w.Write(b); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/writers/spread_writer.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"58def7f20e7b4de4aa6bcf9247f8cc78f020d09d9fe9d8bf3705b6401384bd2c"}},{"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":"apps/nsq_to_file/topic_discoverer.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf6298849596907f98796265efe843eacccfc40ca70661833e9d541ce1990cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060basicAuthUser\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/notify.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e9b85e8a32b5c0e93ae4a426a1268892a6aec1b06564ae5341ad7127d495e8"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-242","guid":"5c147e5c-be37-b051-9928-764ef5a8f3d3","name":"CWE-242","shortDescription":{"text":"CWE-242"},"helpUri":"https://cwe.mitre.org/data/definitions/242.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-322","guid":"f9bcce90-227a-d056-9902-7b1c2f9f299c","name":"Key Exchange without Entity Authentication","shortDescription":{"text":"Key Exchange without Entity Authentication"},"helpUri":"https://cwe.mitre.org/data/definitions/322.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-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-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-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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-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"}]}],"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":62,"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."]}]}