{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"server.run (cyclomatic 107): server.run has cyclomatic complexity 107 (threshold 15). Of this number, 103 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/server/server.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee83d20328f3ffd6f417636a54b2cbf5a2a3a47917cb7c3dfe79c20a205f597"}},{"ruleId":"D1","level":"warning","message":{"text":"config.get (cyclomatic 53): config.get has cyclomatic complexity 53 (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":"pkg/agent/config/config.go"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"0769bd387096c47abb433af74bf72bde3b4e2de26eab8f6ea3334b8f70c96f5a"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCD.reconcileSnapshotData (cyclomatic 40): ETCD.reconcileSnapshotData has cyclomatic complexity 40 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 14 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":"pkg/etcd/snapshot.go"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a880248fe2667f6c9cf6c76b0aeed6f934e869e28473399242111c881372a1"}},{"ruleId":"D1","level":"warning","message":{"text":"agent.run (cyclomatic 36): agent.run has cyclomatic complexity 36 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/run.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6621f8384f998954d83959128159133bf96a424c2cad4a3500d2f29626cbfbed"}},{"ruleId":"D1","level":"warning","message":{"text":"Cluster.ReconcileBootstrapData (cyclomatic 34): Cluster.ReconcileBootstrapData has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cluster/bootstrap.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c185df857b9f932f33859bf56d920d182272179e49bb894ccf48211e00ddba17"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.Start (cyclomatic 34): Config.Start has cyclomatic complexity 34 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/spegel/spegel.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9dd2ada56d76b33fab09930a49230d52c1094ed9bcb5f2430e14cfbf202204"}},{"ruleId":"D1","level":"warning","message":{"text":"etcdSnapshotHandler.reconcile (cyclomatic 32): etcdSnapshotHandler.reconcile has cyclomatic complexity 32 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_controller.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a29367467b73cde5a55b4d70030aadbb0d4ac57dad7313caaaaeddb870871b0"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCD.Reset (cyclomatic 28): ETCD.Reset has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 13 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 323). 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":"pkg/etcd/etcd.go"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7723a31b7570cc547b3e49ea7b8795fea9e3f9b653762afca89a6d0db911cf"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.updateCoreDNSConfigMap (cyclomatic 28): handler.updateCoreDNSConfigMap has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/node/controller.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a23d3861015d3d5b09e6d37aaa6b002794c6cf6173a8ba8eba2d0f1f48298e9"}},{"ruleId":"D1","level":"warning","message":{"text":"handlers.encryptionEnable (cyclomatic 27): handlers.encryptionEnable has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/secrets-encrypt.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a0e8ae3c5c3d7909b8d74df6674a6c9120f17023ae0aa4407b2444952712e6"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCD.snapshot (cyclomatic 26): ETCD.snapshot has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab14d7c212b373dbd5716a6bb650dd320d035dae7f2f7a34f7f623b82ff09465"}},{"ruleId":"D1","level":"warning","message":{"text":"flannel.createFlannelConf (cyclomatic 25): flannel.createFlannelConf 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":"pkg/agent/flannel/setup.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0dbb39e620dae8f41722c7990dfe7c451ce1fc65290174e1a70a5e3c79e885"}},{"ruleId":"D1","level":"warning","message":{"text":"deps.genClientCerts (cyclomatic 25): deps.genClientCerts has cyclomatic complexity 25 (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":"pkg/daemons/control/deps/deps.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0a6eabc515f78e5338eb6306b848a4bdecc0bccf5b708eba702ae5d44311c9"}},{"ruleId":"D1","level":"warning","message":{"text":"main.extract (cyclomatic 24): main.extract has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/k3s/main.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce687b7a3eb5ee036d95c0fff708f54b75b1483acd8b16e8a56933b84b41653d"}},{"ruleId":"D1","level":"warning","message":{"text":"handlers.encryptionStatus (cyclomatic 24): handlers.encryptionStatus has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/secrets-encrypt.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc55bc9d4142cd543c7dac226b183367e92339df0e695cc3f99ffbd8021748ba"}},{"ruleId":"D1","level":"warning","message":{"text":"cgroups.CheckCgroups (cyclomatic 23): cgroups.CheckCgroups has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cgroups/cgroups_linux.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab4d6ef207f236ca8d132c8efb5a833288e439a881998a2f632b8ddfabc26cd"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCD.manageLearners (cyclomatic 23): ETCD.manageLearners has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 1151). 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":"pkg/etcd/etcd.go"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e266be5caec0f542a7b787f560d0f9fcb86b21ce0d971fc075bf676dbfb0dd12"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.GetClient (cyclomatic 21): Controller.GetClient 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":"pkg/etcd/s3/s3.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0afa8b2281d12b914eda438b65d146e517d59adb1b569d9b58ae5305cc69d1"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCD.applySnapshotRestrictions (cyclomatic 20): ETCD.applySnapshotRestrictions has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_handler.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7696fd1774c93cb75899290d77b3f165e16d60533357841878f6e3ab6f4a3a3"}},{"ruleId":"D1","level":"warning","message":{"text":"containerd.getHostConfigs (cyclomatic 19): containerd.getHostConfigs has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/containerd/config.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f1537beab3ebe8f1efd457329b5177c461b3da1085db272c8eb9cf5a40cd3f"}},{"ruleId":"D1","level":"warning","message":{"text":"k3s.InstanceMetadata (cyclomatic 19): k3s.InstanceMetadata has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cloudprovider/instances.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"df62d38642ab3e03238c167eda0fc2b8a3925df477e31b06bcc77e5815346f75"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCD.join (cyclomatic 19): ETCD.join has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaaf63bdfd4a1f0e4e55eaba7c4d48fb4c4401619fe2dad2322897837cac2ec"}},{"ruleId":"D1","level":"warning","message":{"text":"serverList.recordSuccess (cyclomatic 18): serverList.recordSuccess 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":"pkg/agent/loadbalancer/servers.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"34aa68fc7c8dc8fec49d19b4ae608e0ffbeebb106be7be70c0bf664ed3283c73"}},{"ruleId":"D1","level":"warning","message":{"text":"netpol.Run (cyclomatic 18): netpol.Run has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/netpol/netpol.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"218a75b7fa5654df4cf76ca39b371072f69bffa58759208b39af66f56e6494af"}},{"ruleId":"D1","level":"warning","message":{"text":"Cluster.storageBootstrap (cyclomatic 18): Cluster.storageBootstrap has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cluster/storage.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3250db983a52522e09eacd70ae19c7259f7ffa2409786cd190474425c9b3d591"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCD.RemovePeer (cyclomatic 18): ETCD.RemovePeer 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":"pkg/etcd/etcd.go"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"705dbe5af3c441a78ed3a8a343d9603688618454cb9caeb36fd889c59cc66535"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.getConfigFromSecret (cyclomatic 18): Controller.getConfigFromSecret has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/s3/config_secret.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd8977ba93a46f7bf6cdfe87258365afa2383ced00e17bf9cf32b0ab1c4d6e1"}},{"ruleId":"D1","level":"warning","message":{"text":"watchqueue.processImageEvent (cyclomatic 17): watchqueue.processImageEvent 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":"pkg/agent/containerd/watcher.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5314d1b73e7bd6671ad363c748be9f0e45587cbf67fd95c94af12cf95beebe"}},{"ruleId":"D1","level":"warning","message":{"text":"Cluster.Start (cyclomatic 17): Cluster.Start has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, 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":"pkg/cluster/cluster.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4471e0cc41ce568ff65024d86079ec4e5a4cbb20a3f883f2224f2c1b67e0f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ETCDConfig.ToConfigFile (cyclomatic 17): ETCDConfig.ToConfigFile 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":"pkg/daemons/executor/executor.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ec41569a9e8d44fbd39c465cbed16846b8c33b39d77d03f540affa7102d7d5"}},{"ruleId":"D1","level":"warning","message":{"text":"embed.New (cyclomatic 17): embed.New 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":"pkg/executor/embed/embed.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2503efec07ee7ebe94cc8fbd9b661758d20c14eefccfec159ab1389a65bc7d78"}},{"ruleId":"D1","level":"warning","message":{"text":"k3s.podIPs (cyclomatic 16): k3s.podIPs 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":"pkg/cloudprovider/servicelb.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55226c80e38f1dbe2093c7298eb8a9858a1f81e0a515dea43a10ca941bb327c"}},{"ruleId":"D1","level":"warning","message":{"text":"configfilearg.readConfigFile (cyclomatic 16): configfilearg.readConfigFile 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":"pkg/configfilearg/parser.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a07f814b0d973043f85cb2a00c02d47c3f00ca5f632876fbe10fe51d532d74"}},{"ruleId":"D1","level":"warning","message":{"text":"etcdSnapshotHandler.sync (cyclomatic 16): etcdSnapshotHandler.sync has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_controller.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f737d87914040d1524a2a7368f230b717f9c763693e7fc2a9d7b1bdd2c6dc1e"}},{"ruleId":"D1","level":"warning","message":{"text":"rootless.createParentOpt (cyclomatic 16): rootless.createParentOpt has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/rootless/rootless.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"410dff54bbdfcfe97c2c224fb2f336493e88f7c3ef99451a58a4d94e88c0e267"}},{"ruleId":"D1","level":"warning","message":{"text":"secretsencrypt.GetEncryptionConfigMetrics (cyclomatic 16): secretsencrypt.GetEncryptionConfigMetrics has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 338). 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":"pkg/secretsencrypt/config.go"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f43a0fc76565ee2b835b7c7a521141b154a5a00fea227ed4cd4de14be2494d2"}},{"ruleId":"D1","level":"warning","message":{"text":"server.printTokens (cyclomatic 16): server.printTokens 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":"pkg/server/server.go"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d4157909a9c9bdd8fd0f70b284ea766189fdc6cb47fd6a3ff1fc401ef75caf"}},{"ruleId":"D1","level":"warning","message":{"text":"handlers.reencryptAndRemoveKey (cyclomatic 16): handlers.reencryptAndRemoveKey has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/secrets-encrypt.go"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de169ff3c0a493bd3a4db7b1a8189b49131cbd653c82fe3913c0508b95ee4cc"}},{"ruleId":"D2","level":"warning","message":{"text":"server.run (cognitive 180): server.run has cognitive complexity 180 (threshold 15). Drivers by points: if/else 94 (155 pts), boolean chains 14, loops 8 (11 pts) (nesting depth added 64). Of this number, 175 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/server/server.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ebf197dbc31b5716b688f3532b0f33a97e4072d7929bb174cfdf28baf9d720"}},{"ruleId":"D2","level":"warning","message":{"text":"config.get (cognitive 66): config.get has cognitive complexity 66 (threshold 15). Drivers by points: if/else 51 (62 pts), boolean chains 2, loops 2 (nesting depth added 11). 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":"pkg/agent/config/config.go"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8f758bea6a4f8880ba2a80f6804cd497bed38933f33dd6fa7df22c9f2d6d35"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.reconcileSnapshotData (cognitive 64): ETCD.reconcileSnapshotData has cognitive complexity 64 (threshold 15). Drivers by points: if/else 32 (50 pts), loops 5 (9 pts), boolean chains 5 (nesting depth added 22). Of this number, 41 points are the body\u0027s own statements and 23 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot.go"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc026b83f1cb84270f4e0f258e6a02aad4acc76672d00b4fee6c6cc5959ad13"}},{"ruleId":"D2","level":"warning","message":{"text":"Cluster.ReconcileBootstrapData (cognitive 57): Cluster.ReconcileBootstrapData has cognitive complexity 57 (threshold 15). Drivers by points: if/else 27 (51 pts), boolean chains 5, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cluster/bootstrap.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb1271a42bd359f43d1e60031c4a35954a833b954c233dfc70e57f15332cfa4"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.snapshot (cognitive 54): ETCD.snapshot has cognitive complexity 54 (threshold 15). Drivers by points: if/else 28 (53 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":"pkg/etcd/snapshot.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ca3cb3283ce26e0ba47b772684c3d75829795fea8b9f1fb56e7fd6a810e068"}},{"ruleId":"D2","level":"warning","message":{"text":"agentTunnel.watchPods (cognitive 52): agentTunnel.watchPods has cognitive complexity 52 (threshold 15). Drivers by points: if/else 10 (35 pts), loops 5 (15 pts), match/switch 1 (2 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/tunnel/tunnel.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda60b4bdedd6e2fe9288f1c920c1259ba7600c0053e279d850d9c8dd374aea2"}},{"ruleId":"D2","level":"warning","message":{"text":"etcdSnapshotHandler.reconcile (cognitive 52): etcdSnapshotHandler.reconcile has cognitive complexity 52 (threshold 15). Drivers by points: if/else 24 (42 pts), loops 4 (6 pts), boolean chains 4 (nesting depth added 20). Of this number, 44 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_controller.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"086f40a985fa7e2b641969fa6cdc070e9ee4fd50b17ac30a6bd23f18d64858d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.Reset (cognitive 50): ETCD.Reset has cognitive complexity 50 (threshold 15). Drivers by points: if/else 24 (47 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 24). Of this number, 25 points are the body\u0027s own statements and 25 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":"pkg/etcd/etcd.go"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf6f9f514293838a969a79b15e99d3d6b37ea104053b90686ff0cd870ac88b9"}},{"ruleId":"D2","level":"warning","message":{"text":"cgroups.CheckCgroups (cognitive 47): cgroups.CheckCgroups has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 5 (10 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cgroups/cgroups_linux.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af6ba216a06feedcc065634305f8881018b85b422657cb2a5a92ce60636baba"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.RemovePeer (cognitive 44): ETCD.RemovePeer has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (38 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4628bb744e2415e88723ef4749494cdecdda3903e39c8b0a75fec141f0badd"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.Start (cognitive 44): Config.Start has cognitive complexity 44 (threshold 15). Drivers by points: if/else 32 (39 pts), boolean chains 3, loops 2 (nesting depth added 7). Of this number, 35 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/spegel/spegel.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cda0a544168e76e71a4eb0b41747425b7a5fb1147b6d0788e9b0e1969619424"}},{"ruleId":"D2","level":"warning","message":{"text":"flannel.createFlannelConf (cognitive 41): flannel.createFlannelConf has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (28 pts), loops 4 (9 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/flannel/setup.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc82bc5943326f80940c26666b4de5716a544e5859351573190404231770e4a5"}},{"ruleId":"D2","level":"warning","message":{"text":"containerd.getHostConfigs (cognitive 40): containerd.getHostConfigs has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 4 (5 pts), boolean chains 2 (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":"pkg/agent/containerd/config.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8495ec9df50924822f8d321a7f284f3e0284186a7461d04768cc5232f5061724"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.updateCoreDNSConfigMap (cognitive 40): handler.updateCoreDNSConfigMap has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23 (35 pts), loops 3, boolean chains 2 (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":"pkg/node/controller.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"61018f752d53135423055b10417dd86ce19647e5f3192b560660ff1b857fecc1"}},{"ruleId":"D2","level":"warning","message":{"text":"main.extract (cognitive 39): main.extract has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (36 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/k3s/main.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6264a5510178490752b9639cd11fa38e2e9d0238ab645236d9184efafc7ef53"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.encryptionStatus (cognitive 38): handlers.encryptionStatus has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 7, loops 3 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/secrets-encrypt.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a851c89ec3526cafc2ecd61b2dc2c413cb1d6c56248ea19238c15e5403a28aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.run (cognitive 37): agent.run has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 12 (nesting depth added 4). Of this number, 34 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/run.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5035160fdb18bff39cec09aec3ace2a91476c03f9a97c49fca68b9ebf40e9802"}},{"ruleId":"D2","level":"warning","message":{"text":"server.printTokens (cognitive 37): server.printTokens has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (37 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/server.go"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb3440623bbe0ae431f7d590e2458003002760452c8447ddae89a096f355408"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.join (cognitive 35): ETCD.join has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5e33d41da3eaacc023c2fc7633dea519bd7602990e31016604158c74aea13a"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.ListSnapshots (cognitive 35): Client.ListSnapshots has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 2 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/s3/s3.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedc628c7afce03b0a876e33730a0cf0889a9e5fe3f49196cf21f50efeb6de7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Cluster.Start (cognitive 34): Cluster.Start has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 19). Most of this is not in the body itself: 10 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 80). 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":"pkg/cluster/cluster.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18795930b09209ea938c74c0496cd654660cf5b4e68c49e3dd10de5cd5f94a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.manageLearners (cognitive 34): ETCD.manageLearners has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 4 (5 pts), match/switch 1 (2 pts) (nesting depth added 13). Most of this is not in the body itself: 3 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 1151). 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":"pkg/etcd/etcd.go"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16d88bbce4ba3b2e38ecc8ae6b7145891bcf55165fbaf80edf0e6723a5fe283"}},{"ruleId":"D2","level":"warning","message":{"text":"embed.New (cognitive 33): embed.New has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 1 (3 pts), boolean chains 2 (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":"pkg/executor/embed/embed.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52d876e2984e81f9ecb91a838dcf9c736c70725e7f0f6931d6d867e0126ba18"}},{"ruleId":"D2","level":"warning","message":{"text":"serverList.recordSuccess (cognitive 31): serverList.recordSuccess has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (25 pts), match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/loadbalancer/servers.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1db54275afa79023ac4efba23e8a5c725c7ef7799a220a8991733bc03d23e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Cluster.storageBootstrap (cognitive 31): Cluster.storageBootstrap has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (31 pts) (nesting depth added 12). Of this number, 16 points are the body\u0027s own statements and 15 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":"pkg/cluster/storage.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa632ac8bdd380f5d87ad4faa9782c96f4fcadcf966ef81e9cff17fce5068cc"}},{"ruleId":"D2","level":"warning","message":{"text":"TunnelServer.onChangePod (cognitive 31): TunnelServer.onChangePod has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/control/tunnel.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5c8da24a2ef7d3a1cc76cf7f0972ba5778540c88015f90b8cf39a3dbc71a0f"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.getConfigFromSecret (cognitive 31): Controller.getConfigFromSecret has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (25 pts), loops 2 (6 pts) (nesting depth added 9). 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":"pkg/etcd/s3/config_secret.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c41f45a0d1647667c68d5b997196bdc4bd7c95a24afe50627478ce4aac2826"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.encryptionEnable (cognitive 31): handlers.encryptionEnable has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 8, 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":"pkg/server/handlers/secrets-encrypt.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdd6b8e0b20dd77cb5706988ebdcc9ffa6d1437afbbcacdf408b130dfa0fd11"}},{"ruleId":"D2","level":"warning","message":{"text":"configfilearg.readConfigFile (cognitive 30): configfilearg.readConfigFile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 4 (7 pts), boolean chains 2 (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":"pkg/configfilearg/parser.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fda72653f657ff922ef88769cfe10c3f01f72f73de30e70523988e3916ce1b"}},{"ruleId":"D2","level":"warning","message":{"text":"deps.genClientCerts (cognitive 30): deps.genClientCerts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24 (30 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/control/deps/deps.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"43beda3b4821245aa6c7f7823262c3c00a32c9dd611ce53c99156e920efd10dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.GetClient (cognitive 30): Controller.GetClient has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/s3/s3.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0634d1954c074facb71691282f596035cb833266a3be23420f7eabd7125240"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.toBindPorts (cognitive 30): handler.toBindPorts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 4 (10 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/rootlessports/controller.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a086ce0189ac4a2c95c45faccef42f3127fba04ac3d039f7d56d57a5c7ab2615"}},{"ruleId":"D2","level":"warning","message":{"text":"TunnelServer.dialBackend (cognitive 27): TunnelServer.dialBackend has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/control/tunnel.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e71b0debb98b3ecf4ae439a097caa365b5d44c89f7a10fafd3d2c07c22ba624"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.applySnapshotRestrictions (cognitive 27): ETCD.applySnapshotRestrictions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 11). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_handler.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"944c3b435ead1a6541853162e8e42911149a280a33fa2e7bc33757a33f1b6466"}},{"ruleId":"D2","level":"warning","message":{"text":"util.GetArgs (cognitive 27): util.GetArgs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 5 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/args.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2541e9cbc8bca7736811bc74857b2546ccb800614bfa4127626513613443496d"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCDConfig.ToConfigFile (cognitive 26): ETCDConfig.ToConfigFile has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 1 (5 pts), boolean chains 2, loops 1 (2 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":"pkg/daemons/executor/executor.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dfb5eb9e41c4abae4da7808f13f47d0271d50ed791334d210510e8558c15f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.DeleteSnapshots (cognitive 26): ETCD.DeleteSnapshots has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot.go"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d14135e6a46e007de3af95b49ccef779b5fa64001e91e4dece7839fb2a7580"}},{"ruleId":"D2","level":"warning","message":{"text":"containerd.prePullImages (cognitive 24): containerd.prePullImages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/containerd/containerd.go"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"2720759a105101b1bffcb8dee8d1d57f27b4dcc46bd77f166afaf793d198c1eb"}},{"ruleId":"D2","level":"warning","message":{"text":"watchqueue.processImageEvent (cognitive 24): watchqueue.processImageEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/containerd/watcher.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5281e694eebc49058521bb2a747e70bd4f23b71f56dbc7e12dcc08f718c7f074"}},{"ruleId":"D2","level":"warning","message":{"text":"agentTunnel.startWatches (cognitive 24): agentTunnel.startWatches has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/tunnel/tunnel.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86c5e715db2e62c36827a39e54e5f89e615b692e9bccdc1a61856774333f54a"}},{"ruleId":"D2","level":"warning","message":{"text":"k3s.InstanceMetadata (cognitive 24): k3s.InstanceMetadata has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, loops 4 (8 pts), boolean chains 1 (nesting depth added 4). 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":"pkg/cloudprovider/instances.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"393387f3ff1517f93762674f17f30967d402f5453a2d92f2a5132edda450ed1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.findStart (cognitive 24): Parser.findStart has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/configfilearg/parser.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdd37c33b6160151b1b26b5520be7ba8bb1a89d90983f6d5e0fd649d4b779e7"}},{"ruleId":"D2","level":"warning","message":{"text":"etcdSnapshotHandler.sync (cognitive 24): etcdSnapshotHandler.sync has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 1 (nesting depth added 9). Of this number, 13 points are the body\u0027s own statements and 11 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":"pkg/etcd/snapshot_controller.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0e1769beac814dacca5b45aaed0b65f9301ce0869f5b7bea8940271e063133"}},{"ruleId":"D2","level":"warning","message":{"text":"rootless.createParentOpt (cognitive 24): rootless.createParentOpt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20 (24 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"pkg/rootless/rootless.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f17295e9074e25504424effaa8fb9ca45bb056f97983853290d425a776b392"}},{"ruleId":"D2","level":"warning","message":{"text":"serverBootstrapper.Get (cognitive 24): serverBootstrapper.Get has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/spegel/bootstrap.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4f68ed64ff74dd2b9d1874762c605f2656fa1956abbdb486e5475af1b4eafd"}},{"ruleId":"D2","level":"warning","message":{"text":"cert.rotate (cognitive 23): cert.rotate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/cert/cert.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e38fcf9e239bc5d7022501a75094b83ef857fb27c6a57d3d6cb420aa6a7b000"}},{"ruleId":"D2","level":"warning","message":{"text":"k3s.podIPs (cognitive 23): k3s.podIPs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, loops 2 (3 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":"pkg/cloudprovider/servicelb.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"522707fe1fab76f64701852d796c4b633403e809c36d234932e4cc0f6d2d98ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Cluster.Bootstrap (cognitive 22): Cluster.Bootstrap has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 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":"pkg/cluster/bootstrap.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"37145475d03579425f6d237f01a423f9d9fdc9b5cb7cd0485a8cb9c2a13ed81d"}},{"ruleId":"D2","level":"warning","message":{"text":"containerd.watchImages (cognitive 21): containerd.watchImages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 3 (10 pts), loops 1 (nesting depth added 13). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 333). 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":"pkg/agent/containerd/watcher.go"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee04ec157473a4fdaf4b12c6519e27d0af0a4c50a91bca39cb04d2877c9574b"}},{"ruleId":"D2","level":"warning","message":{"text":"cluster.Save (cognitive 21): cluster.Save has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cluster/storage.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a158d628fdaca14959be33002c7a86ff6506dfc8b87ea2038a69a60438b710a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.FindString (cognitive 21): Parser.FindString has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/configfilearg/parser.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39cd1d43ae4caf3fe0d87cdb976842e43a89dd3bab4978a7395588fb996d271"}},{"ruleId":"D2","level":"warning","message":{"text":"etcd.ClientURLs (cognitive 21): etcd.ClientURLs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"71822d7ed15e4419927b81fc414af550501a767bf50d17112eb94762ddf13aae"}},{"ruleId":"D2","level":"warning","message":{"text":"etcdMemberHandler.sync (cognitive 21): etcdMemberHandler.sync has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (21 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/member_controller.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a9141eb020cb2faf5f8789eae3e22a39f34c8acc7beed291f09a6505640a0b"}},{"ruleId":"D2","level":"warning","message":{"text":"clientaccess.appendCertsFromPEM (cognitive 20): clientaccess.appendCertsFromPEM has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, 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":"pkg/clientaccess/token.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3fb70b37461420a8cccb21411ba9e5440919fc95f58fcdd898aa452c1ae25d"}},{"ruleId":"D2","level":"warning","message":{"text":"watcher.listFilesIn (cognitive 20): watcher.listFilesIn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/deploy/controller.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"583aefd1283403f82a19a2d74488e83a86e2518784c89833c7ed0e81dbb4beeb"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.watchEndpointSlice (cognitive 20): handler.watchEndpointSlice has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (4 pts), match/switch 1 (2 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":"pkg/etcd/apiaddresses_controller.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f9354c58637f92fe783ee00b8a4e2df2d11d2eb9ba141ff821119df839fe6b"}},{"ruleId":"D2","level":"warning","message":{"text":"File.ToETCDSnapshotFile (cognitive 20): File.ToETCDSnapshotFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (20 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"pkg/etcd/snapshot/types.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7577b5dbfe21546407942ba03504d59266c1e370e53b937b304e8da3748e74b8"}},{"ruleId":"D2","level":"warning","message":{"text":"server.writeKubeConfig (cognitive 20): server.writeKubeConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (20 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"pkg/server/server.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"7182f72adfb4696cfc35a41c1f472cb4dd0942f3f5ca66120f40bbdb86d24316"}},{"ruleId":"D2","level":"warning","message":{"text":"flannel.LookupExtInterface (cognitive 19): flannel.LookupExtInterface has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/flannel/flannel.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"665c0f83da8cfad08cf394dbf43eb07d2559c627b504dc2080ef411f73d913ec"}},{"ruleId":"D2","level":"warning","message":{"text":"netpol.Run (cognitive 19): netpol.Run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 3, boolean chains 1 (nesting depth added 2). Of this number, 10 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/netpol/netpol.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2963753540411ee5fc70d51bdf97dfb43bda0f77a85531a423f3354f565ac49"}},{"ruleId":"D2","level":"warning","message":{"text":"agentTunnel.authorized (cognitive 19): agentTunnel.authorized has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 2 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/tunnel/tunnel.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1589bd99a945d4650e921dd16a9f0c4e6251e80b20e243ccfd5cc97e5eeb3cd7"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.extractConfigArgs (cognitive 19): agent.extractConfigArgs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/agent/agent.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fccf94b4df2a94a44ffc48de3f0b267a6aad65f5ee28b0e38ce413c85163f67"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.kubeletArgsAndConfig (cognitive 19): agent.kubeletArgsAndConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/agent/agent_linux.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f4849bd1021d6e47cb1203b7504eb99f4f4663e1643f8d2a9a6641ea040866"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.Register (cognitive 19): ETCD.Register has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (19 pts) (nesting depth added 10). Of this number, 12 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe331029600cc20edfe7051301cd8d0e0bf49601ca150b5f7a31cb78c4b8e37e"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.serviceChanged (cognitive 19): handler.serviceChanged has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (7 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":"pkg/rootlessports/controller.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2039a2feeed0d402d1978e0ff8471b272675d3eb7b2312138cca9815230c1822"}},{"ruleId":"D2","level":"warning","message":{"text":"util.getIPFromInterface (cognitive 19): util.getIPFromInterface has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/net.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3551e6b21e32e17cb945b0675f2f3a8cb1273a2938c09905b6be48e00dde49f"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.waitForAPIServerAddresses (cognitive 18): agent.waitForAPIServerAddresses has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 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":"pkg/agent/run.go"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b4bc662104af587702ff8c87d54d951c6839e770b8318fe431b08b81d3d02d"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.Run (cognitive 18): agent.Run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/agent/agent.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c1e73e530b1676fcc67f86cd05baf75817e6c5c032f687b26981144679b9a4"}},{"ruleId":"D2","level":"warning","message":{"text":"secretsencrypt.Status (cognitive 18): secretsencrypt.Status has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/secretsencrypt/secrets_encrypt.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c12d3b82cac6ce34f8860ba806659e40a76af47a5dac8caf660189717927f7"}},{"ruleId":"D2","level":"warning","message":{"text":"k3s.getStatus (cognitive 18): k3s.getStatus has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cloudprovider/servicelb.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafe955bb33be4c29c6091a341f3394993c708836910ac93812d5ef2c8be5647"}},{"ruleId":"D2","level":"warning","message":{"text":"etcd.backupDirWithRetention (cognitive 18): etcd.backupDirWithRetention has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a09917d2c55805adda0f202fd590b585ffeaa0a193efbe9d0bb9825c1f5eb1"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.Test (cognitive 18): ETCD.Test has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65cea7ce06503d5c544dc24d1593b296b2f483f902a6add627f983e110fa5cb"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.NewNonResourceGroupAuthorizer (cognitive 18): auth.NewNonResourceGroupAuthorizer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (3 pts) (nesting depth added 7). Most of this is not in the body itself: 8 of the 18 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":"pkg/server/auth/auth.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cdcae6ae3488a42e14479f8859734fa206d945fde36f9742a0616b6be6071b"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.reencryptAndRemoveKey (cognitive 18): handlers.reencryptAndRemoveKey has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/secrets-encrypt.go"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9985c84095609a83eadc3d7ba4092183a5a379f88c17dffdcd33c3536251d55"}},{"ruleId":"D2","level":"warning","message":{"text":"containerd.labelContent (cognitive 17): containerd.labelContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (6 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":"pkg/agent/containerd/containerd.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbeedf385338a209a28509184d2d5737d04ac22f52968c767dd73770ba51992"}},{"ruleId":"D2","level":"warning","message":{"text":"flannel.syncAnnotations (cognitive 17): flannel.syncAnnotations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 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":"pkg/agent/flannel/setup.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a4f3cffb0ce84808ce35feaa8b1a6c48890ffe4bfed3b4556b0de57f2d00ec"}},{"ruleId":"D2","level":"warning","message":{"text":"Cluster.shouldBootstrapLoad (cognitive 17): Cluster.shouldBootstrapLoad has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cluster/bootstrap.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc87fa2d40369edf37044982fb7de763777b6a1cd82b8bf56b7914911d9fd43"}},{"ruleId":"D2","level":"warning","message":{"text":"TunnelServer.onChangeNode (cognitive 17): TunnelServer.onChangeNode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/control/tunnel.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"67587f91d516183d730b50c87e009b031ac3e9ef995489286e02d732ad4266bf"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy.Stage (cognitive 17): deploy.Stage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), jumps 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/deploy/stage.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"12459c61c4f39596f83dc13486cf0910dc92e001dd5e31ff2af28190aa222d80"}},{"ruleId":"D2","level":"warning","message":{"text":"ETCD.Start (cognitive 17): ETCD.Start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (2 pts) (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4fa837cb81c00bbe2d9042f5f1fbe941764814595aa12b91440389771709de"}},{"ruleId":"D2","level":"warning","message":{"text":"File.FromETCDSnapshotFile (cognitive 17): File.FromETCDSnapshotFile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"pkg/etcd/snapshot/types.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9dee9b237ed91297d57889e2eadb690e23352b2ca65d48896e053d4330dccd"}},{"ruleId":"D2","level":"warning","message":{"text":"secretsencrypt.GetEncryptionConfigMetrics (cognitive 17): secretsencrypt.GetEncryptionConfigMetrics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 338). 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":"pkg/secretsencrypt/config.go"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fd192fc19b4412fb1f48786d035bdd37f302b8610fafe21e31baf8f7501232"}},{"ruleId":"D2","level":"warning","message":{"text":"containerd.getDigests (cognitive 16): containerd.getDigests has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/containerd/containerd.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a65bf061391a0d17cae031ee376792f566654b03f153ba7bd131b78d3b6d60"}},{"ruleId":"D2","level":"warning","message":{"text":"serverList.setAddresses (cognitive 16): serverList.setAddresses has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3, boolean chains 2 (nesting depth added 4). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/loadbalancer/servers.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5340bc2ee6aea7699101d3800e6ccfa0b98faf473f7eba0ec030c7f7e83b55"}},{"ruleId":"D2","level":"warning","message":{"text":"cert.backupCertificates (cognitive 16): cert.backupCertificates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/cert/cert.go"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8b377f9aded5ab7262bbaee825a48930a4063237ad3b0ec1c7acca6a020a51"}},{"ruleId":"D2","level":"warning","message":{"text":"token.list (cognitive 16): token.list has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/token/token.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"190d2223533bc55642441e8e6fa12cdfc02af1624ef618fc24227132c11f6d71"}},{"ruleId":"D2","level":"warning","message":{"text":"clientaccess.hashCA (cognitive 16): clientaccess.hashCA has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 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":"pkg/clientaccess/token.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8f4f87594169982d6ee96edb6c940ad8957b1868e58e023d86daac6308dc07"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy.walkFiles (cognitive 16): deploy.walkFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (nesting depth added 8). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 180). 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":"pkg/deploy/controller.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afbf0ff94dfd0c66a7f0e620f06dce1284ffeda8eab8f2da173acde36fdb66c"}},{"ruleId":"D2","level":"warning","message":{"text":"watcher.delete (cognitive 16): watcher.delete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"pkg/deploy/controller.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"8493717342d0ce4761ad312d6b9fa92a749a13d931a8893e8412770fc8fc6f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"Embedded.Bootstrap (cognitive 16): Embedded.Bootstrap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/executor/embed/embed.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc72f140dd1f10d80f84064ee66848514253a445e44dc7e79539ef1a4e30ef4"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.validateBootstrap (cognitive 16): handlers.validateBootstrap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/cert.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ec3a2276848a626d87fb3eaaac14abfccd421e43bdba360b1673ee5c9050ad"}},{"ruleId":"D2","level":"warning","message":{"text":"handlers.validateCA (cognitive 16): handlers.validateCA has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/cert.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"18767df919cc3fbecb5e38ad01249c08b50bd7f2e11b8c6e19cdb6226b87f8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"util.GetAddressesFromSlices (cognitive 16): util.GetAddressesFromSlices has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (7 pts), boolean chains 2 (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":"pkg/util/api.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b535ad49459e022c2f35d0d11cb74427ff76314e8a0c1706b075490b53e4553"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: server.run: FunctionTooLong \u2014 run runs 399 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 299 over it, 3.99\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":"pkg/cli/server/server.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"146a6902fbd756e1e9dddc4dc62e42c8fa24dbcefe52a98895d24345f1a398c8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Server: TooManyFields \u2014 90 stored fields. The bar is 30 stored fields; this is 60 over it, 3.00\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/cmds/server.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"459600313cc8994977c923bf9886242ee89cc0e2ba0349d83aefd3f7be265286"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: config.get: FunctionTooLong \u2014 get runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/config/config.go"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab129baf2e550a59f176a0c7b1425314b4c4f40554cf54862039cbbf4cdcaca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Control: TooManyFields \u2014 66 stored fields beside 2 methods. The bar is 30 stored fields; this is 36 over it, 2.20\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":"pkg/daemons/config/types.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"73993da347e1ef1f06726b4ad4367db1057e8d05e476c4640f25b8f12480e803"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ETCD: TooManyMethods \u2014 65 methods, declared across 3 files: etcd/etcd.go (41), etcd/snapshot.go (16), etcd/snapshot_handler.go (8). The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8061f847859521ec8dcb619640d3d31485246cd06dca863ee52f1264b6acae25"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Agent: TooManyFields \u2014 60 stored fields. The bar is 30 stored fields; this is 30 over it, 2.00\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/config/types.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e1284c36b17ff968c8118c69161f771548e407bbb58c5c6b351d0538f9f6c0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ControlRuntime: TooManyFields \u2014 60 stored fields. The bar is 30 stored fields; this is 30 over it, 2.00\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/config/types.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a40ea4a83eb1ecdbb3f2a34a8a522de30f6c54fa65d1629a0d07d177d5cfcd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: etcd/etcd.go: FileTooLong \u2014 986 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: ETCD (42 blocks, 109-1684). The bar is 500 significant lines; this is 486 over it, 1.97\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":"pkg/etcd/etcd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4eb8832f9d05b9d8879bc17642f164d2925d0b7df6473c303f1d99689f2420"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ETCD: ClassTooLong \u2014 715 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods, 42 blocks, lines 109-1684. The bar is 400 significant lines; this is 315 over it, 1.79\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":"pkg/etcd/etcd.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"642d7b74cda833f8d193e2518b78a93e133406dfcc06fd756f454499c16a4fa3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Agent: TooManyFields \u2014 47 stored fields. The bar is 30 stored fields; this is 17 over it, 1.57\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":"pkg/cli/cmds/agent.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f375135e5b5f82f299c9e13448f023835d32900c0a7a54234c152c04d063899e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: k3s: TooManyMethods \u2014 43 methods, declared across 4 files: cloudprovider/servicelb.go (26), cloudprovider/cloudprovider.go (9), cloudprovider/loadbalancer.go (5), cloudprovider/instances.go (3). The bar is 30 methods; this is 13 over it, 1.43\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":"pkg/cloudprovider/cloudprovider.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa66e49127e0cc6282d2eb6df050277f58ac536c77e0c7fbe2533d66346c12d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.Start: MethodTooLong \u2014 Start runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\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":"pkg/spegel/spegel.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3486a85398ac53680a0b1f3ca8e4ea55d6e60e40daae23e7c2bb4de8b72c347e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ETCD.snapshot: MethodTooLong \u2014 snapshot runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1474637e883d4636c3ff98ff270b2a4de88cb8106114b42c5e89d23bf0c69a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: etcd/snapshot.go: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: ETCD (16 blocks, 112-933). 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":"pkg/etcd/snapshot.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec672ea1b54914b5b555c268d1b4d994deaa295baf177e55f7dd6dcb8fa6906b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ETCD.reconcileSnapshotData: MethodTooLong \u2014 reconcileSnapshotData runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot.go"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae47c7790135089af08ebfa917d65565369eefeecc3691b2f173eaff97962ebe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cmds/server.go: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: ServerFlags (192-671). The bar is 500 significant lines; this is 70 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/cmds/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d21e8d9e6a45d8d3d92708ba610b9d9fb2d86b4a782d1664b8ec55319e6a51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deps/deps.go: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 51 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/control/deps/deps.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b76cf16445ddd542a2829a1c212a25228c1eb24550110ee731cd6726665e7b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: k3s.newDaemonSet: MethodTooLong \u2014 newDaemonSet runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cloudprovider/servicelb.go"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc84ddc211e3ae34bf8c6b31ce68a0897204e2b5f96b650b812b2a6a695b7e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/config.go: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/config/config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c098c441f704820391689a9e38d64b903beff3e6f1abbb99cb882c105a598ee9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cloudprovider/servicelb.go: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: k3s (26 blocks, 71-843). The bar is 500 significant lines; this is 8 over it, 1.02\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":"pkg/cloudprovider/servicelb.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3e73312f02669f88365476736520835a8f5d9f1000343c9a9fa538c7c0a921"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): pkg/etcd/snapshot_handler.go:78-93 | pkg/etcd/snapshot_handler.go:95-110 | pkg/etcd/snapshot_handler.go:112-127 | pkg/etcd/snapshot_handler.go:129-150 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_handler.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"474229cb89dbd1b454d916594b58abc4be99a09e1149cacb7fdcac1605d91659"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): cmd/server/main.go:50-102 | main.go:35-72 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/server/main.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"619f328854237711d1a77b9dfafbf2a1aeb95aeb00b988bbf0b64d95e8b3cecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): pkg/agent/config/config.go:247-272 | pkg/agent/config/config.go:352-377 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/config/config.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3a14f0bf3a8ee39a7bb2d4f0bb43f75703612c24f3fe8cbc46872ee8b47368"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): pkg/agent/flannel/flannel.go:238-257 | pkg/agent/flannel/flannel.go:272-291 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/flannel/flannel.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"204b27d4f550cf03840d786f47dccf0ba37f3dce39e5cc2f64b2a4aa91f0b026"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): pkg/cli/etcdsnapshot/etcd_snapshot.go:111-146 | pkg/cli/etcdsnapshot/etcd_snapshot.go:155-192 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/etcdsnapshot/etcd_snapshot.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"58351133469bdb227e8016b50e6915b117f9173f7ba183e2f159f44e1f182414"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): pkg/agent/run_linux.go:20-49 | pkg/agent/run_windows.go:21-46 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/run_linux.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f436adcc74ca367c43bf03efc1ecd05c5c368761f396e819cb31eb04ae174e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): pkg/agent/flannel/setup.go:142-157 | pkg/daemons/control/server.go:453-472 \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":"pkg/agent/flannel/setup.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"246e9756e8535dcae39c68efb9c4de29b80fbcfe3e6980805e46644468936e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): pkg/dataverify/dataverify.go:34-57 | pkg/dataverify/dataverify.go:60-83 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/dataverify/dataverify.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6042c1b2a6164a229054042714cf31e109f87103708c8612ef943532a4e65f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): pkg/executor/embed/embed.go:197-216 | pkg/executor/embed/embed.go:218-237 | pkg/executor/embed/embed.go:272-292 | pkg/executor/embed/embed.go:294-313 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/executor/embed/embed.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed560f6e4074d40d87ef8835f2e0521dde715d98f2c66c3cd13174ad4a06505"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): pkg/cli/secretsencrypt/secrets_encrypt.go:25-44 | pkg/cli/token/token.go:172-190 \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":"pkg/cli/secretsencrypt/secrets_encrypt.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"41da9210a628ff975dc6da7b53755de05ac783a4df07f05bf05c630b25ffc010"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): pkg/clientaccess/token.go:315-328 | pkg/clientaccess/token.go:331-344 | pkg/clientaccess/token.go:347-360 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/clientaccess/token.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d36b8934d09ccc3e1eb0566d98dec3f3836221ab28e97f678ea0f1857dfab08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): pkg/agent/containerd/watcher.go:231-251 | pkg/agent/containerd/watcher.go:255-281 \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":"pkg/agent/containerd/watcher.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e946998d42523e6451da40bc61909e3b3411f1172fa32e149d3661d98e5f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 18\u002B corresponding lines): pkg/cli/secretsencrypt/secrets_encrypt.go:50-67 | pkg/cli/secretsencrypt/secrets_encrypt.go:69-86 | pkg/cli/secretsencrypt/secrets_encrypt.go:152-172 | pkg/cli/secretsencrypt/secrets_encrypt.go:174-194 | pkg/cli/secretsencrypt/secrets_encrypt.go:196-217 | pkg/cli/secretsencrypt/secrets_encrypt.go:219-239 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/secretsencrypt/secrets_encrypt.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"983bfba18444e9c69f0521b6ec99772477c53baff5c9ee3cea791561520cbb9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/server/handlers/cert.go:31-45 | pkg/server/handlers/token.go:35-54 \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":"pkg/server/handlers/cert.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"69162f83c33527eda2f70f4a554c90476c02eee7b8868a472a8321accff07692"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/agent/config/config.go:191-203 | pkg/agent/config/config.go:205-226 \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":"pkg/agent/config/config.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e03f7e9a1b771c7ee491de71dba6da66c008c26572887b4e904c61a2ae03b38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/cloudprovider/servicelb.go:94-108 | pkg/cloudprovider/servicelb.go:111-126 \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":"pkg/cloudprovider/servicelb.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c99e7adddb6a3ab2f3925b539cd9dcd9505f2e691e51ff3bb957c4eb9ef646f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/util/patch.go:67-82 | pkg/util/patch.go:85-99 \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":"pkg/util/patch.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e183079d45a43075148b157daf4367c97a366772b108551cb974fd9b4b7956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/server/handlers/handlers.go:161-172 | pkg/server/handlers/handlers.go:174-186 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/handlers.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff8803e023eb6345e6d601f2654cfc62544c4baf48d6f6a0c39d7d5e89f7d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): pkg/agent/flannel/flannel.go:226-236 | pkg/agent/flannel/flannel.go:260-270 \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":"pkg/agent/flannel/flannel.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f430f7f72ff13197c74a03e89043672b1519772722aee415def5d1c3bfa255d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): pkg/server/handlers/handlers.go:52-60 | pkg/server/handlers/handlers.go:188-200 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/handlers.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fba501eb76660c950783467dee77a0be4f87f594e3f19beeced070490290e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/util/api.go:221-233 | pkg/util/api.go:237-251 \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":"pkg/util/api.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"15075a03e50170e6d19fec998f43d95a006ce16f2e196aba1603a067a2690a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/util/net.go:62-74 | pkg/util/net.go:111-123 \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":"pkg/util/net.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"98db54deb0acee5b253598555db07c107a1b57c354354cd00d3cecf70726ed64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): cmd/cert/main.go:15-28 | cmd/encrypt/main.go:15-32 | cmd/etcdsnapshot/main.go:15-29 | cmd/token/main.go:15-30 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/cert/main.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d792def5c39b6524391e21dd6a1ff9cda070b01a033196f277dcbc1d4d18a195"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): pkg/etcd/s3/s3.go:366-372 | pkg/etcd/s3/s3.go:376-386 \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":"pkg/etcd/s3/s3.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba7d10cc1fd720803e5227bfad3bc6e915da231f155cdab5ec0d10c123b757f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): pkg/server/handlers/handlers.go:108-115 | pkg/server/handlers/handlers.go:117-124 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/handlers.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7445e268d51c9a39be91b4880db4622bd371016695eba606d273a54711da336d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): pkg/etcd/store/store.go:112-124 | pkg/etcd/store/store.go:126-139 | pkg/etcd/store/store.go:141-154 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/store/store.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd809733eebc13057d3a14a233b4fa59e7323bd4123123cac0ef773ecac2f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/etcd/member_controller.go:17-28 | pkg/etcd/metadata_controller.go:20-31 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/member_controller.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5e9962f1e9eecaaf003f2631750e161ff60c5f32c1b59f9d27c95a196c1825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): pkg/agent/flannel/setup_linux.go:7-14 | pkg/agent/flannel/setup_windows.go:7-14 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/flannel/setup_linux.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c576b75ee0f09da025f8d9029fbaf2f3cc89112d24906ad236fbffa0644eff62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): pkg/agent/containerd/config_linux.go:117-124 | pkg/agent/containerd/config_windows.go:59-66 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/containerd/config_linux.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f04e79394075427ba5c3e22994f73cc100a21cce03072c7d08de948cc20315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): pkg/daemons/agent/agent_linux.go:99-130 | pkg/daemons/agent/agent_windows.go:63-93 \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 \u0060pkg/daemons/agent/agent_linux.go:99\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":"pkg/daemons/agent/agent_linux.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e912efdb8c0a3a27fe08fa01ef28e35e635af26ab03b4a309c2499144b09bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): cmd/server/main.go:72-99 | main.go:43-69 \u2014 before extracting anything, compare \u0060cmd/server/main.go\u0060 and \u0060main.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/server/main.go:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/server/main.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a2160cbc2cba09ad9d2f750ee5b9e7b2e0d5cad8d76c1236ffc1035aa019a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): pkg/clientaccess/token.go:487-509 | pkg/clientaccess/token.go:544-566 \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 \u0060pkg/clientaccess/token.go:487\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/clientaccess/token.go"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce04aa7e0ebd1b19abb9b4e712c6e84a74f90bd18dd17131523582c1f47f74bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): pkg/agent/config/config.go:248-266 | pkg/agent/config/config.go:353-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/agent/config/config.go:248\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":"pkg/agent/config/config.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5359cae8cda357b345500aa59bb2c9ee1b39a17c1454fdbc876c4be0d059a148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): pkg/agent/config/config.go:255-272 | pkg/agent/config/config.go:299-316 | pkg/agent/config/config.go:360-377 \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 \u0060pkg/agent/config/config.go:255\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/config/config.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2faeff1187fde4e1cf76d15e096f6fdfccbd1850ceddd07fab11fc20443225c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): pkg/daemons/agent/agent_linux.go:73-90 | pkg/daemons/agent/agent_windows.go:45-61 \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 \u0060pkg/daemons/agent/agent_linux.go:73\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":"pkg/daemons/agent/agent_linux.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1485ff0dfb77083473a331377eb13ef610f86acdf3f82aef891a4da1ab4440a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/cli/cert/cert.go:203-219 | pkg/cli/cert/cert.go:262-278 \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 \u0060pkg/cli/cert/cert.go:203\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":"pkg/cli/cert/cert.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f02668ee507086f41e7152223aa54d5c602c011d128352f74653c938539a7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): pkg/daemons/control/deps/deps.go:829-844 | pkg/secretsencrypt/config.go:159-174 | pkg/secretsencrypt/config.go:188-203 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/daemons/control/deps/deps.go"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e48d9acde9a41fc2f99d37b076f3839a17162e9772f9e5806ea35c2e8c80df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/etcd/snapshot.go:117-132 | pkg/etcd/snapshot.go:167-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ef4623b6ffe2b267aaed94738430f9ae933f7fee64431065122729f0e49d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): pkg/clientaccess/token.go:491-504 | pkg/clientaccess/token.go:519-532 | pkg/clientaccess/token.go:548-561 \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 \u0060pkg/clientaccess/token.go:491\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":"pkg/clientaccess/token.go"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7999f1d7d73d9a92cbbc5df2fab9b0c7e0bd38a6b9cad1b05bbea9b2dedef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): pkg/cli/etcdsnapshot/etcd_snapshot.go:128-139 | pkg/cli/etcdsnapshot/etcd_snapshot.go:169-180 | pkg/cli/etcdsnapshot/etcd_snapshot.go:287-298 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/etcdsnapshot/etcd_snapshot.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c22b4f02adffabcfee1631dd73f6487667255e9614d4c62843b4cfa347500b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/cli/secretsencrypt/secrets_encrypt.go:31-42 | pkg/cli/token/token.go:177-188 \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":"pkg/cli/secretsencrypt/secrets_encrypt.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"432b93bb58f0253113a071db1a1bba12ee823d8c8164342adaec50a349bd738e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/agent/run.go:127-137 | pkg/agent/run.go:284-294 \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":"pkg/agent/run.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a59987621687bdd8f899555eb9d830f6566f0175b9ca45f97cc4f37eee269bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/authenticator/passwordfile/passwordfile.go:55-65 | pkg/passwd/passwd.go:37-47 \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 \u0060pkg/authenticator/passwordfile/passwordfile.go:55\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":"pkg/authenticator/passwordfile/passwordfile.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4682804c6abb05e81a58e15d9f4deb4626b5f1490ce26af5609f8a268b336596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/cli/etcdsnapshot/etcd_snapshot.go:58-68 | pkg/cli/server/server.go:252-262 \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":"pkg/cli/etcdsnapshot/etcd_snapshot.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc45865b69b4575eb6efa59a1c1882384700811f78936792346aadc9cc78f2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/clientaccess/token.go:316-326 | pkg/clientaccess/token.go:348-358 \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":"pkg/clientaccess/token.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e1901b130ae245641abab2c43c89a36b4e079eae62f3fa353256851843e8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/etcd/snapshot_controller.go:119-129 | pkg/etcd/snapshot_controller.go:314-324 \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 \u0060pkg/etcd/snapshot_controller.go:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_controller.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a6326de558629a44c6ad206fb0e30368198e5e39231055e807ddc91b1dff48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/agent/config/config.go:192-201 | pkg/agent/config/config.go:206-215 \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":"pkg/agent/config/config.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b37aed0606859c3a64e9e7b2cf8bd2107541b66083fd2f498f23d15519e6bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/dataverify/dataverify.go:35-44 | pkg/dataverify/dataverify.go:61-70 \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 \u0060pkg/dataverify/dataverify.go:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/dataverify/dataverify.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e174f42d3b8e899245da86ef38ecf175b6b1e9725abd686bb951701cfc3ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/etcd/member_controller.go:53-61 | pkg/etcd/member_controller.go:123-131 \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":"pkg/etcd/member_controller.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f505fe0f9e035d0fcb71604827206483ac8dbc8dd89198919ece663cfc147d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/util/patch.go:68-75 | pkg/util/patch.go:86-93 \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 \u0060pkg/util/patch.go:68\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":"pkg/util/patch.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daffe383f5b47a0ba9d2c5b3eec410db0823c2eb86ba92c8910f977a5b61680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/etcd/snapshot_handler.go:96-102 | pkg/etcd/snapshot_handler.go:113-119 | pkg/etcd/snapshot_handler.go:136-142 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/snapshot_handler.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"904374692145bf49d2968c8980d2228368dd48c24373dd9a570eba159e358845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cmd/server/main.go:58-64 | main.go:36-42 \u2014 before extracting anything, compare \u0060cmd/server/main.go\u0060 and \u0060main.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/server/main.go:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/server/main.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b80c6d457793f1c56888f4f37ec41e2eefb3b1928209cce6fefb056ef5a8b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): pkg/etcd/snapshot_handler.go:80-85 | pkg/etcd/snapshot_handler.go:97-102 | pkg/etcd/snapshot_handler.go:114-119 | pkg/etcd/snapshot_handler.go:137-142 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/etcd/snapshot_handler.go:80\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":"pkg/etcd/snapshot_handler.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"429fa917eae9999d53065620d978322e58d3f51c7ef852c30db4c380ff899c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/server/handlers/secrets-encrypt.go:536-541 | pkg/server/handlers/secrets-encrypt.go:563-568 \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 \u0060pkg/server/handlers/secrets-encrypt.go:536\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":"pkg/server/handlers/secrets-encrypt.go"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5d02a58df70ca39e944e8010c8c163d959f41ff6fbd1a7aa53dd4291b01178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/agent/flannel/flannel.go:240-245 | pkg/agent/flannel/flannel.go:274-279 \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 \u0060pkg/agent/flannel/flannel.go:240\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":"pkg/agent/flannel/flannel.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"de642131195060b4d0263c5592b3a00885f1cb4780597af2554a34b4f1b1cdda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/agent/tunnel/tunnel.go:322-326 | pkg/etcd/apiaddresses_controller.go:60-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/agent/tunnel/tunnel.go:322\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":"pkg/agent/tunnel/tunnel.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1570948604e30f37bb86a25e7d9d7b9fa70ff8629f6a9c46cc3d1cfeaef205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/etcd/s3/s3.go:449-454 | pkg/etcd/s3/s3.go:461-466 \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":"pkg/etcd/s3/s3.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"8891697737719a7d6c027bcc32753a43ee68dbaede5beb60005284eea7a75f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/etcd/snapshot.go:361-365 | pkg/etcd/snapshot.go:747-751 \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 \u0060pkg/etcd/snapshot.go:361\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":"pkg/etcd/snapshot.go"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96a8b4dd36d12187ca9908d4f3d4f08ac0e1d4ee31d70a7e841c5669d32a1ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cmd/server/main.go:39-48 | main.go:24-33 \u2014 before extracting anything, compare \u0060cmd/server/main.go\u0060 and \u0060main.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/server/main.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"765eb09864b79fcd3b236f30f8fce75fd180d31cbb163217604d2d4400124c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/agent/containerd/config_linux.go:138-143 | pkg/containerd/utility_linux.go:27-32 \u2014 before extracting anything, compare \u0060pkg/agent/containerd/config_linux.go\u0060 and \u0060pkg/containerd/utility_linux.go\u0060 as WHOLE FILES: 89% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/containerd/config_linux.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bf42e4ef26464621598754c0640a674e969346fc80d0c229a347f03206f885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/nodepassword/validate.go:157-166 | pkg/nodepassword/validate.go:172-181 \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 \u0060pkg/nodepassword/validate.go:157\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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":"pkg/nodepassword/validate.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4771361fca951707a88b1a8571cb5f62b316de046ca63b0f2c3f080469fd1150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/executor/embed/embed.go:199-207 | pkg/executor/embed/embed.go:296-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/executor/embed/embed.go:199\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":"pkg/executor/embed/embed.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6148976fc6d44df8b4128b0ab8c95f20cf9344c9a754588b716d9f0a79741aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/executor/embed/embed.go:201-207 | pkg/executor/embed/embed.go:222-228 | pkg/executor/embed/embed.go:298-304 \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 \u0060pkg/executor/embed/embed.go:201\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":"pkg/executor/embed/embed.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b04113159ddc5cf69f66ee49ce2f0e4c6d69061d5c86c3c8a4a09fec9596442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/executor/embed/embed.go:278-284 | pkg/executor/embed/embed.go:344-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/executor/embed/embed.go:277\u0060 calls \u0060APIServerReadyChan\u0060 and \u0060pkg/executor/embed/embed.go:343\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":"pkg/executor/embed/embed.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ba060772cf80eb1498b0d0f83cb3b4bc244eb4715d8d369a75b4aaae06636e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): pkg/agent/cridockerd/cridockerd.go:36-41 | pkg/executor/embed/embed.go:203-208 | pkg/executor/embed/embed.go:224-229 | pkg/executor/embed/embed.go:257-262 | pkg/executor/embed/embed.go:279-284 | pkg/executor/embed/embed.go:300-305 | pkg/executor/embed/embed.go:345-350 \u2014 there are 7 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/executor/embed/embed.go:277\u0060 calls \u0060APIServerReadyChan\u0060 and \u0060pkg/executor/embed/embed.go:343\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":"pkg/agent/cridockerd/cridockerd.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e3d925d73c057036016200cd6d7136667904befbeceeca811d4a69789fbd02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/etcd/snapshot.go:430-434 | pkg/etcd/snapshot.go:950-954 \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, \u0060pkg/etcd/snapshot.go:949\u0060 calls \u0060HasPrefix\u0060, \u0060Name\u0060 and \u0060pkg/etcd/snapshot.go:428\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":"pkg/etcd/snapshot.go"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7fe235a7bc633d0b77500fbed4184f91e00c4b42cd85b6cd4c6afc29c151b7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Embedded (LCOM4 4): Embedded\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/executor/embed/embed.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1bee5c371b0647e372fbacc5b2280ee980e3ada86ea1cbd7c5a33038d705b3"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/erikdubbelboer/gspt: Direct dependency \u0060github.com/erikdubbelboer/gspt\u0060 is required at \u0060v0.0.0-20210805194459-ce36a5128377\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2021-08-05, 5.3 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/erikdubbelboer/gspt\u0060 and has not moved this requirement in 5.3 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/erikdubbelboer/gspt\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":"1130479fed28bb80a4aef9cfddc274be2e727e83a123ddc621d5b54692c2fd78"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/mwitkow/go-http-dialer: Direct dependency \u0060github.com/mwitkow/go-http-dialer\u0060 is required at \u0060v0.0.0-20161116154839-378f744fb2b8\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2016-11-16, 10 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/mwitkow/go-http-dialer\u0060 and has not moved this requirement in 10 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/mwitkow/go-http-dialer\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":"67a9ed1e5f3d7bbca28a3ef0a2a11c55c44f8479d0c9546486b0523a40e37ab8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/cli/server/server.go: pkg/cli/server/server.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 107 in server.run at line 61. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 20:18:15 -08:00\u0027 --until=\u00272026-11-09 20:18:15 -08:00\u0027 --full-history --no-merges -- pkg/cli/server/server.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/server/server.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eff8166a5a8a874d2e50f5f542219fb5ab9fa43fab2abfe2f8c6b4985eac73f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/agent/config/config.go: pkg/agent/config/config.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in config.get at line 439. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 20:18:15 -08:00\u0027 --until=\u00272026-11-09 20:18:15 -08:00\u0027 --full-history --no-merges -- pkg/agent/config/config.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/config/config.go"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfcddf0b58744dbcefe6a1dabcf52aab59da086df974d9fb2a38b5f3b3755b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/agent/containerd/watcher.go: pkg/agent/containerd/watcher.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in watchqueue.processImageEvent at line 114. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 20:18:15 -08:00\u0027 --until=\u00272026-11-09 20:18:15 -08:00\u0027 --full-history --no-merges -- pkg/agent/containerd/watcher.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/containerd/watcher.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"794c8e52ffc01fed1eeccd5531b7258db356a268088cbae29bc273eb26ae23df"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 24 significant file(s) lose their only recent owner: pkg/agent/tunnel/tunnel.go, pkg/cluster/bootstrap.go, pkg/clientaccess/token.go, pkg/agent/loadbalancer/servers.go, pkg/etcd/snapshot_controller.go, pkg/util/api.go, pkg/daemons/agent/agent.go, pkg/configfilearg/parser.go (\u002B16 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"be96341032b2a3ecd236770bba2328e700a417414a626b4d505a5910be42f218"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO the below functions are replicated from e2e test utils. Consider combining into commmon package \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":"tests/docker/test-helpers.go"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebfe4a02893247e9be1e4d57469cad2210c70af797b08730c9f16a31f7f7657"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO determine if the below is still true \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":"tests/docker/cacerts/cacerts_test.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8df4c4c89d41f59001dbe877c5f5bec267e2a90422a32a24cd0333ed6bcfa0e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(bradfitz): this was copied from x/build/cmd/buildlet/buildlet.go \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":"pkg/untar/untar.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0310f0e72dc4f80e098196e2c6bf351c2e05274896a0ea639ee3f3004aba82f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This maybe should be a helper function in bootstraputil? \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":"pkg/kubeadm/utils.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e8e06ec11980baa503694cb7887f493190dd6092ec863b83d03b8fec255b67"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack - force \u0022file,dns\u0022 lookup order if go dns is used \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/cmds/root.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e9d6ee1b1ac1a0ab4b9d4416fec56878bf72d66e073923f1891020a3b2c73e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: rewrites are currently copied from the mirror settings into each endpoint. \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":"pkg/agent/containerd/config.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb9f9235589ca351e8d409780c16c73b6160a10bcc08b693ece715840513f6a"}},{"ruleId":"D20","level":"note","message":{"text":"ADR Consequences section is empty: docs/adrs/flannel-options.md:117 heads a Consequences section with nothing under it but a placeholder. A decision record states the context that forced it, the decision and its consequences; write what this one\u0027s consequences are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/adrs/flannel-options.md"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd0302a11843853afc7655317cf8005c064556bfb89f2bbfb12ddf0be7b1daa"}},{"ruleId":"D20","level":"note","message":{"text":"ADR has no Consequences section: docs/adrs/multus.md has no Consequences section (a heading such as \u0060## Consequences\u0060, or the MADR equivalent). A decision record states the context that forced it, the decision and its consequences, so a reader can tell later whether it still holds."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/adrs/multus.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"641253fc20027946143d468ff392b30d9b720f94e8428d51691f0041bcf9cc82"}},{"ruleId":"D20","level":"note","message":{"text":"ADR decides a question another record already decided: docs/adrs/record-architecture-decisions.md and docs/adrs/flannel-options.md are both in force and decide the same question (\u0022Record architecture decisions\u0022), and neither names the other. If this record replaces the earlier one, say so (\u0022Supersedes \u2026\u0022) and mark the earlier one superseded; if both hold, state how they relate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/adrs/record-architecture-decisions.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda0562b097cdb8522a98355a2b1047718a4500a4f6f6ead8e1979d7989e71ea"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 58 % of calls cross a namespace and only 38 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"358e71db632a65a06ddb53cd4b4b9d9942339bdeec182ba36f0b52c8070b2e5c"},"properties":{"commitSha":"9f1bd0732284071ba25c97b00c8980ccda00a428"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"968a3e30312852eb776b900b38d73403bc98d53be57c3caf091eb43008cadd17"},"properties":{"commitSha":"9f1bd0732284071ba25c97b00c8980ccda00a428"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b93c1203b0e98d9b8cb58fd56e6821100ed9c687dad95ba58e9bc77a810e4c02"},"properties":{"commitSha":"19c1f4321533a1223a54d1ffb3953fc9716af17e"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f268a84ea35ecc900864a117dd8690af96a5fa9d8df3f2de399138f5e91091a0"},"properties":{"commitSha":"19c1f4321533a1223a54d1ffb3953fc9716af17e"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df6fadc0334cae8b2ac8e6156a36301d4374dd115c45e01aeb6d47e5269a18df"},"properties":{"commitSha":"19c1f4321533a1223a54d1ffb3953fc9716af17e"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5337afc3079379853a1cfec6b5e13afa8480b1e2a8c24eda606d6dab4565b1e4"},"properties":{"commitSha":"4acf86400f261d325401592cb90f73d69afe15a1"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"172a1d95dcac61999e00af16f008d921e61235ef9549f4fd725900d0cb915701"},"properties":{"commitSha":"4338351be2dd449f09d14408d88ad8b6f81bcc65"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"109223567e0fe7417db765e07a220353ce412fc6b4f04b33cc3a1ef7a8353feb"},"properties":{"commitSha":"8e9186a53a2b8a2e386fe36da3ca565831246b7a"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9243e44e6a0cd3ce3cabcc1c737f11ed4a7b5e2335c7d2188bbae26bc3b44b7c"},"properties":{"commitSha":"7ddc8738cb881f939a911befa30daec35a91f900"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8848a07c4f29dcb60d6c018e1d2d45bf16e2755fc75ee176874c757c04558a2e"},"properties":{"commitSha":"8ae5179a7b8f687eb69c0dbffe9a96cec2ad30c4"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5817eae3a5ba5a5d5724a047f21a645d5940dcef65c1395ad608e833e581058a"},"properties":{"commitSha":"9e29c3e39f916fe67654c9e06ada23e42217e532"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24ef1fba3cbcedcf7d945a48b00b676a121bee8fa5fd5beb4fe26aa783a395ae"},"properties":{"commitSha":"de1bd55e9630cb6acf8ad12a080c83f12b172a91"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e95a17c246de3cf7222fe083c656624151f85c2320cd890136664dd32c7a256"},"properties":{"commitSha":"215184b92372d016b5f48909fe15be8ae2ae7c97"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1d87d4fc43f6b357616f08526f060df1e37d744a83fbe1ea57e72cd5e1faa0c"},"properties":{"commitSha":"28575a65f4613692fd171fdad9c2cd210e361087"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e8e406d757f09e9143f59a1cc913b0863d71580052b6cdbbabafcd00b6903e2"},"properties":{"commitSha":"37f0368ba26f5f503df2407f3241a3ad62cc8e59"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef089265462ac9906e7b68b4ea796aeeabbb893c8c3bfab3a8a6d4253940d991"},"properties":{"commitSha":"435268ac1915564aecb2fd5abe5f74a426235423"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1da970c06e18ea392bc486166497597d158170479b685d08dab63dfc5aa5e5e"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1064881b1494a0979eb931b13cfb0b74dbf92ef7ecd5b042ef3e895eea67bfa2"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b045f06583c9b465f808666ab807bb301b75e163408a0670ffe050a381f461f6"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1b966c70d2e5f6ab697ac6d268d54938c60e802d8ea58ea6ff9cb7e10a35f70"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"687d2f88271fca42baf3a16d87820528171ad196374dd298f9422c371e183e22"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5a3565ae04b1153e62cc9e98b715e712cd097ec7d30ae03e54a7c5bc0a3ecd2"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d45f2cae78326c93de6b867fe8257b143bb2647153dde4f47e5562ce215d87d6"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01be1f988aae05ac9e49fa257fdf23610fcc1e2d1be889ee415559ec361da444"},"taxa":[{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a15911d5c860450533055e93ddb39c730b67a4034ddf6b93dd94b035a79f79d"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"4c88358107064dbbfc8aaa237526f7f631e9d4e3a9ce63a129585d8b636877b8"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"402a64f2f69f6be9214c9abf336097d6ff44e16b74e6a687812c1102824ebfbc"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"476b8035ed0ec964514f94a658734dde15aba5ad0c9a324631431d2bebbde286"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2dd8b28ee259ada3353146f9471706b81a7c99682f5f79c81491dc82b6084a93"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f00e002e6983b03dbfdff3e77c08c2c94e6f9bb3de310a1837f4afc36285e34"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2db10535553515ddbf4a8cfecb57de3b019b89101c7244620db907b76324134"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a991907dd037a25352f026251a3bb20769c2c95ebd3ae5762848659a6ea782cc"},"taxa":[{"id":"CWE-193","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-670","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0dcc68a8e455b6fa2090dd76ab28712b70f0efb7cbc089719a66ec23765e3618"},"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":"adef98c178c88650fe1ce4def6250815aa17616e294b54e56d9912d5b56d9274"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7012aeb5ee03c8e5a96733f5d9ea824388f24d856cb9d5ea0f12cd5d834e05ba"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96f4fa9962fc4149a14bdc7d6946f6adce22e019fcc28ae232f29148db412b20"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e0a98b3a327d5d8f268fea85023b0036bdc7d3f0d08772991100c7a9a7cd718"},"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":"f857a28130ba228e32e0b804eec9acea2b93ff5b063452d9378d920bb63dff9a"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8cbfcefb3c83c0f13cadac0cd41492ac8c74275a1927848d8c25fed3ac60fb5"},"taxa":[{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"d04e451dba024b09324188b682ca766ae76d3e9f4f1977bdace92caafd5a6c82"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"59cf2a60436cde6cbd31c0927596e762636544e1ee29d49afa6bff9d84ece93d"},"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":"afaba5477af3545afa0001fb3c574c0e95bbccc48d7e028675572522e969192f"},"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":"d85e2ea4e6fd757404fb0d1ee3df7f35cee2c97fa53f686523a370ce511e3c29"},"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":"62a3f6b661ebba4cc3af7b49f53a2d1087e7fad41f09ea35d152827b692f317e"},"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":"9eaf230fb6915a6ee1410dd902ce19642177ee5e7030d37ff302c1f29c77cc8e"},"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":"5dca4026c8ef168f71bdd671e61cb7fbf6591578a69e89c1c73d421beafbd2e1"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"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":"c5f05b1f5c2971e396d88d2d218ac6c1efca96970c0e03a36b09a3a12cff0b43"},"properties":{"dependency":{"package":"github.com/docker/docker","version":"25.0.15-0.20260325154711-d2dbc0547253\u002Bincompatible","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-4883","GO-2026-4887","GO-2026-5617","GO-2026-5668","GO-2026-5746"],"reachability":{"kind":"production","file":"pkg/agent/containerd/config_linux.go","line":15}}}},{"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":"ea44013abc6ea445ddd8ee912c42d8b1bb8a5862c60722a3e575ee0909504899"},"properties":{"dependency":{"package":"github.com/docker/distribution","version":"2.8.3\u002Bincompatible","advisory":"[GHSA redacted]","aliases":["BIT-distribution-2026-85747","[CVE redacted]","GO-2026-6778"],"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":"2285f95102276cca95c34976628504b3757a3b65f74a72d4afa1b6ff29ad3ce4"},"properties":{"dependency":{"package":"github.com/libp2p/go-libp2p-kad-dht","version":"0.42.2","advisory":"GO-2024-3218","aliases":["[CVE redacted]","[GHSA 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":"4fb550065b6b4ed6062cedd9841caadb4b525927b5fb3fe39a65d7b919c48c69"},"properties":{"dependency":{"package":"github.com/cilium/ebpf","version":"0.12.3","advisory":"GO-2026-6238","aliases":["[CVE redacted]","[GHSA 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":"31509f5777d7fb146d61f12934b9b6a701b1edc3c87b57ea8a7ae13e46e93093"},"properties":{"dependency":{"package":"stdlib","version":"1.26.10","advisory":"GO-2026-6859","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"pkg/agent/config/config.go","line":140,"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":"346ae1f77b19bb950c6e55683a42ad30dc7f365e06a9ca00167114e610203713"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.60.0","advisory":"GO-2026-6860","aliases":["[CVE redacted]","[CVE redacted]","GO-2026-6866"],"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":"1c9c7154a9d80981a2f1da0fd0aa2e12a4e104a4411624a7aabc5ce2dd45d848"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.54.0","advisory":"GO-2026-5932","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6303","GO-2026-6354","GO-2026-6355"],"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":"3e1f124563eade100812240ef50cedffab1d0cc4645c129ead6641c1c2ef5b7f"},"properties":{"dependency":{"package":"github.com/google/cel-go","version":"0.29.2","advisory":"GO-2026-6094","aliases":["[GHSA 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":"75a83c039e2a610b609b2233ef3e53f04a0f54c59c1421263a1247d2894a2de2"}},{"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":"63c383b5113305c084f279f2bda9c49b714446febd63debed6cd56c521cb5194"}},{"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":"cbb39f69ee77a2ec1f20d9dfb0c77e89866e9b3e3e8e02d739b7c03f22ae6ac5"}},{"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":"08d45b30989d2834f194a6b1bd388f2c2eb8462b19cb4c7046c52ae7653fe9c7"}},{"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":"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":"01421633dd1567594fad9e7062df66aceca67a5a842f4bf043f1df5331f03991"}},{"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":"9d31df74c74d5777b569e2805441fb0f98d5f200196eabe1b1fa24d5cc05cf70"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcca1b9f2bfdff4dececcedf2af144ea322e1c3812295da647023fc5117422a7"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2819a6ed322a2bfc8509554d808a983119a7e1d3deb5f9807e0c61c6698e0fc1"}},{"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":"e16d77008702faf9519f4c8fe78a6895976d77fb57d19a321f95112b6bc71a6e"}},{"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":"396315de20116d1e11591b7a08f1e9d8ad4817a287a0d13ac94c4e24c44d4a68"}},{"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":"8f505f5468cc55ddce6c61a94da166e18257f7104f6ac9282d277bd0758c3909"}},{"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":"c8bfeab5dd27e48c2ee1310fd5bf88af1d14d17516fcb68e09e40a3652456af9"}},{"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":"122540c7583f652ec0040c2169bea0ab5a872ae7367176782b876909e3979edf"}},{"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":"b3d72354492fc97c51df57c0ef6728e86fddf70b9847ca592ba6f8e0902704af"},"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":"348bf6cf963c5dc40c304c2b9b732aa11e8cbac594c11b4ed5fccf9025cc6b61"},"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":"7e531c2b90b990dc91c8dacc621f99747a1f5c7c5e199286eaa6aba929c061bf"},"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":"3bef3609c4a1ef29ba5d955f9f79eef4c0dc70b387da7886be41271d99bc8e78"},"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":"db8c8c1d74374e296b405a28e8c7aeeee42d226c8e4ef628dee717313e721ec7"}},{"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":"6f4bc31e701450849a7c9c3c345ee7cfe5a87b32fe043a1671b48f26153eaac0"}},{"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":"6a54be5158cb654520748c46bcb267c3d53e010d050f3d86928d4612febadf5d"}},{"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":"75445ae0b5275609e4dd644e421c37968408f557df6848ea0d8ac7febe9ebec2"}},{"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":"610a54dc3d36366afe97abf864e2d43312e01f1ed001344045c87d9cb2760e43"}},{"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":"5a8b8c4abbec212a35f8ab18782700e571b69c9f809ddf818550c2b41348d7f3"}},{"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":"0c0c367b5e8fde00fd720f0818294e21da17502261397ca32e8e45452ea7b8d4"}},{"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":"8ea28c26d96696665b0c04655e4a5db44104a540f8f4961e8ff63ff9502916ed"}},{"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":"18d1d7719d78c452581f53ca641c9d2cd9106503a34b8371268f0d355d973596"}},{"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":"9d976baa7f2c1ee4362909a72f2e14dbd64e908329222877ff6f20828fa8a550"}},{"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":"5117130075bab902cad8b29755738e71c1d3515ac29ccd31144cf81e949eca4e"}},{"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":"d6c1b557c1330857ac4873e226bf0d5e28de9ccecfc26a1b2e259e3fdd74a274"}},{"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":"35dc500a1e5d64989b8c24d5afb6e500e948b086ec1d444c0e7a93403f381715"}},{"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":"39cde4d3935d2698f26f6c07a315b3cf6fc6d1b4b5305970419144c0d7a536c0"}},{"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":"52af292c82c05a51b7f493617e0120690a5a6f62b9ef939172b3908cd91a1bdb"}},{"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":"8139b50e4e7ab696324226aa7e5caf47c41b02c15562d4743b003b810b9d6acb"}},{"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":"260bd3a919665fc81bea82726335bfe929e4c349ba6fb612c701c11866184ccd"}},{"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":"e0432c1eaf7238285a3626e5683a6ba16ecc026e135fd5646e8aa56ca2cf58ab"}},{"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":"67d7f0df1fdddb15a4e66deea98b5f50daa44f9b7a8d99842be468a2b281ea33"}},{"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":"47b1723ac9910ffae6b43bdfa658cf790ae35e30a0c34401ad0d99e76e53d0dd"}},{"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":"3423a48e937062096eed508bb8ca9a0f82b17279b09409442aaeacedc857f906"}},{"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":"63158ffcf033bcc46796a29e3bcf294e1065b5506138171e787fd8633b5a2608"}},{"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":"6e8511d0d1475a75267fcd71e1eedf592f19b6b5b9f62b9ac686c885257b613b"}},{"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":"c3b8407fa6ff8d5a2a859f8a2fa5ad21c1502cf9dd5ee4c78b6268c72fee8924"}},{"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":"265ed9a5538e2bbc302545421c46a0a2d0bbef6045d5cf33023335e725ed9c89"}},{"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":"65904243a534ee6c36f1ec13278c878cf69eba7343ea752a66e2fdd09d773e82"}},{"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":"9d70320a16e20d47c875fa51eda0e2800273cbf30a77c97684d2b83e5740a8e9"}},{"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":"2734732c3bbf021c84474c801313d329e063dcaccb05ea5d5e3cf9cbd10ff58c"}},{"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":"c6b56a1488cdc72ceda749eeff9e9e3e982f55e93bead323b9d40a0e55ce0407"}},{"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":"93cdafcfd65e3bf7027cd12b6ec34e837ec77bd092dafdc3e1aa3fcc71ad2978"}},{"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":"5969b33beddb8ca6fb076367ec904b06d49867e2322a119f6ebe63ad1806f808"}},{"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":"ac4750d2ef3059ac3bc2eeb5215ea14958f3a28261f66820400744fe82ea7cb8"}},{"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":"f6ec10f1706e75b7084b86de168ad2590973fe55d0456e1cc6401aa4ee9e20d3"}},{"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":"bce7c7643814f918e9418c4a5a61af7d485ec852e31a8d44a3bbd88cbcc963af"}},{"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":"6be83515f3126bf1752d7e01698072ac3889ed24b8a3c56722b4bb164beac151"}},{"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":"ea0ac6988a45004c8e5265a389a8284a4234b5f896d7db3526c7289b9fe6cd4b"}},{"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":"2bd90cfdf6cbe132a314160c9a95caaf0d7dd4322f79e9e3a5d8797eee8bbb49"}},{"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":"d2313acd21252835efa93e3f7990d40e7957784e9da3b388e2c4aac751835517"}},{"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":"55456714041a7681eabf17e0ff445b96251ddaa4cdb41f5b8c6f737a9326ad77"}},{"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":"d8cc6ada84ba4283eea6268fb54d86ba799bbb96b473cc377bd6be7876d19e22"}},{"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":"604b3e9724d04b9b0cac900cae3f80f35a5c5434536bb5ead7b0bf48a4686520"}},{"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":"b7994a059dc3e3b30710779087d1208d1daf525f7185c3b69ade1e046f533a93"}},{"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":"f367863ce317ae68e5c85b7b0c2642c6b88db57e7725cd8a99c2d4289b22a2d1"},"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":"fee89169f9c306f548fbef05ae638e0a491aab8d9b2ae58941d51eee0bdbac9e"}},{"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":"b119533a78b6e3549a61bc85fbc2c6f296613da380577f3d16d466bdc51ffcb2"}},{"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":"865653ca6206add2b0714c2f16702c8a78e53879aedc1d5b31614ddbc077ba0b"}},{"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":"15845531b66c060ae9ce1f7004f3459ca216e3d86598ad432fae92d22f5a4351"}},{"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":"5de3d210258af0e133cab8bdf26dfb1b3fe77e64d2fdb9ee7e14a47fbf7827f8"}},{"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":"83771c73156aa3fa2da1b798062e68d3c08f0bca011b3ed6237d5b0b232ee732"}},{"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":"bc707b1c924095f48d71d908b3c932ee12111749dff7cd9a32741a7a02cadfec"}},{"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":"aab70e84d790329339d17b43806ba56676b3f66426be4e0b4e37760dfca244cb"}},{"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":"f609dc5b0d6f1284a17e17076cae183c27ae3b639f8af992fd1dd0451e9f72f7"}},{"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":"07e87d0ff86ff89c9ec991fd2ce7ef837cd5316b599af047b7f9bc97b88540fc"}},{"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":"626b61d30bd0b437cd4a25b926e96229f96cc5b95146f2e637b5f883d6a4b050"}},{"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":"bffd7ceb7f786d964333b09658fab46273a32a393d141be87dbbd10d429ed798"}},{"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":"ebd6c1283c1e7988367adafd0a5088c11fa34329d29de0b84222dd2f415503ad"}},{"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":"484448968a340b53ccfa9b26732551b2be311c41fbb0812b52f2aa14efa49777"}},{"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":"0d7c6829dc9dc98e3b5d133e11b03535a9e89f210de52ffb7f3dab42c818f482"}},{"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":"76ed71307dafc36478ab79768e5f0095ad92319ad6877d0ef285cf5af9dd85b6"}},{"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":"8c4847f4f2b94b34633c1092ea0e9c7536ffe0538f940f057d8b800b6a96c62d"}},{"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":"eacdb68b8e1ec01a1428fe1e34e7ccba7239c761bf1a2d4536fbe4da93f8afa9"}},{"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":"592eb567b425a451240c61e47bac302a8a3f71f08d5330477842d532ceb851e8"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"9cba11a9189fe2addf940d3390ac7411098c899ff9294f67c32455af66f81c3c"}},{"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":"804211edc319983a0a0b375765bfc9d977179412212de1d90b4c2adfbd853f23"}},{"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":"8b4ec410d0819bbac3ba9651e6ce7593f740f70430663b426058b4826d62fb8d"}},{"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":"4c4807e593d8b1528c59defc3e85791441884c638b47d413e18bce4cf7956d54"}},{"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":"6ab8c8c5126d2c21c96b930392ea71c6a82aa0b58e0ddcbbbea70b2ebefb3904"}},{"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":"38b157ebf6595596153774c837f8f29b04d88f4b5c8ebdd76ce236f1a241848d"}},{"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":"ea622941fe7599236a24e2036f5bf7408f5ae339e2295e42116693ab7aa80f29"}},{"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":"86228bb9bf415d10ff1f83859e914091b7ddf15186840c62e0ef349635d97fe4"}},{"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":"5b9e2f9f6cbaa5330347c7573810529ee79b2204c798931ef5c67ea2319c8456"}},{"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":"2b152f754a2622b1912562daa16ad9bc708d140d535c12b8096e4e265f5480c4"}},{"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":"f6bea14c56d002c5148f79529bf0187de80bcd5bbb8b231c361a22d4c096690a"}},{"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":"436914bb9ffd671b664bb2e2e8a50bdd09b8f9f2599f2c477ffda756ed1893c8"}},{"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":"3ffe46a8b59396a13979c1743bf7433838c50ffed7f59da175f568b616247527"}},{"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":"b22cb789260a6fa4610bd827c44d0466588b61d1e3f759659c2622f13fbc3956"}},{"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":"0b41d96f38537b9e5d49af1c0c2f36c9fc6245ee76b19afd21aa90417b420f55"}},{"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":"d2550311cd113f0ab0765101b90b5cd957500f11ac81cda0ac10e13f975ff1db"}},{"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":"8f2bfccbaba7c2049843713a13dfa8822fe33c644b89d7de665cecfa35dfa2cf"}},{"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":"e80b103c8a0b09129a6aaccb724d82ce67b40f2c9bf1bb7189cab6e39d17afab"}},{"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":"67ee6077a593d285dd5aae76df9a6aae192e0dbe37b69d617cafb2e32b77ddb7"}},{"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":"0c78240942cdd5c225a3612327790669a1e421b8782f11a185d5a53a6c3ff821"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 5 of 100 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 100 of the 236 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: pkg/untar/untar.go, pkg/dataverify/dataverify.go, pkg/authenticator/passwordfile/passwordfile.go, pkg/rootless/mounts.go, pkg/passwd/passwd.go. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/untar/untar.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69bd09ea93f642f67593e61248f598ae76aba1b700e1da33945b623b0a6aa88"}},{"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":"pkg/dataverify/dataverify.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"111c907136fc7e264d43d0f1449fc514ea2e38aee56563941ce2043f6592c0d5"}},{"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":"pkg/authenticator/passwordfile/passwordfile.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"250e9e7606df7dddbc86a1fb22b6aa75ba85315b40fa703a755cd4e2074630fa"}},{"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":"pkg/rootless/mounts.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03e14b79c16bf9806cf57c1ee21c70b47de7790653aa86bbc2346522debb3f5"}},{"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":"pkg/passwd/passwd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab6962ac30ae97ed7148496b2c7680e51aafb3f439c39bbb7a00e6575b2dfdc"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"69e434ddc21e8f9cdec1ade7c3971b0b7d3394b367fb6d71278141664b9d0309"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"D40","level":"note","message":{"text":"No network policy: No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"295828650a2aaa1b03ae9b32ae6843a0c38011e5a70b1926442c4fa7187de5f0"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"manifests/coredns.yaml"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7092eaa52c21dfa47dc7fbe0c3407edee8996c31ba8cc5a44b382811406d7e09"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"manifests/local-storage.yaml"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2106807099ac11f1fb35a5c145c69560b7cc316c61420b512a13466abfb50af"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"manifests/metrics-server/metrics-server-deployment.yaml"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf77282014a649d0921411cedcfaf32ba6f61b27db9235b70421651f314ae135"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/airgap/volume-test.yaml"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ecbc3fcee640f4ea195b431880ee0b54b83ea31dd78295b5ccebd9bc8a888f"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful package: handlers: Package \u0060handlers\u0060 serves requests (request-handler function literals run on a goroutine per request, and every one sees the same package variables and captured values) but writes that shared state outside any lock (ca, control.DisableKubeProxy; e.g. \u0060ca\u0060 in \u0060CACerts\u0060 at line 41). Unsynchronised concurrent writes are a data race in Go: an update is lost or a value tears, and a concurrent map write aborts the process."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/server/handlers/handlers.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e035b8366e27f98655d43cdcbac30cbd73b195f74fc8dbe689f00f30a7a1e4"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful handler dependency: ETCD: \u0060ETCD\u0060 is shared by every request (\u0060getS3Client\u0060 is called per request from the net/http handler \u0060ETCD.handleList\u0060, on the one \u0060ETCD\u0060 value that handler\u0027s shared receiver holds) but writes its fields outside any lock (s3; e.g. \u0060s3\u0060 in \u0060getS3Client\u0060 at line 478). Unsynchronised concurrent writes are a data race in Go: an update is lost or a value tears, and a concurrent map write aborts the process."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/etcd/etcd.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67fcd0903062ca431a8ff37be8e9fe2c993f4c4e5aa33d22f5447de3a513806"}},{"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":"Dependabot does not watch gomod: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060gomod\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c90d93ed29080fa818c194f17c9d2235272f2230e20c0e851eccae554a8d85"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/configfilearg/parser.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fad151bbf495e8738f2498aa4a2dd97652e7a147469be37cd2269ed53a52471"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!app.IsSet(\u0022etcd-s3-retention\u0022) \u0026\u0026 app.IsSet(\u0022etcd-snapshot-retention\u0022)\u0060 appears character-identically in 2 files \u2014 pkg/cli/etcdsnapshot/etcd_snapshot.go, pkg/cli/server/server.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/etcdsnapshot/etcd_snapshot.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f26d55a023db2763b1f72c332c9bf4e53880a0d1438db1888fce0fd32c8d4c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cmds.AgentConfig.FlannelIface != \u0022\u0022 \u0026\u0026 len(cmds.AgentConfig.NodeIP.Value()) == 0\u0060 appears character-identically in 2 files \u2014 pkg/cli/agent/agent.go, pkg/cli/server/server.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/cli/agent/agent.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"644e2dd5a5b79b4f7dbb26e7426e1b74d3d63391f2af584227e0dcdf0109f6a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cond.Type == v1.NodeReady \u0026\u0026 cond.Status == v1.ConditionTrue\u0060 appears character-identically in 2 files \u2014 pkg/agent/netpol/netpol.go, pkg/agent/tunnel/tunnel.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":"pkg/agent/netpol/netpol.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e170f880099ebf52e0d90c4c0dbcdcb2cc8bab08d30453c81453527128f41874"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, context.Canceled)\u0060 appears character-identically in 5 files \u2014 pkg/agent/containerd/containerd.go, pkg/agent/cridockerd/cridockerd.go, pkg/agent/flannel/setup.go, pkg/agent/tunnel/tunnel.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":"pkg/agent/containerd/containerd.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a68a6fa64b230697c9f2ccbec45918e92f1fd6be1adc2edf4eb1c4d1e053a3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(cert.AuthorityKeyId) == 0 || bytes.Equal(cert.AuthorityKeyId, cert.SubjectKeyId)\u0060 appears character-identically in 2 files \u2014 pkg/clientaccess/token.go, pkg/server/handlers/cert.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":"pkg/clientaccess/token.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"36baa5171083a2fa1ec9b1e276a6b8104e99bf235da3bcc44a7f03ca47e344c4"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context: Only 2/7 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: readConfigFileData: \u0060readConfigFileData\u0060 calls \u0060http.Get(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/configfilearg/parser.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65661790e99a91ee2d1f8f4aeb744d67c6f96e17c988e1b61461a7bf16f58cd"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: get: \u0060get\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":"pkg/clientaccess/token.go"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d886cf5e058068b4fedd499710be1a49cf32adeb95d3b7d92e8a36c5d41f7c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: put: \u0060put\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":"pkg/clientaccess/token.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73a244ed5d32dd1c68c8fc69cee8f2b45a026ddcc74c4378202ca45278c14ae"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: post: \u0060post\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":"pkg/clientaccess/token.go"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae487c3df8dca881e3b26b90dfd06ade7163b674c4391e7121bbfcd0350196e"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: getNodeNamedCrt: \u0060getNodeNamedCrt\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":"pkg/agent/config/config.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d479038c9b20051aa6abcf8b84b3689a5bc534dfca01891aac7ce57e365accc"}},{"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":"pkg/util/metrics/metrics.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2370710622a1ce734cdb8a12109a532f512e0e4e39a6f0e3e99d2fa15f129ebc"}},{"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":"pkg/etcd/etcd.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"125cc367759cb066f122a9118112dc155a7d9fd3db4255db57576a1cdfb44189"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := os.Stat(dir); 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":"pkg/etcd/etcd.go"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4ccd7b1303e668192d21fcc9d3817d077da70d9d5c1be43cfe803f81adb8f0"}},{"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":"pkg/etcd/resolver.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2091242647eb4424a394d1ff627f9fb71c51a74e74fbfeddced40455b7c75e6c"}},{"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":"pkg/configfilearg/parser.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fbfa22d0d4f61d9b3ff1d8c878473c02f02c7071ea75dc89caf91c53655f2c"}},{"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":"pkg/configfilearg/parser.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2827e3dc585c5b1b6c669906441617ca09a7b62f0bc7abafc32ca108456686f4"}},{"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":"pkg/clientaccess/token.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8878aa6f8983fbdf94fd75161733647dd04915cccfdefd878d3630783aa103b1"}},{"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":"pkg/clientaccess/token.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d18a2071fde0a59db73a9f7916a200c7030be177a94401d434cc7f98c3642a"}},{"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":"pkg/clientaccess/token.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bee696c7817ac26665dc0ea653827b740af739e7592ad33c391776b4d51e52b"}},{"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":"pkg/clientaccess/token.go"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc19371ffa665422f50e5e7af604b3160903e1deb3b9b46b157effc00b77768f"}},{"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":"pkg/cli/completion/completion.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7badb0db50fc094a690106a72acef5d47f7b30aab21587dd843b7094d01852"}},{"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":"pkg/cgroups/cgroups_linux.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33fb8d01d1949fdcf7078721166ef76a640f02590a7033804b47a399dabe9c1"}},{"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":"pkg/cgroups/cgroups_linux.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c701aec7619f32a6d78e833461e31fc69b4b8d3b87c55e754f9542fefe4745b3"}},{"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":"pkg/cgroups/cgroups_linux.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"12080c69b7df86b3a118a856c04dfecef31a448894154572776cd602a5aaaa4e"}},{"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":"pkg/cgroups/cgroups_linux.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a84b6fff55bf6a026622af82d5438fa389cc39e1503145fd657df47292caaf8"}},{"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":"pkg/bootstrap/bootstrap.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d999e943f7e9f1ec797d51426f8c533ab862b77220ed62688a7cd7c0766109e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := nodepassword.Hasher.VerifyHash(user.hash, password); 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":"pkg/authenticator/passwordfile/passwordfile.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df8f87f0b9634a980d5c90d5f8a898ad42b6a1faad2b58150d86be51ea23e50"}},{"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":"pkg/agent/templates/templates_windows.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6d9a04241bd1bac397ff32055ac3abb6a220c419e4877a545002d82f1703f6"}},{"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":"pkg/agent/netpol/netpol.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d10a8711d919090af9e9fb6e397524f48b20756c70bb0da3821c30cd60bd057"}},{"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":"pkg/agent/containerd/config.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a5d8bc1b017fa7820055efe9b55e6f89bb759214c15e9a06ba2688ef8480e9"}},{"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":"pkg/agent/config/config.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c588a56b994b2d31ce8cc1c4f66d8d884f4ff674e4df86d09bcbb84f152ee0"}},{"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":"pkg/agent/config/config.go"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e7baf9df9d9005996ed99a0957fbe6576f3ffc1cfdbaf964035c5fa6373190"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := scanner.Err(); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/agent/config/config.go"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a3793d726073adadd425c5d063eee301d63a1ffa1dacd06caf0856c9c40848"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-193","guid":"3f419d36-cf92-1f5d-b2e2-9bdf244bf9fd","name":"CWE-193","shortDescription":{"text":"CWE-193"},"helpUri":"https://cwe.mitre.org/data/definitions/193.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"Unchecked Return Value","shortDescription":{"text":"Unchecked Return Value"},"helpUri":"https://cwe.mitre.org/data/definitions/252.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-300","guid":"c5969c2f-022a-5059-bb13-5ac56ccacbd0","name":"Channel Accessible by Non-Endpoint","shortDescription":{"text":"Channel Accessible by Non-Endpoint"},"helpUri":"https://cwe.mitre.org/data/definitions/300.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)","shortDescription":{"text":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-400","guid":"ca529a89-676d-8857-aac1-84359c77bb6c","name":"CWE-400","shortDescription":{"text":"CWE-400"},"helpUri":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-653","guid":"aa3e371b-590e-225d-a56c-cd490a1dca63","name":"Insufficient Compartmentalization","shortDescription":{"text":"Insufficient Compartmentalization"},"helpUri":"https://cwe.mitre.org/data/definitions/653.html"},{"id":"CWE-668","guid":"e2cb99db-6d24-b056-b0d0-885a733ec403","name":"Exposure of Resource to Wrong Sphere","shortDescription":{"text":"Exposure of Resource to Wrong Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/668.html"},{"id":"CWE-670","guid":"5bbbc1c4-6420-da57-a041-85fe4bdce516","name":"CWE-670","shortDescription":{"text":"CWE-670"},"helpUri":"https://cwe.mitre.org/data/definitions/670.html"},{"id":"CWE-703","guid":"fa730aa9-95e4-845e-83fa-8169f2cf339e","name":"Improper Check or Handling of Exceptional Conditions","shortDescription":{"text":"Improper Check or Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/703.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":161,"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."]}]}