{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"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":"store.saveArtifacts (cyclomatic 191): store.saveArtifacts has cyclomatic complexity 191 (threshold 15). Of this number, 164 points are the body\u0027s own statements and 27 belong to 3 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/app/sensor/artifact/artifact.go"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"405846da1f7cf8a5ffe2d947b087a8cb6cd9e601cff82064476a8068793762f7"}},{"ruleId":"D1","level":"warning","message":{"text":"dockerimage.LoadPackage (cyclomatic 173): dockerimage.LoadPackage has cyclomatic complexity 173 (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/docker/dockerimage/dockerimage.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b9c7e444c21b362119ea5357fea9d3d48f97a829f4e70d5fdcf5d0516d59fe"}},{"ruleId":"D1","level":"warning","message":{"text":"build.OnCommand (cyclomatic 133): build.OnCommand has cyclomatic complexity 133 (threshold 15). Of this number, 86 points are the body\u0027s own statements and 47 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/build/handler.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8158395ca13707bd49c4fa01bd423a938f30cc000963fa3b7379f1d708f428e4"}},{"ruleId":"D1","level":"warning","message":{"text":"xray.printImagePackage (cyclomatic 127): xray.printImagePackage has cyclomatic complexity 127 (threshold 15). Of this number, 124 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/xray/handler.go"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39bc137d4d4c6a3ef67ac7c920ae30a4fbfccd781c227392a5d74e755101e42"}},{"ruleId":"D1","level":"warning","message":{"text":"Inspector.RunContainer (cyclomatic 115): Inspector.RunContainer has cyclomatic complexity 115 (threshold 15). Of this number, 99 points are the body\u0027s own statements and 16 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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f4842ca86ca594ad0098c8202f9fa8156ae8080ccc9d71ff963437dede3f3e"}},{"ruleId":"D1","level":"warning","message":{"text":"dockerimage.inspectFile (cyclomatic 101): dockerimage.inspectFile has cyclomatic complexity 101 (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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6811e3017060e306e3484bf7c63da54e583d3e36c861d005387b0804be3176"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.HandleKubernetesRuntime (cyclomatic 70): debug.HandleKubernetesRuntime has cyclomatic complexity 70 (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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"965fea05a5468b14aab01de73f09ed2c920c1f4d79aa5bc09f8b86d83587ab1b"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.FromFile (cyclomatic 70): parser.FromFile has cyclomatic complexity 70 (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/docker/dockerfile/parser/parser.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"89897036f7f3acbfde970d7df95e6a8c36a1e19da202b5ff2042b682751ff611"}},{"ruleId":"D1","level":"warning","message":{"text":"xray.OnCommand (cyclomatic 69): xray.OnCommand has cyclomatic complexity 69 (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/app/master/command/xray/handler.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4ea40a671a38a24e3dc65bed6eb0fd05d6b7c5faccbd96f47dc47fe3f26353"}},{"ruleId":"D1","level":"warning","message":{"text":"reverse.DockerfileFromHistoryStruct (cyclomatic 69): reverse.DockerfileFromHistoryStruct has cyclomatic complexity 69 (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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f12611f0d1ff69d3dfe56e8d60fd90749cce28f919d9aaf7795479ec45a12c"}},{"ruleId":"D1","level":"warning","message":{"text":"builder.NewImageBuilder (cyclomatic 62): builder.NewImageBuilder has cyclomatic complexity 62 (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/app/master/builder/image_builder.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61fc8d2add1fcd61b1383e0a197472086ed799dd36ff631ad4b768b9cf10e76"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomProbe.Start (cyclomatic 60): CustomProbe.Start has cyclomatic complexity 60 (threshold 15). Most of this is not in the body itself: 2 of the 60 points are its own statements and the rest belongs to one function literal inside it that branches (line 271). 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/app/master/probe/http/custom_probe.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee77831a237324f79fdba8b0b5c07f9126c9784f80c531a3052208e79e31ee80"}},{"ruleId":"D1","level":"warning","message":{"text":"dockerimage.layerFromStream (cyclomatic 49): dockerimage.layerFromStream has cyclomatic complexity 49 (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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c3e9cb61bfcbdd2bc48988e9c3a59f7fd4a24ba87e19b2b696497144b996c7"}},{"ruleId":"D1","level":"warning","message":{"text":"PackageFiles.ListLayerFiles (cyclomatic 48): PackageFiles.ListLayerFiles has cyclomatic complexity 48 (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/docker/dockerimage/packagefiles.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e592a713a54121687816d2254e8dece9c8c53264fd63968fa1a00c68ea9df5"}},{"ruleId":"D1","level":"warning","message":{"text":"store.saveCertsData (cyclomatic 44): store.saveCertsData has cyclomatic complexity 44 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 27 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bfb3a44f23d30a317fe87274752bb9e3a6e73cf8b58c1b145fe616069b9414"}},{"ruleId":"D1","level":"warning","message":{"text":"App.collect (cyclomatic 43): App.collect has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/monitor/ptrace/ptrace.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aba7df1f8889d7e52a945f7ae12b638ea85e529b6a3e54fd66cfd74fdceaa20"}},{"ruleId":"D1","level":"warning","message":{"text":"Execution.Start (cyclomatic 42): Execution.Start has cyclomatic complexity 42 (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/app/master/container/execution.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb1297181488fe30091be406aa7cbcef459df4751403409b7eeb19e8322b8ac"}},{"ruleId":"D1","level":"warning","message":{"text":"artifact.findSymlinks (cyclomatic 42): artifact.findSymlinks has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 15 of the 42 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3404, 3319). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":3313}}}],"partialFingerprints":{"codehealthFindingId/v1":"861c80ebb02fa0291f32e9ee3b5eb8fb4554b9a8eff673fc7bc23f39d0836fdc"}},{"ruleId":"D1","level":"warning","message":{"text":"appbom.Get (cyclomatic 41): appbom.Get has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/appbom/appbom.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbe2d7f4fff08022f51d7a7d69d0fcb44a8736b5b1d19f097348d0950d10b45"}},{"ruleId":"D1","level":"warning","message":{"text":"dockerclient.New (cyclomatic 41): dockerclient.New has cyclomatic complexity 41 (threshold 15). Of this number, 37 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/docker/dockerclient/client.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aa7d481773003f3604e99ceb41de5714bcae734ada74ce6b29d62e505fcabd"}},{"ruleId":"D1","level":"warning","message":{"text":"Instance.call (cyclomatic 39): Instance.call has cyclomatic complexity 39 (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/vulnerability/epss/api/api.go"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c123ab6374506f6a147ff77d9e757718099f03309a56606cd7f6f926d589f72"}},{"ruleId":"D1","level":"warning","message":{"text":"reverse.deserialiseHealtheckInstruction (cyclomatic 38): reverse.deserialiseHealtheckInstruction has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce4bf83a0bb66ab6fce9068be2e5bc433b8d5e88ad64ba32e144f9e8f72f6cf"}},{"ruleId":"D1","level":"warning","message":{"text":"PyPipInstallLatest.Run (cyclomatic 36): PyPipInstallLatest.Run has cyclomatic complexity 36 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20018.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde238e7dbe95d2148eace2d3f5b974fadc992adae3a4f6c6f9469392dffdbff"}},{"ruleId":"D1","level":"warning","message":{"text":"profile.OnCommand (cyclomatic 35): profile.OnCommand has cyclomatic complexity 35 (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/app/master/command/profile/handler.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf04b1843109fda8f0ba28487c1b698fdf38c945e3db6df3687739576414253"}},{"ruleId":"D1","level":"warning","message":{"text":"store.saveSSHClient (cyclomatic 34): store.saveSSHClient has cyclomatic complexity 34 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 2 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/app/sensor/artifact/artifact.go"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc30682013259635d70da89a27582d1c6518e991f9b25a36b4bf462abccce76"}},{"ruleId":"D1","level":"warning","message":{"text":"store.saveOSLibsNetwork (cyclomatic 34): store.saveOSLibsNetwork 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/app/sensor/artifact/artifact.go"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dd37995fd637dba400ef3c1a6266060aa92ef3cd9bdae3dc990378347e61f7"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine.Build (cyclomatic 34): Engine.Build 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/imagebuilder/internalbuilder/engine.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea773966862915f753c354c2961c58309ae87737af85ebd58c9b839d1de73f9"}},{"ruleId":"D1","level":"warning","message":{"text":"linter.Execute (cyclomatic 33): linter.Execute has cyclomatic complexity 33 (threshold 15). Of this number, 32 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/docker/linter/linter.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e20d36f626d175a56bf8901c57235fb80155e42992a8278b1ac823efba34b8"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.HandleDockerRuntime (cyclomatic 32): debug.HandleDockerRuntime has cyclomatic complexity 32 (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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe6521bc8406508075da62f434aaf1305c727d03a6c353f105e24f99dfa433a"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveApp.complete (cyclomatic 31): InteractiveApp.complete has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/cliprompt.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8970a5017c68d3a1138948762c7e46e13591c42962d589ea37f45910a2a700de"}},{"ruleId":"D1","level":"warning","message":{"text":"merge.OnCommand (cyclomatic 31): merge.OnCommand has cyclomatic complexity 31 (threshold 15). Of this number, 27 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/app/master/command/merge/handler.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac91fd1c04efe3ca8c339146d74113ae7792da0b0bc0675d9c7b27e76cb4b793"}},{"ruleId":"D1","level":"warning","message":{"text":"compose.startContainer (cyclomatic 31): compose.startContainer has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/compose/execution.go"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3411a6402c0a0649ec5c90dd48d41d99e6f80c56b8ab2060bba0ac858b5c4dd"}},{"ruleId":"D1","level":"warning","message":{"text":"fsutil.copyFileObjectHandler (cyclomatic 31): fsutil.copyFileObjectHandler has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to one function literal inside it that branches (line 819). 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/util/fsutil/fsutil.go"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8a6a0f93ded50be344bf82eccf7d12f901162d4a552bd586243e73edba8481"}},{"ruleId":"D1","level":"warning","message":{"text":"sodeps.AllDependencies (cyclomatic 30): sodeps.AllDependencies has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/inspector/sodeps/sodeps.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"344c453bde68701e2b5ef241faf1dc054d71c2593b0b5407c13c47a15c585701"}},{"ruleId":"D1","level":"warning","message":{"text":"build.monitorContainer (cyclomatic 29): build.monitorContainer has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/build/handler.go"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6a2317b8c32ce58288f8c8aaaba3614a1bc3d68939fc452b38bca95b639050"}},{"ruleId":"D1","level":"warning","message":{"text":"registry.OnImageIndexCreateCommand (cyclomatic 28): registry.OnImageIndexCreateCommand 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/app/master/command/registry/handler_image_index.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b539c6e8d883195434992667ae93d57860fae98b87ee443795c785176d8e7f4"}},{"ruleId":"D1","level":"warning","message":{"text":"ast.extractBuilderFlags (cyclomatic 28): ast.extractBuilderFlags 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/docker/dockerfile/ast/split_command.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"19418b76a7e19de3d00e8d68646730a0bc5bb294799d59da3faf573338404252"}},{"ruleId":"D1","level":"warning","message":{"text":"fsutil.CopyRegularFile (cyclomatic 28): fsutil.CopyRegularFile 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/util/fsutil/fsutil.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"261e9f028eb60fe3328978f4b414e28fb0ad62f6d030f7a15d22ccf0d4301a3f"}},{"ruleId":"D1","level":"warning","message":{"text":"build.UpdateBuildOptionsWithNewInstructions (cyclomatic 27): build.UpdateBuildOptionsWithNewInstructions 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/app/master/command/build/image.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5777e44d0f5f87ba2926c5c5e764c1585c704a5bc8e96335753bafcd50274399"}},{"ruleId":"D1","level":"warning","message":{"text":"build.buildOutputImage (cyclomatic 26): build.buildOutputImage 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/app/master/command/build/image.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e4b4006cbe4923a3daa4091bb4f345386d2e297c9f875ba2725514e3f4ab72"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.processEvent (cyclomatic 26): monitor.processEvent 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/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6663e4d11421fdd576abd97e35ef271c5a775a2104fa1d69861e1f329a32c1"}},{"ruleId":"D1","level":"warning","message":{"text":"Execution.monitorContainerExitSync (cyclomatic 25): Execution.monitorContainerExitSync 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/app/master/container/execution.go"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07f0f06349ad1ad5bb9a49e557088214d44d7191965dd80e261d28120a0c5f4"}},{"ruleId":"D1","level":"warning","message":{"text":"App.processFileActivity (cyclomatic 25): App.processFileActivity 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/monitor/ptrace/ptrace.go"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b411f3e8cecac30e3a7d7c401e1c8fa7a15adbeeb6bae1ba1c5caa0ba97140b"}},{"ruleId":"D1","level":"warning","message":{"text":"ast.parseWords (cyclomatic 24): ast.parseWords 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/docker/dockerfile/ast/line_parsers.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7806a51886dfd88e0ce260b3145bb556f70e7f87840e86be25d4991d34c8db"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomProbe.crawl (cyclomatic 23): CustomProbe.crawl has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 43). 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/app/master/probe/http/crawler.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04e0b2e406e17a0fa94fe4bfa71d14dab00ebcea903c576acc07aa2dfd6e067"}},{"ruleId":"D1","level":"warning","message":{"text":"store.resolveLinks (cyclomatic 23): store.resolveLinks 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/app/sensor/artifact/artifact.go"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9364b44849bc8b01021cd04706aaf57318ee0d2f91cd25de39c70754d2ebe68"}},{"ruleId":"D1","level":"warning","message":{"text":"imagebuilder.SimpleBuildOptionsFromDockerfileData (cyclomatic 23): imagebuilder.SimpleBuildOptionsFromDockerfileData has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/imagebuilder/imagebuilder.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4926ddcadb5a4a228e9f9b243c1a61216edc472d3599f743a543b307fb6508"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.waitForContainer (cyclomatic 21): debug.waitForContainer has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 1015). 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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa2e29d05afa54c2a73a0a39b3c974fdaf1e425701954dc103f2dba5f184fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"Inspector.setPorts (cyclomatic 21): Inspector.setPorts 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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea19ec5a50844bd07b8b4b23e0d106b16e3644ad08ee7476d0b92ebb66caaefc"}},{"ruleId":"D1","level":"warning","message":{"text":"store.prepareArtifacts (cyclomatic 21): store.prepareArtifacts 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/app/sensor/artifact/artifact.go"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9bff5f6ffa9a42504a93f22608d18bab5d69e4d32de1d08b2a06eb25fe540f"}},{"ruleId":"D1","level":"warning","message":{"text":"build.UpdateBuildOptionsWithOverrides (cyclomatic 20): build.UpdateBuildOptionsWithOverrides has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/build/image.go"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7c91e08f8bc03910fa301c2e7e3561307960ae1a1a0f05e3b719c0fc750cf0"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.Start (cyclomatic 20): monitor.Start has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 134). 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/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d21d894ae35e14ad1f0e5442d709cb68b4559879450f036a37fab71a15285b"}},{"ruleId":"D1","level":"warning","message":{"text":"app.newCLI (cyclomatic 19): app.newCLI has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 88, 163). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/cli.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5807d8996407281229a127aca4211a8b9fc43eb61b118c06b6a5bcdc16e0b8b3"}},{"ruleId":"D1","level":"warning","message":{"text":"command.ParseHTTPProbes (cyclomatic 19): command.ParseHTTPProbes 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/app/master/command/clifvparser.go"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af18a55c5a2db96740b5299160cce31b81bb548219e59ec90979ba107c1785a"}},{"ruleId":"D1","level":"warning","message":{"text":"command.ParseHTTPProbesFile (cyclomatic 19): command.ParseHTTPProbesFile 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/app/master/command/clifvparser.go"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0f6efa840ce911bcedb7fdf43ea75bcd378bf024f3d9400d1f75601df93759"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandServer.OnConnection (cyclomatic 19): CommandServer.OnConnection has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 628). 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/ipc/channel/channel.go"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31986257859ba7f9b2976ba213013fb230b957682ec6c4bee869327510dbdf3"}},{"ruleId":"D1","level":"warning","message":{"text":"compose.NewConfigInfo (cyclomatic 18): compose.NewConfigInfo 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/app/master/compose/execution.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfd57be43c6b80326f6d9601540f578c0c8000a69869e8fd2cb87be575c94d1"}},{"ruleId":"D1","level":"warning","message":{"text":"http.NewContainerProbe (cyclomatic 18): http.NewContainerProbe 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/app/master/probe/http/custom_probe.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ee18ce6847cd0fdb5d6dc6c2d9b0e0f952188da9e45fef167ce60d80888df3"}},{"ruleId":"D1","level":"warning","message":{"text":"dockerfile.GenerateFromInfo (cyclomatic 18): dockerfile.GenerateFromInfo 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/docker/dockerfile/dockerfile.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"38278d5b646bbafa1055567edc97aba1273e20915aa23b33d2a23f5b298f1ed9"}},{"ruleId":"D1","level":"warning","message":{"text":"dockerutil.PrepareContainerDataArchive (cyclomatic 18): dockerutil.PrepareContainerDataArchive 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/docker/dockerutil/dockerutil.go"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"692f11499579f7199c53c7ec87db0de814e8cc973ce6ef11ed99f8d6a2554e99"}},{"ruleId":"D1","level":"warning","message":{"text":"fsutil.cloneDirPath (cyclomatic 18): fsutil.cloneDirPath 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/util/fsutil/fsutil.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1956fad593270421d2e244324de9055887e37fa05321019065ed7ba1f3cda82"}},{"ruleId":"D1","level":"warning","message":{"text":"fsutil.ArchiveDir (cyclomatic 18): fsutil.ArchiveDir has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 1455). 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/util/fsutil/fsutil.go"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"7458d143ebdf44c63790339dc705a74684bf8a2bd8381850cbce1639ef3ae1e5"}},{"ruleId":"D1","level":"warning","message":{"text":"build.finishCommand (cyclomatic 17): build.finishCommand has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/build/handler.go"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d30bd3265fb5be40c1546225042c4533ea8ceaa2e901b9296f270efd60e80b"}},{"ruleId":"D1","level":"warning","message":{"text":"command.UpdateGlobalFlagValues (cyclomatic 17): command.UpdateGlobalFlagValues has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/clifvgetter.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7916e940e1816eba1e3abeff297bd7ad555aaa0c404f4db1a5328a2c499356"}},{"ruleId":"D1","level":"warning","message":{"text":"xray.parseDetectUTF8 (cyclomatic 17): xray.parseDetectUTF8 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/app/master/command/xray/cli.go"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6421cf0376665989d544df65d36a818f240dfc7a066271939697f879a78831ff"}},{"ruleId":"D1","level":"warning","message":{"text":"Execution.initServices (cyclomatic 17): Execution.initServices has cyclomatic complexity 17 (threshold 15). Of this number, 16 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/app/master/compose/execution.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d190e5e82c110fa829cea1ef990030d23f6e9d5daa4d416e9ca5585288869d"}},{"ruleId":"D1","level":"warning","message":{"text":"store.detectAppStack (cyclomatic 17): store.detectAppStack 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/app/sensor/artifact/artifact.go"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce416a8488a1d1bdfa3ea8db54c6b7aa382897f069081b4492af2ef97c9b899"}},{"ruleId":"D1","level":"warning","message":{"text":"InvalidStageArgs.Run (cyclomatic 17): InvalidStageArgs.Run 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/docker/linter/check/id20005.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d83ad70d6ef4a7e928122c7d7ae8379c281dcaf4a81fc6a3d323e8153f0ffe8"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.completeTarget (cyclomatic 16): debug.completeTarget 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/app/master/command/debug/prompt.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"091efe751345cd8a049e99268f0213e5079bd0c01d4d00a9a740e5bf8fb9e3fa"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.completeSession (cyclomatic 16): debug.completeSession 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/app/master/command/debug/prompt.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bf8082e9ee86268ffb30adc2c87c9f25e15d9d48939e19ece21cc0ec71c047"}},{"ruleId":"D1","level":"warning","message":{"text":"run.OnCommand (cyclomatic 16): run.OnCommand has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/run/handler.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad180212b05bb3f83476151eefe461f773ca5c10f1104ff2c2eaf641fd02c2b"}},{"ruleId":"D1","level":"warning","message":{"text":"container.BuildStartupCommand (cyclomatic 16): container.BuildStartupCommand 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/app/master/inspectors/container/container_startup.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfef469def5b06c9c12b31c0dcb9570fd2379fcdda6d8fcb78359ea77d2a7faf"}},{"ruleId":"D1","level":"warning","message":{"text":"FastCGITransport.buildEnv (cyclomatic 16): FastCGITransport.buildEnv has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/probe/http/internal/fastcgi.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ed8ec5dd8b0d012642572a6ad70f5a8a921ef81420025e11e5f65b36cc6ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"artifact.ngxEnsure (cyclomatic 16): artifact.ngxEnsure 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/app/sensor/artifact/artifact.go"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"04231095d8927c18b8ebdc92a930d8196825986acb247c9c14f61bb82185d30f"}},{"ruleId":"D1","level":"warning","message":{"text":"internalbuilder.layerFromDir (cyclomatic 16): internalbuilder.layerFromDir has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 281). 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/imagebuilder/internalbuilder/engine.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d5a8df261188405a1d2aab43c41df437f745565377f15f32965990c0443583"}},{"ruleId":"D1","level":"warning","message":{"text":"fsutil.ReplaceFileData (cyclomatic 16): fsutil.ReplaceFileData 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/util/fsutil/fsutil.go"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9184a94b46cc3171532836cfa36909a16ac81e81572bd14a833648462ddcd36b"}},{"ruleId":"D1","level":"warning","message":{"text":"Instance.GenericListCall (cyclomatic 16): Instance.GenericListCall 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/vulnerability/epss/api/api.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e35980dbb21b7d3c55deab2ee8528c91a69984cb0ab09d4e5ea83d4e76e3f5"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerimage.LoadPackage (cognitive 538): dockerimage.LoadPackage has cognitive complexity 538 (threshold 15). Drivers by points: if/else 136 (426 pts), loops 17 (61 pts), match/switch 7 (28 pts), boolean chains 23 (nesting depth added 355). 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/docker/dockerimage/dockerimage.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"230718b9a66979724bb4e58daf1018825833d28c98355e3fe562bb4e0c9c8132"}},{"ruleId":"D2","level":"warning","message":{"text":"store.saveArtifacts (cognitive 513): store.saveArtifacts has cognitive complexity 513 (threshold 15). Drivers by points: if/else 166 (445 pts), loops 24 (40 pts), boolean chains 23, jumps 5 (nesting depth added 295). Of this number, 466 points are the body\u0027s own statements and 47 belong to 3 function literals inside it that branch. 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/app/sensor/artifact/artifact.go"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c22491f4617fbe842fa7b71c1fa29e0cab6105520149d68d7e4e2060ea5b7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"xray.printImagePackage (cognitive 400): xray.printImagePackage has cognitive complexity 400 (threshold 15). Drivers by points: if/else 83 (306 pts), loops 25 (70 pts), boolean chains 24 (nesting depth added 268). Of this number, 397 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/xray/handler.go"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11d02dbba458bc59112694fc6907eac43a99d91f79f1754ea5d56807e933751"}},{"ruleId":"D2","level":"warning","message":{"text":"build.OnCommand (cognitive 395): build.OnCommand has cognitive complexity 395 (threshold 15). Drivers by points: if/else 99 (272 pts), loops 30 (108 pts), boolean chains 12, match/switch 1 (3 pts) (nesting depth added 253). Of this number, 203 points are the body\u0027s own statements and 192 belong to 4 function literals inside it that branch. 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/app/master/command/build/handler.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"369eb27ac4576d400516411e8b049ddfdaeea0d0a041ee34b8e8a40a916bb3f1"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerimage.inspectFile (cognitive 320): dockerimage.inspectFile has cognitive complexity 320 (threshold 15). Drivers by points: if/else 80 (297 pts), boolean chains 13, loops 5 (10 pts) (nesting depth added 222). 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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59baf62873f74687e2a6f1a6b646bce75fbb2a353afe25932ed2b25b3045f9d"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.FromFile (cognitive 309): parser.FromFile has cognitive complexity 309 (threshold 15). Drivers by points: if/else 64 (257 pts), loops 5 (24 pts), match/switch 3 (21 pts), boolean chains 7 (nesting depth added 230). 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/docker/dockerfile/parser/parser.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"64896873ddb14257c5eb454729771b68f3d7401a70f5c0fe0e37b45228e8fe51"}},{"ruleId":"D2","level":"warning","message":{"text":"reverse.DockerfileFromHistoryStruct (cognitive 224): reverse.DockerfileFromHistoryStruct has cognitive complexity 224 (threshold 15). Drivers by points: if/else 64 (198 pts), loops 8 (17 pts), match/switch 2 (6 pts), boolean chains 3 (nesting depth added 147). 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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4c915dcfcc62d22a3c99de18dd1324f57c19dc15622cd026b2a1c814871bab"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomProbe.Start (cognitive 210): CustomProbe.Start has cognitive complexity 210 (threshold 15). Drivers by points: if/else 51 (171 pts), loops 7 (18 pts), match/switch 4 (17 pts), boolean chains 4 (nesting depth added 144). Most of this is not in the body itself: 1 of the 210 points is its own statement and the rest belongs to one function literal inside it that branches (line 271). 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/app/master/probe/http/custom_probe.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd539233f7036a7c66b0a9d2625f0ad0064b756882cf330617c5c90aa8e681d"}},{"ruleId":"D2","level":"warning","message":{"text":"Inspector.RunContainer (cognitive 175): Inspector.RunContainer has cognitive complexity 175 (threshold 15). Drivers by points: if/else 83 (143 pts), loops 10 (15 pts), boolean chains 14, match/switch 2 (3 pts) (nesting depth added 66). Of this number, 137 points are the body\u0027s own statements and 38 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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0147f864660f6ec7d843aeaf087b13db1b346c86fa23d1aca5cf532b46aadb"}},{"ruleId":"D2","level":"warning","message":{"text":"xray.OnCommand (cognitive 131): xray.OnCommand has cognitive complexity 131 (threshold 15). Drivers by points: if/else 52 (95 pts), loops 14 (26 pts), boolean chains 7, match/switch 1 (3 pts) (nesting depth added 57). 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/app/master/command/xray/handler.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b10cb1c13e7485c574044f1c1e822f591f8f945999a166c72181ddde4528672"}},{"ruleId":"D2","level":"warning","message":{"text":"builder.NewImageBuilder (cognitive 129): builder.NewImageBuilder has cognitive complexity 129 (threshold 15). Drivers by points: if/else 32 (78 pts), loops 13 (38 pts), boolean chains 10, match/switch 1 (3 pts) (nesting depth added 73). 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/app/master/builder/image_builder.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"342b5929156107867e11a422d83817535bc0a121b0d034d56dd0350efe5fffcd"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.HandleKubernetesRuntime (cognitive 128): debug.HandleKubernetesRuntime has cognitive complexity 128 (threshold 15). Drivers by points: if/else 60 (105 pts), loops 10 (19 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 56). 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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7723c1c5491a988706672dc46cf1281e05e51fe2afc2034990e216011600bc"}},{"ruleId":"D2","level":"warning","message":{"text":"App.collect (cognitive 126): App.collect has cognitive complexity 126 (threshold 15). Drivers by points: if/else 39 (106 pts), match/switch 5 (17 pts), boolean chains 2, loops 1 (nesting depth added 79). 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/monitor/ptrace/ptrace.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"9168b785548b9420ccf207886fa3b8be4596872102a68623cdf4d5d3143ff8ac"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerimage.layerFromStream (cognitive 123): dockerimage.layerFromStream has cognitive complexity 123 (threshold 15). Drivers by points: if/else 46 (117 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 72). 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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41bc57d2f669fc90c668b64c2a3076c7047a4bff2f9897b350321601f3c1a88"}},{"ruleId":"D2","level":"warning","message":{"text":"store.saveCertsData (cognitive 120): store.saveCertsData has cognitive complexity 120 (threshold 15). Drivers by points: if/else 28 (93 pts), loops 8 (17 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 78). Of this number, 18 points are the body\u0027s own statements and 102 belong to 4 function literals inside it that branch. 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/app/sensor/artifact/artifact.go"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f15bc2d84dc353ae38f5b1479767b2e3b72fefb516dafcf684c74a01244273"}},{"ruleId":"D2","level":"warning","message":{"text":"PackageFiles.ListLayerFiles (cognitive 116): PackageFiles.ListLayerFiles has cognitive complexity 116 (threshold 15). Drivers by points: if/else 26 (85 pts), loops 8 (22 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 74). 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/docker/dockerimage/packagefiles.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f5ef652186b40d7d167ed0c598be040cf27595f0b89cd4596b05825312ea4a"}},{"ruleId":"D2","level":"warning","message":{"text":"PyPipInstallLatest.Run (cognitive 96): PyPipInstallLatest.Run has cognitive complexity 96 (threshold 15). Drivers by points: if/else 15 (76 pts), boolean chains 10, loops 3 (10 pts) (nesting depth added 68). Of this number, 95 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20018.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacf108d29e79301768ae2750d9f22bdb330df4a294c9d336785f9b1192454f8"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.copyFileObjectHandler (cognitive 87): fsutil.copyFileObjectHandler has cognitive complexity 87 (threshold 15). Drivers by points: if/else 30 (85 pts), loops 1, match/switch 1 (nesting depth added 55). None of this is in the body itself: all 87 points belong to one function literal inside it that branches (line 819). 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/util/fsutil/fsutil.go"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"376f87a28bd0160b7d82ea15d20fc04bec9cfbaff3136f9f6f8c5cf9ccefe88c"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.CopyRegularFile (cognitive 84): fsutil.CopyRegularFile has cognitive complexity 84 (threshold 15). Drivers by points: if/else 33 (84 pts) (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/fsutil/fsutil.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f956322a5b55febf9ae0840620898bbd4e5fff493a42bd4d8436ee943de7f41"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.monitorContainerExitSync (cognitive 83): Execution.monitorContainerExitSync has cognitive complexity 83 (threshold 15). Drivers by points: if/else 15 (75 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 61). 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/app/master/container/execution.go"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e927e91c4632f0f8ec0ccb29a580b66407c6a86e08475e679d13566d3169802"}},{"ruleId":"D2","level":"warning","message":{"text":"store.saveSSHClient (cognitive 80): store.saveSSHClient has cognitive complexity 80 (threshold 15). Drivers by points: if/else 24 (61 pts), loops 9 (18 pts), boolean chains 1 (nesting depth added 46). Of this number, 76 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c97ec711837102271dc68a2a122f622d28e38d3e7d89533162476791c1349c"}},{"ruleId":"D2","level":"warning","message":{"text":"Instance.call (cognitive 80): Instance.call has cognitive complexity 80 (threshold 15). Drivers by points: if/else 35 (77 pts), boolean chains 3 (nesting depth added 42). 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/vulnerability/epss/api/api.go"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb37660ac08f49e8631ec2259a129936da171a43d7132d9f51b6417ee97d1ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.waitForContainer (cognitive 77): debug.waitForContainer has cognitive complexity 77 (threshold 15). Drivers by points: if/else 14 (71 pts), match/switch 2 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 59). None of this is in the body itself: all 77 points belong to one function literal inside it that branches (line 1015). 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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c3dece38abdd8b354920d3b81c63dfe2a79d38daaec115a332f3435952f89a"}},{"ruleId":"D2","level":"warning","message":{"text":"store.saveOSLibsNetwork (cognitive 75): store.saveOSLibsNetwork has cognitive complexity 75 (threshold 15). Drivers by points: if/else 20 (56 pts), loops 7 (15 pts), boolean chains 4 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc90507574ca32dbdc761c272f4efea688db8c281eba2aefa884a1d081d761a"}},{"ruleId":"D2","level":"warning","message":{"text":"linter.Execute (cognitive 75): linter.Execute has cognitive complexity 75 (threshold 15). Drivers by points: if/else 26 (61 pts), loops 5 (9 pts), jumps 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 40). Of this number, 73 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/linter.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"531ac4fd672a5d77dab6f9da3578193e0d52fd594373555a60b90eaeb9b5ec0a"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.findSymlinks (cognitive 74): artifact.findSymlinks has cognitive complexity 74 (threshold 15). Drivers by points: if/else 37 (64 pts), loops 6 (8 pts), boolean chains 2 (nesting depth added 29). Of this number, 30 points are the body\u0027s own statements and 44 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/app/sensor/artifact/artifact.go"},"region":{"startLine":3313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dec5468fd0bd0f7976811f0d4025cec6cecab235bf89408cb4513bb7c71bb4"}},{"ruleId":"D2","level":"warning","message":{"text":"reverse.deserialiseHealtheckInstruction (cognitive 71): reverse.deserialiseHealtheckInstruction has cognitive complexity 71 (threshold 15). Drivers by points: if/else 36 (65 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a4c0bb92d691bc3e38bc8a7e960cfac00f237a4021b7df7672c19792a6cc64"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.Start (cognitive 69): Execution.Start has cognitive complexity 69 (threshold 15). Drivers by points: if/else 36 (61 pts), boolean chains 5, loops 1 (3 pts) (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/app/master/container/execution.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be2bfe4ecca60da6827b31b9fce1ceffbcf386f86fe904850056386330110bf"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveApp.complete (cognitive 65): InteractiveApp.complete has cognitive complexity 65 (threshold 15). Drivers by points: if/else 34 (57 pts), boolean chains 4, loops 3 (4 pts) (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/app/master/command/cliprompt.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdee8e3c8ff5194e61a003830f53d8791473147c9bc3b3a6f233a664a2a292f1"}},{"ruleId":"D2","level":"warning","message":{"text":"sodeps.AllDependencies (cognitive 62): sodeps.AllDependencies has cognitive complexity 62 (threshold 15). Drivers by points: if/else 24 (54 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 32). 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/app/sensor/inspector/sodeps/sodeps.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"adefeb78469511e7d92c303e740e385468abdc8e36d6fd7f20a056ee99e0c778"}},{"ruleId":"D2","level":"warning","message":{"text":"build.UpdateBuildOptionsWithNewInstructions (cognitive 61): build.UpdateBuildOptionsWithNewInstructions has cognitive complexity 61 (threshold 15). Drivers by points: if/else 14 (38 pts), loops 7 (18 pts), boolean chains 5 (nesting depth added 35). 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/app/master/command/build/image.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5425ff5c17f2593eb2ac241862671bf50828c546b1da1773dbb3e891f29bdfa2"}},{"ruleId":"D2","level":"warning","message":{"text":"ast.extractBuilderFlags (cognitive 61): ast.extractBuilderFlags has cognitive complexity 61 (threshold 15). Drivers by points: if/else 18 (53 pts), boolean chains 7, loops 1 (nesting depth added 35). 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/docker/dockerfile/ast/split_command.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"89074f2a435c44a00326eb2a22b8cf80d9945c612b2f9412b28872ff95c3f0e6"}},{"ruleId":"D2","level":"warning","message":{"text":"http.NewContainerProbe (cognitive 57): http.NewContainerProbe has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (49 pts), loops 4 (8 pts) (nesting depth added 33). 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/app/master/probe/http/custom_probe.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d46c5a44573b4cc264c07f1c7dd4a50eef877b9a425ed6ed0e3ae8a607d4325"}},{"ruleId":"D2","level":"warning","message":{"text":"App.processFileActivity (cognitive 57): App.processFileActivity has cognitive complexity 57 (threshold 15). Drivers by points: if/else 14 (40 pts), match/switch 2 (11 pts), boolean chains 6 (nesting depth added 35). 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/monitor/ptrace/ptrace.go"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"378944dd6aca11a1a46bf064da899b3c4d73de5d59ba4d608d983512d7c3f256"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine.Build (cognitive 56): Engine.Build has cognitive complexity 56 (threshold 15). Drivers by points: if/else 27 (48 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 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/imagebuilder/internalbuilder/engine.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8056a33ee236b0da6a49efbcb4dec5c66e6348bfa8323b6e6068f6cd0ae89c96"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.HandleDockerRuntime (cognitive 54): debug.HandleDockerRuntime has cognitive complexity 54 (threshold 15). Drivers by points: if/else 23 (40 pts), loops 5 (10 pts), match/switch 1 (3 pts), boolean chains 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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"20effde49e057f7a85ac3a326bcf036e1fab3dc911863295f8133d33ef30946b"}},{"ruleId":"D2","level":"warning","message":{"text":"ast.parseWords (cognitive 53): ast.parseWords has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (46 pts), boolean chains 6, loops 1 (nesting depth added 30). 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/docker/dockerfile/ast/line_parsers.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8673b147af42930b7ec02082ce0cfb0416045b71ae2fb433e156575a148133b1"}},{"ruleId":"D2","level":"warning","message":{"text":"store.resolveLinks (cognitive 50): store.resolveLinks has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (44 pts), loops 3 (4 pts), boolean chains 2 (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/app/sensor/artifact/artifact.go"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26b43cace3ce1c03e59efe4ca8916dbcb08465d12f8f9ea84b85491c7a97309"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandServer.OnConnection (cognitive 50): CommandServer.OnConnection has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (45 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 30). Most of this is not in the body itself: 1 of the 50 points is its own statement and the rest belongs to one function literal inside it that branches (line 628). 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/ipc/channel/channel.go"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa8258ac905350a5b8074146ccf2e33819942e7bcc3b8e4a472babf5502b915"}},{"ruleId":"D2","level":"warning","message":{"text":"merge.OnCommand (cognitive 48): merge.OnCommand has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (24 pts), loops 11 (21 pts), boolean chains 3 (nesting depth added 18). Of this number, 40 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/app/master/command/merge/handler.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffd747bc9ffa531920bfe78ee8b5e304d1a76fe690020c29ca3f6afdcac26b4"}},{"ruleId":"D2","level":"warning","message":{"text":"compose.startContainer (cognitive 48): compose.startContainer has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (31 pts), loops 4 (8 pts), boolean chains 5, match/switch 1 (4 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/app/master/compose/execution.go"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f894e1e7092aea8bc0d48e6897555832caa26d9ac1cf62cf305bf0fce44ffda"}},{"ruleId":"D2","level":"warning","message":{"text":"build.monitorContainer (cognitive 47): build.monitorContainer has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 5 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/build/handler.go"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"396868c4a57045a57e692de570ac364be10d11b211293558f65b365ef349205f"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.initServices (cognitive 44): Execution.initServices has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (34 pts), loops 4 (10 pts) (nesting depth added 26). Of this number, 42 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/compose/execution.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"d143e7e03ea14a6696603ecafd4da3ac2b09f9047a14960eb636b438bbc0aa30"}},{"ruleId":"D2","level":"warning","message":{"text":"Inspector.setPorts (cognitive 44): Inspector.setPorts has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 6 (15 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22731da4b6489451137be552d81952f91f09420abce1b3bd914d8a00df6c96e"}},{"ruleId":"D2","level":"warning","message":{"text":"store.prepareArtifacts (cognitive 44): store.prepareArtifacts has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 4 (6 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"002932accca5d53c2f602d681bed082a2db53d1a11268036a3974fb9121189f4"}},{"ruleId":"D2","level":"warning","message":{"text":"registry.OnImageIndexCreateCommand (cognitive 42): registry.OnImageIndexCreateCommand has cognitive complexity 42 (threshold 15). Drivers by points: if/else 26 (37 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/registry/handler_image_index.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"897dd1ef8abc64755aae5c76e6b0b16709231d7054d0684c9ddf98c46bad5dc2"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.ngxEnsure (cognitive 42): artifact.ngxEnsure has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (42 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"844b9a17fbada770053787e250e2ddb0742510d990f00a7d0abcee6a8c88c1e0"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerclient.New (cognitive 42): dockerclient.New has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 8, match/switch 1 (nesting depth added 14). Of this number, 37 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerclient/client.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57d8fe10621c2ae4693f07f41cb5b4a4b2f0cf7fb3b92b1a2e3a6b9a98f8311"}},{"ruleId":"D2","level":"warning","message":{"text":"BadContainerCommands.Run (cognitive 42): BadContainerCommands.Run has cognitive complexity 42 (threshold 15). Drivers by points: if/else 8 (33 pts), loops 3 (9 pts) (nesting depth added 31). 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/docker/linter/check/id20022.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"328efc5b9ee0bc7dc481b0d3c3a1d70415f38dff3d8ff7f12edd506622612195"}},{"ruleId":"D2","level":"warning","message":{"text":"build.UpdateBuildOptionsWithOverrides (cognitive 41): build.UpdateBuildOptionsWithOverrides has cognitive complexity 41 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 4 (14 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 28). 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/app/master/command/build/image.go"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"c274820846919920436c932a996f6dbf757b76de0a24d7ab8e55f4e7308f8951"}},{"ruleId":"D2","level":"warning","message":{"text":"command.ParseHTTPProbesFile (cognitive 41): command.ParseHTTPProbesFile has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (35 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/clifvparser.go"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"083990ef966efa65d6d776bd26086102c084c2222eb5e8a87421e08ad31b5c24"}},{"ruleId":"D2","level":"warning","message":{"text":"xray.parseDetectUTF8 (cognitive 41): xray.parseDetectUTF8 has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (39 pts), boolean chains 2 (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/app/master/command/xray/cli.go"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee608cdec2e8b80c979e62c48bf3fca6a31155459b5dfe8c7a2d18d705fb279a"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.processEvent (cognitive 41): monitor.processEvent has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (35 pts), boolean chains 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d390dccc1e7d4aa9a6131f1a3da31c7d2fb7f602670e9be371773e62c5605f88"}},{"ruleId":"D2","level":"warning","message":{"text":"build.buildOutputImage (cognitive 40): build.buildOutputImage has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 5, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/build/image.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b384ae8b0412ee0835cd8e9ba0841b1fc4dce0dc81666495ecd980cf0153a7a"}},{"ruleId":"D2","level":"warning","message":{"text":"InvalidStageArgs.Run (cognitive 36): InvalidStageArgs.Run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20005.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a530f8ff9a8bf71c8d23d35564d1c8d6c6a7aa23d14962d94e9ab663c3718e"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.cloneDirPath (cognitive 36): fsutil.cloneDirPath has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 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/util/fsutil/fsutil.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f21ab72d4273d298486f03f203d4d19cb634dc48545253fbf2b4ba48a877ab"}},{"ruleId":"D2","level":"warning","message":{"text":"processor.PrepareEnv (cognitive 35): processor.PrepareEnv has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6b5f0cf6be77ae0ce68f002ff51cee4a629040d0d5b516b8f554bcc754c3fe"}},{"ruleId":"D2","level":"warning","message":{"text":"SeparateRemove.Run (cognitive 35): SeparateRemove.Run has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (31 pts), loops 2 (4 pts) (nesting depth added 25). 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/docker/linter/check/id20021.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b721016f19ff92696430f7decc5b149462a1e94d4ae775bf280bfae2038e61"}},{"ruleId":"D2","level":"warning","message":{"text":"lint.printLintResults (cognitive 34): lint.printLintResults has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 5 (16 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/lint/handler.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5e62f27f6eb7fe17ae73b69e1f0fa5fdb468ea56b77e186ec80a57959c7a9b"}},{"ruleId":"D2","level":"warning","message":{"text":"profile.OnCommand (cognitive 34): profile.OnCommand has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 3, match/switch 2 (3 pts), loops 1 (nesting depth added 7). 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/app/master/command/profile/handler.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a122d680ac7dc5bd7b1942ac7aecd07e04e66e67d5bc470a1c90b008f991184d"}},{"ruleId":"D2","level":"warning","message":{"text":"compose.NewConfigInfo (cognitive 33): compose.NewConfigInfo has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 3 (5 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/app/master/compose/execution.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1ea1059f13460cc031267933d8b583c234dcc629ec3f53b87f6d5a19f91f6a"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.rbEnsureGemFiles (cognitive 33): artifact.rbEnsureGemFiles has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (27 pts), loops 2 (4 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/app/sensor/artifact/artifact.go"},"region":{"startLine":2955}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b34304c957539b005a3f39b773e6679e1f58da183e5e0452838da6ba425a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"store.prepareArtifact (cognitive 33): store.prepareArtifact has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (32 pts), match/switch 1 (nesting depth added 19). 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/app/sensor/artifact/artifact.go"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f4ff9608d25483a428e5c56aa33a554abe39ccdfaa109d024af2076dafe2c5"}},{"ruleId":"D2","level":"warning","message":{"text":"appbom.Get (cognitive 33): appbom.Get has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 4 (5 pts), match/switch 2 (5 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/appbom/appbom.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1817f31bd5e47cd2340c2bbca9074e4bbae4a48343e84e2cb23168305898b784"}},{"ruleId":"D2","level":"warning","message":{"text":"MalformedInstExecForm.Run (cognitive 33): MalformedInstExecForm.Run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 4 (19 pts), loops 4 (13 pts), boolean chains 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/docker/linter/check/id20013.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dce120936a6a5b98561ee7598eb741b0f23b0ef863963c8900d4b9bcae2f67"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.completeTarget (cognitive 32): debug.completeTarget has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (8 pts), boolean chains 5 (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/app/master/command/debug/prompt.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71fae366996f17fd181ea49c481126de85574a6ad557993faa0302f64a94f21"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.completeSession (cognitive 32): debug.completeSession has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (8 pts), boolean chains 5 (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/app/master/command/debug/prompt.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cac5fee2ef8808b441ba731da0e1ea18ce106c9bfceb67ad41aeeac6ba960f"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.PrepareService (cognitive 32): Execution.PrepareService has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 2 (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/app/master/compose/execution.go"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ab2907135adde1da021f7a87fb607ade5bda9c31d97eba6d6b99cc33d28a24"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.Start (cognitive 32): monitor.Start has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 4 (9 pts), loops 3, jumps 2 (nesting depth added 13). Most of this is not in the body itself: 2 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 134). 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/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69b4c648763fe9037b42dd3745f28c8a591909726d7d95f9e54b08822fc02be"}},{"ruleId":"D2","level":"warning","message":{"text":"sodeps.resolveDepArtifacts (cognitive 30): sodeps.resolveDepArtifacts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 1 (nesting depth added 19). 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/app/sensor/inspector/sodeps/sodeps.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dcca24228babc610311b86c2b6d4b1b07dd8b0f05d77632c5432d4af8e47c8"}},{"ruleId":"D2","level":"warning","message":{"text":"pattern.compile (cognitive 30): pattern.compile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 1, loops 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/docker/dockerignore/dockerignore.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a814372953b6acd5d51a2073ad52910af2dbeb356ff9a034719436d3a2bf29"}},{"ruleId":"D2","level":"warning","message":{"text":"RelativeWorkdir.Run (cognitive 30): RelativeWorkdir.Run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (21 pts), loops 3 (9 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20015.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d00c11c6a39a96042cda2deef9990e1d23cab0e82d09fa1a1316fa6a6786318"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.CopySymlinkFile (cognitive 30): fsutil.CopySymlinkFile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (30 pts) (nesting depth added 16). 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/util/fsutil/fsutil.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef559407380135ead01d36dba6d7f6ff90c5f6b7f543c2ee54ae5d758b5fcc9"}},{"ruleId":"D2","level":"warning","message":{"text":"command.ParseHTTPProbes (cognitive 29): command.ParseHTTPProbes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/clifvparser.go"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8faa4f1786e2f93631aea2c7bc8de8a92089951d37f75fa562d818ad696fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"Inspector.ShutdownContainer (cognitive 28): Inspector.ShutdownContainer has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (28 pts) (nesting depth added 14). Of this number, 24 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"271d931de355787979ebb197fea971b0b83f01032da157a1288473f77d50ee84"}},{"ruleId":"D2","level":"warning","message":{"text":"Inspector.publishPorts (cognitive 28): Inspector.publishPorts has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 14). Of this number, 20 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"168105f2a53382223500bb6fa47f9aab057daa4530ae0e9157a59f43cc492237"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.CopyDirOnly (cognitive 28): fsutil.CopyDirOnly has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (28 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/fsutil/fsutil.go"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d24a8f945c84143460b04116d23e36bd3bdfdc3c9db5fda9574cbac86f4895"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomProbe.apiSpecEndpointCall (cognitive 27): CustomProbe.apiSpecEndpointCall has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (26 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/app/master/probe/http/swagger.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdc3bcc4255ac313ce7688cf5979ea61f7129489fe2f269a76ab5d718b771c8"}},{"ruleId":"D2","level":"warning","message":{"text":"reverse.stripRunInstArgs (cognitive 27): reverse.stripRunInstArgs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 1 (nesting depth added 15). 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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c2a5ef138713a169370de913b9030204ec351b7ca8e29ba091ab99af3e219f"}},{"ruleId":"D2","level":"warning","message":{"text":"EntrypointCmdShellForm.Run (cognitive 27): EntrypointCmdShellForm.Run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 3 (14 pts), loops 4 (13 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20012.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a2dc41559a7b10ced8d875522648ff5bde4497b985c19641b04536cd9be1e2"}},{"ruleId":"D2","level":"warning","message":{"text":"launcher.Start (cognitive 27): launcher.Start has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (27 pts) (nesting depth added 14). 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/launcher/launcher.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"347dbf00e911294305b5f550225eb1228315fadbe9044dc68042228c4bd8fcd7"}},{"ruleId":"D2","level":"warning","message":{"text":"build.finishCommand (cognitive 26): build.finishCommand has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 7). 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/app/master/command/build/handler.go"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac549bf2ff55daa9867f4aaec07b0a2269d0acdaec6cf912b16096b17476186"}},{"ruleId":"D2","level":"warning","message":{"text":"container.BuildStartupCommand (cognitive 26): container.BuildStartupCommand has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/inspectors/container/container_startup.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed94c13e0f6dfc501890f8c72711cc2a6eb5be5d51b1752f2a4780f66c0875f5"}},{"ruleId":"D2","level":"warning","message":{"text":"http.apiSpecPrefix (cognitive 26): http.apiSpecPrefix has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/probe/http/swagger.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde0d9f94e821c78fd94e8b2464bf47b3f26117f82a31d70b33b0c1d0a9f627f"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.homeDirs (cognitive 26): artifact.homeDirs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (7 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/app/sensor/artifact/artifact.go"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f661b9ae7de1c172a0d042d6fdc25f20c0ba16d49293e6847d2175c5bbaf779"}},{"ruleId":"D2","level":"warning","message":{"text":"ast.Parse (cognitive 26): ast.Parse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (3 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/docker/dockerfile/ast/parser.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3695252b464cc91f623c08dbe9cc956823bc067a4b24bf54c0c58742e0002eaa"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerfile.GenerateFromInfo (cognitive 26): dockerfile.GenerateFromInfo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 6 (12 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerfile/dockerfile.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e4644b71e774902af4407bdf5e5d91d9162b97dfac5ad917b9adfae63a3b83"}},{"ruleId":"D2","level":"warning","message":{"text":"compose.MountsFromVolumeConfigs (cognitive 25): compose.MountsFromVolumeConfigs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (nesting depth added 13). 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/app/master/compose/execution.go"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d052ece2aac4480971b83b5aab119dc0a097d69f0040e740a29e3d66651f86"}},{"ruleId":"D2","level":"warning","message":{"text":"build.inspectFatImage (cognitive 24): build.inspectFatImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (5 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/app/master/command/build/image.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"846f999ccea0654967c76d823a41518b9c6e1f01fc82d56aa1757085ab686918"}},{"ruleId":"D2","level":"warning","message":{"text":"Inspector.setAvailablePorts (cognitive 24): Inspector.setAvailablePorts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). Of this number, 22 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"700b5169c25319e03e866ed3101b7be8237fcaaf5545411a73e95d59301c9fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"store.enumerateArtifacts (cognitive 24): store.enumerateArtifacts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 2 (3 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/app/sensor/artifact/artifact.go"},"region":{"startLine":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d0abb36a12170ea50122e248c6c3ed99febf7411b43f4a7be67425c48baa57"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.ArchiveDir (cognitive 24): fsutil.ArchiveDir has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 pts), match/switch 1 (nesting depth added 9). Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 1455). 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/util/fsutil/fsutil.go"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7345819a1e12828fb2915ebdb4ff5b3df47d78c95e3336e90270acd648d40d"}},{"ruleId":"D2","level":"warning","message":{"text":"Instance.GenericListCall (cognitive 24): Instance.GenericListCall has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (21 pts), match/switch 1 (3 pts) (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/vulnerability/epss/api/api.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f991ac86c9d9d1aab917d051d06ba3bcaef2e1391946964352782748067ba275"}},{"ruleId":"D2","level":"warning","message":{"text":"Output.State (cognitive 23): Output.State has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (3 pts), boolean chains 2, match/switch 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/app/execontext.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4949744cdbdd571be2e80b1915d33314e6e6ec72503a5aabde61389b931ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"builder.NewBasicImageBuilder (cognitive 23): builder.NewBasicImageBuilder has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 pts), boolean chains 3 (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/app/master/builder/image_builder.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59d624d7c353364798bccea3f682c4f1bf4b6c768cab3562e8d541ea1c65a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.listK8sDebugContainers (cognitive 23): debug.listK8sDebugContainers has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2, 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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca15a079397cdc9c4009cc214cfbabc155c251ef35f30f4b6aabcafa54cccb2"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomProbe.crawl (cognitive 23): CustomProbe.crawl has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 8, match/switch 1 (nesting depth added 1). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 43). 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/app/master/probe/http/crawler.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e962e9b6bf2422082953d4c62cbe526caa8a2c2830c8fe6ef4eeea114b0edbe5"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerutil.PrepareContainerDataArchive (cognitive 23): dockerutil.PrepareContainerDataArchive has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, 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/docker/dockerutil/dockerutil.go"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a79fe97780928f98427f765d13ca5653e45cf73aa02955c6a265627e451b54"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.ReplaceFileData (cognitive 23): fsutil.ReplaceFileData has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/fsutil/fsutil.go"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2a7d968dd269f6e1ef25a2b7cb7d245d0f1227c04b7d18e6b6de0478f1da2f"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.ArchiveFiles (cognitive 23): fsutil.ArchiveFiles has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 1, loops 1 (nesting depth added 11). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/fsutil/fsutil.go"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"814c14bb69a160730ef166d63ab1dba3e99a604992cc3feee11608fbf1f709e9"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.completePod (cognitive 22): debug.completePod has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 4, loops 1 (4 pts) (nesting depth added 12). 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/app/master/command/debug/prompt.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f53748022b3c085f5dbab2ff5ec2e145d5902f75cdd999f2d20e4e6f8a488b8"}},{"ruleId":"D2","level":"warning","message":{"text":"store.detectAppStack (cognitive 22): store.detectAppStack has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e25053d7220318c4419d8845adbb0c4b1be2cf9a764dc23050832bdcb60fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"epss.NewResultWithHistory (cognitive 22): epss.NewResultWithHistory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (3 pts) (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/vulnerability/epss/data.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"d487111d8af7332c745820cfe9c47720e39d5bf5588ec15ab4facfcc24e67202"}},{"ruleId":"D2","level":"warning","message":{"text":"run.OnCommand (cognitive 21): run.OnCommand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 7). Of this number, 12 points are the body\u0027s own statements and 9 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/app/master/command/run/handler.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a99cbf6f8e49794a2af8e5d9b9d951445ae0fa4fd1c53b65f7c460a7f665cf"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerhost.GetIP (cognitive 21): dockerhost.GetIP has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 1, match/switch 1 (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/app/master/docker/dockerhost/host.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efcc8feb40e14b6f690d43edc10065e3c9956bc59aaf1e45a0ef5bf1c407718"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerutil.SaveImage (cognitive 21): dockerutil.SaveImage 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/docker/dockerutil/dockerutil.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"588855d1f008eee7cedb59cde0b94e6a5baaf4de660c076ca9c28583ee2e79f2"}},{"ruleId":"D2","level":"warning","message":{"text":"build.GetContainerBuildOptions (cognitive 20): build.GetContainerBuildOptions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (4 pts), loops 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/app/master/command/build/flags.go"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd400eedc5ae2b97c6a320e0a782670697fd62e1092dfea661ba65e4f5828b60"}},{"ruleId":"D2","level":"warning","message":{"text":"xray.parseChangeDataMatchers (cognitive 20): xray.parseChangeDataMatchers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (xray.parseChangePathMatchers, xray.parseChangeDataHashMatchers) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/xray/cli.go"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae0ef14cc2859afd3536462082a63e4f0e1945bb2a9eac4f81ead11fcf6ca0c"}},{"ruleId":"D2","level":"warning","message":{"text":"xray.parseChangePathMatchers (cognitive 20): xray.parseChangePathMatchers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (xray.parseChangeDataMatchers, xray.parseChangeDataHashMatchers) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/xray/cli.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6096fabb986b03b184c1c36f5a0a365bcf78910baafa561727a124acb30a02c"}},{"ruleId":"D2","level":"warning","message":{"text":"xray.parseChangeDataHashMatchers (cognitive 20): xray.parseChangeDataHashMatchers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (xray.parseChangeDataMatchers, xray.parseChangePathMatchers) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/xray/cli.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e785464fca8dc221c7cf5df573a60ef4272044432aa07206984be1cf5eda28"}},{"ruleId":"D2","level":"warning","message":{"text":"FastCGITransport.buildEnv (cognitive 20): FastCGITransport.buildEnv has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 4). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/probe/http/internal/fastcgi.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7be4f797cf1c095a2c7960dd9c85253f4c2509c541d8b6020625b18d39bbd4"}},{"ruleId":"D2","level":"warning","message":{"text":"NoWorkdirPath.Run (cognitive 20): NoWorkdirPath.Run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (9 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20014.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"46025d5bed9f7a58ad1ea8d537ede0351b03b0498741368159c0c7cb8fbc5ae6"}},{"ruleId":"D2","level":"warning","message":{"text":"App.process (cognitive 20): App.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 2 (4 pts), jumps 3, loops 3 (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/monitor/ptrace/ptrace.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f3d2b1dd35057c4db6b8395ccb8e47d0f81cdd1008428397c783d78546d733"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.PrepareImageStateDirs (cognitive 20): fsutil.PrepareImageStateDirs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/fsutil/fsutil.go"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c77613d41389d22d9149b63f807ecba760ea14426212134176f8ea584eee6c"}},{"ruleId":"D2","level":"warning","message":{"text":"Inspector.sensorCommandStart (cognitive 19): Inspector.sensorCommandStart has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, 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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"703bded07169335ea87c2422bb323f383c5e99b68765f82871e38dc16f00c7dd"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerignore.readPatterns (cognitive 19): dockerignore.readPatterns has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerignore/dockerignore.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72225a5a1ea137ab2dbe23f6ea7b1aea1149c45150fcc2d3745973228235416"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerutil.CopyToVolume (cognitive 19): dockerutil.CopyToVolume has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 1 (nesting depth added 5). Of this number, 18 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/docker/dockerutil/dockerutil.go"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6143bd1d64bafe1e5ec3786a270f2b87fe1796cf6481b420322701aee60efc"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerutil.CopyFromContainer (cognitive 19): dockerutil.CopyFromContainer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerutil/dockerutil.go"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f652a16ac8e5e295be7f39e1df7005a07ccfbbf67618b6aafe52bdc8ff9262"}},{"ruleId":"D2","level":"warning","message":{"text":"publisher.process (cognitive 19): publisher.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 10). Of this number, 13 points are the body\u0027s own statements and 6 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/mondel/mondel.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3338a24b42a56937b995e6864f5048142a20d0ad2f839d0b96b180aedf0567f"}},{"ruleId":"D2","level":"warning","message":{"text":"app.newCLI (cognitive 18): app.newCLI has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 2 (4 pts) (nesting depth added 5). None of this is in the body itself: all 18 points belong to 2 function literals inside it that branch (lines 88, 163). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/cli.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6010c9c2eb51cce9347e4d0c023a9c23894bafeca5b29fa90680db32e32858b4"}},{"ruleId":"D2","level":"warning","message":{"text":"command.ParsePathPerms (cognitive 18): command.ParsePathPerms has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3 (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/app/master/command/clifvparser.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d1af7d4bcccf265166571ac68e9fde7ba3c72c28f66a561a489d3637d9d2fd"}},{"ruleId":"D2","level":"warning","message":{"text":"internalbuilder.layerFromDir (cognitive 18): internalbuilder.layerFromDir has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 2 (nesting depth added 2). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 281). 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/imagebuilder/internalbuilder/engine.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2412841d6baa7720c34a09c2048fff84d1c5ea53ed8072c766f00a80d927cda"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.Read (cognitive 18): Client.Read has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/ipc/channel/channel.go"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9201cbdcf869d4bdf2c7c64083bccc9dc49453af1b8072618fd27f7bfff75a"}},{"ruleId":"D2","level":"warning","message":{"text":"system.NewOSShells (cognitive 18): system.NewOSShells has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 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/system/os_shells.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"810d75af9f5f8acad0d56820e8adb5d4f1b83a104d4f691df17c5c51a058a0c1"}},{"ruleId":"D2","level":"warning","message":{"text":"fsutil.PreparePostUpdateStateDir (cognitive 18): fsutil.PreparePostUpdateStateDir has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1, loops 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/util/fsutil/fsutil.go"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bf0457dfbc3b61f698f778e54d3c807d29426134c21795f48a8c2b4682a210"}},{"ruleId":"D2","level":"warning","message":{"text":"build.SourceToOutputImageLabels (cognitive 17): build.SourceToOutputImageLabels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (6 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/app/master/command/build/image.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6e266d1c245998883fe4b1f99d4868e8d23d0d250eee05042d62e9ba2cc13f"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.completeNamespace (cognitive 17): debug.completeNamespace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 1 (4 pts), boolean chains 3 (nesting depth added 9). 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/app/master/command/debug/prompt.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9e794b2ef3772d9cbb9d2de9de62de9ace1e9dc56bd06d8c145fcb56eb1609"}},{"ruleId":"D2","level":"warning","message":{"text":"xray.getDetectOpParam (cognitive 17): xray.getDetectOpParam has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 2 (4 pts), boolean chains 2, loops 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/app/master/command/xray/cli.go"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"681b11abd6851f7eab8fb16bd3b943166deabfc758918878a095948bafe30bd4"}},{"ruleId":"D2","level":"warning","message":{"text":"WebsocketClient.Connect (cognitive 17): WebsocketClient.Connect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 85). 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/app/master/probe/http/wsclient.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"297a3ddcb6db8504b5a4cd0ffc7c890a7c752c7098eb35016dd61d3134117ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"seccomp.GenProfile (cognitive 17): seccomp.GenProfile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/security/seccomp/seccomp.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e148f967eba8949a6c6ce15a4d370f41d551a1cba458968385b0e2289836d971"}},{"ruleId":"D2","level":"warning","message":{"text":"channel.NewCommandClient (cognitive 17): channel.NewCommandClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (2 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/ipc/channel/channel.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92e774d5fd48c7f58c0811fddfff8b2c8027301324ff6a6d04b0403acd37ba3"}},{"ruleId":"D2","level":"warning","message":{"text":"EventServer.Publish (cognitive 17): EventServer.Publish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 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/ipc/channel/channel.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"73759438f10ce0ef5f758227b4e241e4cc62605f5cd13a48bf8385c1847f98dc"}},{"ruleId":"D2","level":"warning","message":{"text":"compose.buildImage (cognitive 16): compose.buildImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3, boolean chains 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/compose/execution.go"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"506360f7f2378348d795cbf8068aee08140e455d260cd3724fccce5b1f4b0437"}},{"ruleId":"D2","level":"warning","message":{"text":"pod.fatContainerCmd (cognitive 16): pod.fatContainerCmd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f34e4e549c73ce967eeb93027b4d530f7474484e405dd42df6ce5cb6e7a7ca"}},{"ruleId":"D2","level":"warning","message":{"text":"sensor.EnsureLocalBinary (cognitive 16): sensor.EnsureLocalBinary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 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/app/master/inspectors/sensor/sensor.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f8b2cf8b3fe445741e095d81a6783b4940af5b8c59f505059b26763fc42186"}},{"ruleId":"D2","level":"warning","message":{"text":"processor.GetCurrentPaths (cognitive 16): processor.GetCurrentPaths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, loops 1 (nesting depth added 3). 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 310). 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/app/sensor/artifact/artifact.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4345dc054bf7aae549a192ab2b31431b622e70e29ab7ef98e12110d3fecbeddc"}},{"ruleId":"D2","level":"warning","message":{"text":"dockerutil.ListImages (cognitive 16): dockerutil.ListImages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerutil/dockerutil.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"babed17d91b964f1a7ae1d034969fbc933048c400ff229bf27fde8c60447df67"}},{"ruleId":"D2","level":"warning","message":{"text":"Command.saveInfo (cognitive 16): Command.saveInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/report/command_report.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fc5800ed550d3aed80b684589f407da319f387c292fe0fe68c4ee9ecbe03d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dockerimage.LoadPackage: FunctionTooLong \u2014 LoadPackage runs 582 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 482 over it, 5.82\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/docker/dockerimage/dockerimage.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4befe7105675cb9936583576947adf7d8db1ec2e428f94876f46fd3c25269e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: artifact/artifact.go: FileTooLong \u2014 2151 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1651 over it, 4.30\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/app/sensor/artifact/artifact.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45caa519d32a11017bd93b0d6623fbaea4cefa70f1897d7aed95d3d8f0e1a0b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: debug.HandleKubernetesRuntime: FunctionTooLong \u2014 HandleKubernetesRuntime runs 378 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 278 over it, 3.78\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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ab3add86ad8c1412e1350a065f83f78ed6bbcec8bdb901828c37a9424515e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Inspector.RunContainer: MethodTooLong \u2014 RunContainer runs 365 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 265 over it, 3.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eaf58010433bcd0013bb0cc0d3ef70011a7b8204946af67ec62a37e8bae1ff5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: profile.OnCommand: FunctionTooLong \u2014 OnCommand runs 340 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 240 over it, 3.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/profile/handler.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3bbe23ad526cd432cd2cfa1ce7776ff61152ae55a625859cbdd0233edcbb93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dockerimage/dockerimage.go: FileTooLong \u2014 1498 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 998 over it, 3.00\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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"505f0a3daa61a9dace55b238556fccf2479421d0a5c5ce090b11a089dea90acd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Inspector: TooManyFields \u2014 70 stored fields beside 12 methods. The bar is 30 stored fields; this is 40 over it, 2.33\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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7f2573c21268644402caab6a6881d76b08b77374f91a3f59464979ba4428c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomProbe.Start: MethodTooLong \u2014 Start runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\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/app/master/probe/http/custom_probe.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e496d4ad20e5e1646277aff3403d0decf3470e7890a4baba5cfbfc10c012f603"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compose/execution.go: FileTooLong \u2014 1116 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 616 over it, 2.23\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/app/master/compose/execution.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c6a0606bf74f9deaa14507c74c83f43c0935f6cb58895ac757d6e2a134c0f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: parser.FromFile: FunctionTooLong \u2014 FromFile runs 206 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\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/docker/dockerfile/parser/parser.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"12410933c40bfd8d3dde5b22e8fe71fbc943e7c0bc848361407a25a16bd485ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.collect: MethodTooLong \u2014 collect runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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/monitor/ptrace/ptrace.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e6d607349eb71aee2b79708147d12dfaed9cb8a207f03034da29177b1261c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ptrace/ptrace.go: FileTooLong \u2014 962 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 462 over it, 1.92\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/monitor/ptrace/ptrace.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa18c1f827a3f31be93d63cf578865c17c9d53b2fdb9409af145a0b7d042e99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: container/container_inspector.go: FileTooLong \u2014 961 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: Inspector (13 blocks, 81-1425). The bar is 500 significant lines; this is 461 over it, 1.92\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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"225aed61ff51fa015a4c9654249d6e043041e441bf0c6ef7bf72382f90f594e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xray/handler.go: FileTooLong \u2014 919 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 419 over it, 1.84\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/app/master/command/xray/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3e4ae4b7024fe31200aa48bdc198c457842459b53ddbc30bb596941a193c7b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Inspector: ClassTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods, 13 blocks, lines 81-1425. The bar is 400 significant lines; this is 319 over it, 1.80\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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f906af33090db00c709052cebc2186d9c6755254178ee4dd8e5274cdfdcd411"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fsutil/fsutil.go: FileTooLong \u2014 883 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 383 over it, 1.77\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/util/fsutil/fsutil.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d9a9a51922567f5d9d2fdb4c8539985282e297c2be53b8f4d67d48ad1193ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dockerimage.layerFromStream: FunctionTooLong \u2014 layerFromStream runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"46651bf54a4328e5028e1cc4a25cd698732b75a48d27b1061aedbcc950015591"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: appbom.Get: FunctionTooLong \u2014 Get runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/appbom/appbom.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11281a93709bcf40d2058ab4a6324b5ea00265a60b41765a5686a2d70d649c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: debug/handle_kubernetes_runtime.go: FileTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 329 over it, 1.66\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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd18cebc868fd987538633534e58ff83b06b4ae91289848e04c359f5eaf2725"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: debug.HandleDockerRuntime: FunctionTooLong \u2014 HandleDockerRuntime runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead3a868adb6322d24e98ad6c625f1cee65a14ef61e7182db3b68500b6ae2c8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/cliflags.go: FileTooLong \u2014 767 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 267 over it, 1.53\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/app/master/command/cliflags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff3244c4098301a2812b2874aae3379689cf5738759c5fe30358577ebb4493d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: builder.NewImageBuilder: FunctionTooLong \u2014 NewImageBuilder runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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/app/master/builder/image_builder.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c91a0808925cf1959cfb784afd56ebb48b378052ba0b8fb0d277ece49d326a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: StartMonitor: TooManyFields \u2014 42 stored fields beside 1 method. The bar is 30 stored fields; this is 12 over it, 1.40\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/ipc/command/command.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5cadb0b69290c8513eede7ed71d6248b36676f94502869f8d070ee55003f3a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.Build: MethodTooLong \u2014 Build runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/imagebuilder/internalbuilder/engine.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d1d7784bbefd4af34963074932fe641347cbc07cb9a99f4d4bcc4f808f5b73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dockerutil/dockerutil.go: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 153 over it, 1.31\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/docker/dockerutil/dockerutil.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c3f7411145888fb0d18f2892a1b6e233e86acc9ccca3f672c0ab9b67a2a54f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: registry.OnImageIndexCreateCommand: FunctionTooLong \u2014 OnImageIndexCreateCommand runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/registry/handler_image_index.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66f54615c98b1fd9b9d45eeb80f10a283a7842dd31f3cb7e47c619d64c7beff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Execution.Start: MethodTooLong \u2014 Start runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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/app/master/container/execution.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"899899ef63d38103d237a425172f078488adf9464a91f2fc33bb95921e2d12d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reverse/reverse.go: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 110 over it, 1.22\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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a52ddf16103e54b54df8dd5236fe505d0c59ec5f94e1361e88f7d51ada6f6b7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: App: ClassTooLong \u2014 485 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods, 11 blocks, lines 124-987. The bar is 400 significant lines; this is 85 over it, 1.21\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/monitor/ptrace/ptrace.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"315d5a9ce2eced501fcff648fd06aa09ebac6fe3de39c9a9cc0a82f6b8b485fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: run.OnCommand: FunctionTooLong \u2014 OnCommand runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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/app/master/command/run/handler.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1760bfd0465d35b4f8f6145f516274e43edfe59dd08d507ff19bff3620a3656b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Instance.call: MethodTooLong \u2014 call runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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/vulnerability/epss/api/api.go"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c948222c8b7837e30d8e206ae254c42993b8fe303bcc0754a8cc74b9933e6957"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: linter.Execute: FunctionTooLong \u2014 Execute runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/linter.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"99dedc4b3f02532652266df2531e3f49baa7efa413c467dc04df6ef625788c64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/clifvparser.go: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 over it, 1.04\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/app/master/command/clifvparser.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcd4761494f983bee55b41a818d0ba1b26501ce462391def7c93c6a0073dce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 36 shared lines): pkg/app/master/command/containerize/handler.go:25-81 | pkg/app/master/command/convert/handler.go:25-81 | pkg/app/master/command/debug/handler.go:27-119 | pkg/app/master/command/edit/handler.go:25-81 | pkg/app/master/command/images/handler.go:30-110 \u2014 These 5 members are variants of one another: a block of 36 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/containerize/handler.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"190cf07cc5105691f2a68bef1a58e4662f9971eb81bfa47cf507868a4f8ce15e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 29 shared lines): pkg/app/master/command/containerize/handler.go:25-81 | pkg/app/master/command/convert/handler.go:25-81 | pkg/app/master/command/edit/handler.go:25-81 | pkg/app/master/command/probe/handler.go:31-104 \u2014 These 4 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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/app/master/command/containerize/handler.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"581ba5a8985e8881a34096abeaaa947f33fc269aa34094ec0e93caaf6fbe7436"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): pkg/app/master/command/merge/handler.go:37-330 | pkg/app/master/command/probe/handler.go:31-104 | pkg/app/master/command/profile/handler.go:83-563 | pkg/app/master/command/registry/handler_copy.go:24-79 | pkg/app/master/command/registry/handler_image_index.go:33-224 | pkg/app/master/command/registry/handler_pull.go:32-124 | pkg/app/master/command/registry/handler_push.go:27-110 | pkg/app/master/command/registry/handler_server.go:30-152 | pkg/app/master/command/run/handler.go:36-203 | pkg/app/master/command/server/handler.go:24-75 | pkg/app/master/command/vulnerability/handler_tool_epss.go:32-154 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/merge/handler.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f02f4256688715a50a62dab3aff20b9c32591537d02813c777019ecab342f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): pkg/docker/dockerutil/dockerutil.go:211-264 | pkg/docker/dockerutil/dockerutil.go:266-357 | pkg/docker/dockerutil/dockerutil.go:419-464 | pkg/docker/dockerutil/dockerutil.go:466-504 | pkg/docker/dockerutil/dockerutil.go:511-625 | pkg/docker/dockerutil/dockerutil.go:669-717 | pkg/docker/dockerutil/dockerutil.go:719-796 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerutil/dockerutil.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9b0eb08befb0ca375a826181822517849a9f5f1eb7a06acc0e6397a9371ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): pkg/app/master/command/clifvparser.go:248-284 | pkg/app/master/command/clifvparser.go:476-531 | pkg/app/master/command/clifvparser.go:534-575 | pkg/app/master/command/clifvparser.go:767-803 | pkg/app/master/command/clifvparser.go:805-841 | pkg/app/master/command/clifvparser.go:851-885 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/clifvparser.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c692940708c7880f670b8d2efd7239b65bc10ccfdffd7f0c802d0539fa773c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): pkg/docker/dockerutil/dockerutil.go:106-142 | pkg/docker/dockerutil/dockerutil.go:144-209 | pkg/docker/dockerutil/dockerutil.go:366-401 | pkg/docker/dockerutil/dockerutil.go:876-913 | pkg/docker/dockerutil/dockerutil.go:915-952 | pkg/docker/dockerutil/dockerutil.go:977-1035 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerutil/dockerutil.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca0d975afb7792f36166c9528fbeeb6b9b622bf6be5070bc154ec9fd8563683"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): pkg/app/master/command/debug/prompt.go:81-105 | pkg/app/master/command/debug/prompt.go:107-138 | pkg/app/master/command/debug/prompt.go:140-195 | pkg/app/master/command/debug/prompt.go:197-276 \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/app/master/command/debug/prompt.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a49c886b2cf1275c2d093e8240846b98ec9985c54f96423f84471035cfb4b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): pkg/docker/dockerfile/ast/line_parsers.go:82-165 | pkg/docker/dockerfile/ast/split_command.go:31-120 \u2014 These two members are one piece of code written twice and then edited apart: 84 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/docker/dockerfile/ast/line_parsers.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fdb556f468966ca535022a3a68269e46aaeb9c31bc90d270441e3464f28428"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): pkg/app/master/command/debug/handle_kubernetes_runtime.go:753-794 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:898-940 \u2014 These two members are one piece of code written twice and then edited apart: 42 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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbeafd41d1874a76324be2712cb0638ec4d457b8531a58b0d291a247f345370"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): pkg/app/execontext.go:134-174 | pkg/app/execontext.go:332-373 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/execontext.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6be728412c4917bedef4d5a5546ebbfc3bbf8a08880b71a19adcbd01b3c5360"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): pkg/app/master/command/xray/cli.go:423-469 | pkg/app/master/command/xray/cli.go:471-514 | pkg/app/master/command/xray/cli.go:516-559 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 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/app/master/command/xray/cli.go"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27a5dfda29d73f247cef48ecca4a48545ad22ef4ac8249ee063b21cd0d24b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): pkg/app/master/command/clifvparser.go:286-317 | pkg/app/master/command/clifvparser.go:319-355 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/clifvparser.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64f22e190083d0cff08f510a88c9e111a90aa348c450d91b62c2eecde19d7f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): pkg/pdiscover/pevents_linux.go:185-227 | pkg/pdiscover/pevents_linux.go:229-258 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/pdiscover/pevents_linux.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d54faebfdf961369e1ca6e1dab927df275b04fc2ed3a7cdacc2e8988f82c9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): pkg/app/master/command/debug/prompt.go:11-56 | pkg/app/master/command/lint/prompt.go:10-46 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/debug/prompt.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"796080978d2f4683d075fdd8c8173a9a85f03ca0db29472a01778dd666cb0acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 34\u002B corresponding lines): pkg/docker/linter/check/id20010.go:35-68 | pkg/docker/linter/check/id20011.go:35-68 | pkg/docker/linter/check/id20012.go:40-78 | pkg/docker/linter/check/id20013.go:36-79 | pkg/docker/linter/check/id20015.go:36-80 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20010.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2ea536f8e7a7a00c8629978049074e2da4a335e84986646b4e539921690e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): pkg/app/master/command/containerize/cli.go:10-45 | pkg/app/master/command/convert/cli.go:10-45 | pkg/app/master/command/edit/cli.go:10-45 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 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/app/master/command/containerize/cli.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"76beb898e24fa71a248e0ebc75d944e32efdf2ad9080f829cb6c14b20632423c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): pkg/app/master/container/execution.go:582-614 | pkg/app/master/inspectors/container/container_inspector.go:1132-1159 \u2014 These two members are one piece of code written twice and then edited apart: 28 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/app/master/container/execution.go"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e041221972d3f0335627d443334a7f03ed70ecbb70d8780a55fb9799d135544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): pkg/app/master/probe/http/swagger.go:25-60 | pkg/app/master/probe/http/swagger.go:202-252 \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/app/master/probe/http/swagger.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9be3fe37eb8072808f53ee368970b25d30e3f92af701d2e7a43ae814cec3343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): pkg/launcher/launcher.go:21-48 | pkg/launcher/launcher.go:50-77 \u2014 These two members are one piece of code written twice and then edited apart: 28 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/launcher/launcher.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3295ac55dd3fbf329a3bbb3c196f446bc2bd53edfa2cf1242c1d1101bf58083d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): pkg/docker/dockerimage/dockerimage.go:2135-2172 | pkg/docker/dockerimage/dockerimage.go:2174-2208 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerimage/dockerimage.go"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5acf09fc1c8878bc12ed0c2220e6c8b64e319630708e3bc628a21d70c704aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): pkg/ipc/channel/channel.go:505-542 | pkg/ipc/channel/channel.go:544-586 \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":"pkg/ipc/channel/channel.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdbdf521d5f02a7d7c6baa5e5ec7980e4934ed6f96b03890fd64d0fa645e24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): pkg/app/master/command/install/cli.go:9-51 | pkg/app/master/command/update/cli.go:12-35 \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/app/master/command/install/cli.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e99159038c79765d55289d41cc9d9e0c45a2e7effe1a1cc7f4820eaaf853b3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): pkg/util/fsutil/fsutil.go:673-707 | pkg/util/fsutil/fsutil.go:772-809 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/fsutil/fsutil.go"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"b081e0221d96aa85535108a26ffdd89691446577d21e7d47cb783cb57da828b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): pkg/app/sensor/artifact/artifact.go:2815-2838 | pkg/app/sensor/detector/filetype/filetype.go:32-59 \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/app/sensor/artifact/artifact.go"},"region":{"startLine":2815}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd30b68db9164342dd308d0edb5bb5a853113b35c6255094a58529f338251381"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): pkg/pdiscover/pevents_linux.go:112-141 | pkg/pdiscover/pevents_linux.go:143-172 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/pdiscover/pevents_linux.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eac7050128ea42baae3485b43c2003d5acfdc59037cfefcbfc351215ffbcb2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): pkg/app/master/command/common.go:105-135 | pkg/app/master/inspectors/container/container_inspector.go:1433-1464 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/common.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dc13b42259dce9525ce5ae09d574ed90808e31b489d1abc39675f5340f86da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): pkg/docker/linter/check/id20004.go:33-63 | pkg/docker/linter/check/id20006.go:34-65 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20004.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de49ab87b45e9a54117fb7c9e16071ca01a7e2dcb296bf74c6fe29857b628c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): pkg/app/master/command/registry/handler_push.go:127-150 | pkg/app/master/command/registry/handler_push.go:157-181 \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/app/master/command/registry/handler_push.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"512ce857032a75a4d4ec2df854722bb8e1f8810982263e3515ec066724f66d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): pkg/app/execontext.go:176-202 | pkg/app/execontext.go:204-231 | pkg/app/execontext.go:233-259 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 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/app/execontext.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cae39c8daf9e0d9d9b811fef62a8229917ee478be125c6bcc75fa64cfbc65ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): pkg/app/master/compose/execution.go:818-840 | pkg/app/master/compose/execution.go:842-868 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/compose/execution.go"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fad8b0275b5144a0d0c41639d2c5dbbb9fc069c9703d25f1ddd259d3df27350"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): pkg/vulnerability/epss/api/api.go:177-197 | pkg/vulnerability/epss/api/api.go:293-313 \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/vulnerability/epss/api/api.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4899c3718da49465ac4b9902d9588ab9214f07fb53d3312858828c93f1cfb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 26\u002B corresponding lines): pkg/docker/linter/check/id20003.go:33-60 | pkg/docker/linter/check/id20007.go:33-60 | pkg/docker/linter/check/id20008.go:35-60 | pkg/docker/linter/check/id20009.go:33-58 | pkg/docker/linter/check/id20016.go:33-65 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20003.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2b05b52ce57ebfe3e969e9c39a5fee5c1b1fb385e374a1c64cac267791fcca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): pkg/pdiscover/pevents.go:43-63 | pkg/pdiscover/pevents.go:66-85 \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/pdiscover/pevents.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0a5ade0eafe52a0d6758d30238d80f4bb499dce83c61f34e1631fa23145a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): pkg/vulnerability/epss/client/client.go:115-138 | pkg/vulnerability/epss/client/client.go:161-179 | pkg/vulnerability/epss/client/client.go:200-218 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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/vulnerability/epss/client/client.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d54021c4fbd7e793935d60b9c75d0ae0a10943d9079564c30e0d6c9a36a013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/app/master/command/vulnerability/handler_tool_epss.go:156-173 | pkg/app/master/command/vulnerability/handler_tool_epss.go:224-245 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/vulnerability/handler_tool_epss.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6aaf85969ec6f09ecaa705a2189eed736352044e70b4a95c6b8752188bf718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/app/master/command/images/handler.go:112-128 | pkg/app/master/command/vulnerability/handler_tool_epss.go:175-191 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/images/handler.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb88ada25b181b78efd220b5683e55d9740999812f8c13e5b804aeca54891af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): pkg/app/master/command/install/handler.go:139-159 | pkg/app/master/update/update.go:317-337 \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/app/master/command/install/handler.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"01974fed8473915dc7e8ab868305ba3a89ea6469631ecbff7992727ed2e25ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/app/master/command/cliprompt.go:473-490 | pkg/app/master/command/cliprompt.go:492-509 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/cliprompt.go"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe03e4a9f0bd8259cb412080420a5211175a3f5aaa950c5dd353793fd549265"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/app/master/command/debug/handle_kubernetes_runtime.go:592-608 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:654-673 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb51503d5cb3be0aff575980a6a70ad86de5cb79c001d0ac1eec195f3c4a343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): pkg/app/master/command/appbom/cli.go:10-33 | pkg/app/master/command/images/cli.go:11-37 | pkg/app/master/command/server/cli.go:10-33 | pkg/app/master/command/version/cli.go:10-35 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/appbom/cli.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de5ceb8aec2807729009863723c1ec7a4ff675be517efa87dcbc123d71afca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): pkg/sysidentity/sysidentity.go:286-304 | pkg/sysidentity/sysidentity.go:485-503 | pkg/sysidentity/sysidentity.go:590-608 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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/sysidentity/sysidentity.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac5823fec0e878d993275895ab0e12165cf440fa64bc4db685ffa32d254c159"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): pkg/app/sensor/monitor/fanotify/monitor.go:89-111 | pkg/app/sensor/monitor/ptrace/monitor.go:59-85 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"da31460453801450c97057e57ef53476d318b678dc217b46e0d390528ef715d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): pkg/app/master/command/install/handler.go:116-136 | pkg/app/master/update/update.go:296-315 \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/app/master/command/install/handler.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfb3fc18656df8d703dde495bdf36a017330012178786633268343286a2bffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/app/master/command/debug/handle_kubernetes_runtime.go:610-626 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:675-691 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a24e2b07d304d441a3292a0b2e2eea0ea83ea15410bdb3156af385b2ef8fae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/app/master/inspectors/container/container_inspector.go:1112-1130 | pkg/app/master/inspectors/pod/pod_inspector.go:472-489 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0551c96107b4bfbdd9fd431a35325dcd0b83074bc26254cb6a049c2536aeb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): pkg/monitor/ptrace/ptrace.go:989-1006 | pkg/monitor/ptrace/ptrace.go:1008-1023 \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/monitor/ptrace/ptrace.go"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"feacc77c71d880063550d367781175f04b46195013d26d6ad0550dd2b5c9afc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/app/execontext.go:53-69 | pkg/app/execontext.go:71-87 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/execontext.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb37ea1fa2b004ada15d7544b58a9da291ab6c55934c3430791734a6da53b5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/vulnerability/epss/client/client.go:143-156 | pkg/vulnerability/epss/client/client.go:183-196 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/vulnerability/epss/client/client.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c087fe24444c9f826b8e4ac88a673ed7d0e3da8029f39913f8e9af53bf30b10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/app/master/command/install/prompt.go:9-21 | pkg/app/master/command/update/prompt.go:9-21 \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/app/master/command/install/prompt.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bbd726d73f7433d3e1ca3c7d9658f9c114df48523140c73003baf7381f323c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/app/sensor/controlled/controlled.go:65-81 | pkg/app/sensor/standalone/standalone.go:65-98 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/controlled/controlled.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3e1056a21faa93af12fa71dee39722d8c75ce7f341f0f9402fb1bf8f961e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/app/master/command/clifvparser.go:206-223 | pkg/app/master/command/debug/cli.go:73-91 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/clifvparser.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6ab92a044e5bfed657ea53d16b1094454675dc8a6f10f8342217bcec2f1832"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/app/master/compose/execution.go:1588-1601 | pkg/app/master/compose/execution.go:1738-1755 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/compose/execution.go"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7600da9dff32a3fe59a2c65abef425878677877323210596ae735eb7ef406ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/app/master/inspectors/container/container_inspector.go:1398-1409 | pkg/app/master/inspectors/pod/pod_inspector.go:691-702 \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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d655708854295f14a350316fee85dd971a8de0a1186d42a7abcddf448d5686e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): pkg/docker/linter/check/id10002.go:30-46 | pkg/docker/linter/check/id20001.go:30-42 | pkg/docker/linter/check/id20002.go:30-42 \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/docker/linter/check/id10002.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf6bd8150ec84b643d083b47f84bad040ccef06dc6f580d4e7c5d59bc319742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): pkg/sysidentity/sysidentity.go:198-205 | pkg/util/jsonutil/jsonutil.go:16-25 \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/sysidentity/sysidentity.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea2b9aeb4ccdcff8bf20debad65168179ddfdb2326d600cf1a194a2f1426817"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): pkg/app/sensor/controlled/controlled.go:42-52 | pkg/app/sensor/standalone/standalone.go:51-63 \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/app/sensor/controlled/controlled.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5d8c927349167dda35fdd699c1f1b6e85390f97093a00a140ce745d7f82b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): pkg/app/master/command/debug/handle_kubernetes_runtime.go:315-351 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:553-589 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/debug/handle_kubernetes_runtime.go:315\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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3bc9af8d93c54ebe05ac139883607289b3898d60f5ac57683492fe834f5c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): pkg/app/master/command/debug/handle_docker_runtime.go:57-89 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:161-193 \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/app/master/command/debug/handle_docker_runtime.go:57\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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"07907ed655e89f1e011585803bfcdd8759cf3c8f340e247e5ba31dab32258d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): pkg/app/master/compose/execution.go:37-65 | pkg/app/master/container/execution.go:30-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/compose/execution.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc65eeb6fe61b0a197476a49eaaaad3c3e7a809a36bc8c26a5bf44302eaebf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): pkg/app/master/command/debug/handle_kubernetes_runtime.go:754-781 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:899-926 \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/app/master/command/debug/handle_kubernetes_runtime.go:754\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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf71c8c16ce836d463f57f0b70b4a99e91fbbb0ee7f3ac2cae113bbeaa62a28c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): pkg/docker/linter/check/id20012.go:52-78 | pkg/docker/linter/check/id20013.go:53-79 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20012.go\u0060 and \u0060pkg/docker/linter/check/id20013.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20012.go:52\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20012.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"84207e55e696e881780e9e1ca8dbe88a5b0b0ae435b498af0ccb7407e9e1be37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): pkg/monitor/ptrace/ptrace.go:294-318 | pkg/monitor/ptrace/ptrace.go:345-369 \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/monitor/ptrace/ptrace.go:294\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/monitor/ptrace/ptrace.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d127a929a856d673e24b69e04b69f0d4ff6589d6ef976d975b2a6a18ec91842a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): pkg/vulnerability/epss/api/api.go:246-268 | pkg/vulnerability/epss/api/api.go:329-353 \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/vulnerability/epss/api/api.go:246\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/vulnerability/epss/api/api.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee1c3e6a7f4c41b8f932f51c1205fe93849264c096c682e5b0022ca0043c2e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): pkg/docker/linter/check/id20018.go:38-61 | pkg/docker/linter/check/id20021.go:38-61 | pkg/docker/linter/check/id20022.go:50-73 \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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20018.go:38\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/docker/linter/check/id20018.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"12390617fbbc99ea0002bd1896c8a24c991d748ce7a5fd0d7cca19084cb66ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): pkg/app/master/command/clifvparser.go:287-310 | pkg/app/master/command/clifvparser.go:320-343 \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/app/master/command/clifvparser.go:287\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/app/master/command/clifvparser.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a5355fe23c634b99143a4482bfc2cf26759d024dd48e6f089ac52f06d93baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): pkg/app/master/command/containerize/cli.go:22-45 | pkg/app/master/command/convert/cli.go:22-45 \u2014 \u0060pkg/app/master/command/containerize/cli.go\u0060 and \u0060pkg/app/master/command/convert/cli.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/cli.go:22\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/containerize/cli.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a312fbdeba12082edf0a8978869fd000766c676790aa1ed8c009662bce9deb3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:2139-2162 | pkg/docker/dockerimage/dockerimage.go:2178-2201 \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/docker/dockerimage/dockerimage.go:2139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also 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/docker/dockerimage/dockerimage.go"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2bce1516c11b9ebb578862b5e4ae9cbb8007d36c6c7c6478f79ed7f0f5e245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): pkg/pdiscover/pevents_linux.go:113-136 | pkg/pdiscover/pevents_linux.go:144-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/pdiscover/pevents_linux.go:113\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/pdiscover/pevents_linux.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8cd908c28519e4035adfb78e75e58a68cc18fbc0180d7d513efdc6e451b29e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 6): pkg/app/master/command/clifvparser.go:251-272 | pkg/app/master/command/clifvparser.go:480-501 | pkg/app/master/command/clifvparser.go:538-559 | pkg/app/master/command/clifvparser.go:770-791 | pkg/app/master/command/clifvparser.go:808-829 | pkg/app/master/command/clifvparser.go:854-874 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also 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/app/master/command/clifvparser.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfe529d13decfac57b739d023e1a96b5e6a908b39eb00670065f5c730a527bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): pkg/app/master/command/debug/handle_docker_runtime.go:117-138 | pkg/app/master/command/debug/handle_docker_runtime.go:158-179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebb7c8f5009a2871b8ae43dda5f26176fcf4be95a38cf240e14e8f5817b7261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): pkg/app/master/builder/image_builder.go:72-92 | pkg/app/master/builder/image_builder.go:155-175 \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/app/master/builder/image_builder.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":"pkg/app/master/builder/image_builder.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"af02830f99548d3e4e1fa9bd0222c7cc3fbbe069219063ff6092b80fdaa088da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): pkg/app/master/probe/http/swagger.go:40-60 | pkg/app/master/probe/http/swagger.go:230-252 \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/app/master/probe/http/swagger.go:40\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/app/master/probe/http/swagger.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf57f926350667277c51a5de3e15deb9dc60462d824f35a5d3f6c9413730a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): pkg/docker/linter/check/id20014.go:53-71 | pkg/docker/linter/check/id20015.go:62-80 | pkg/docker/linter/check/id20021.go:70-89 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20014.go\u0060 and \u0060pkg/docker/linter/check/id20015.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20014.go:53\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20014.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da877e536b44f31ff3994b1047e097d4c736913b4d574f4e06be18c3efc0f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): pkg/app/master/command/registry/handler_copy.go:38-56 | pkg/app/master/command/registry/handler_image_index.go:47-65 | pkg/app/master/command/registry/handler_pull.go:51-69 | pkg/app/master/command/registry/handler_push.go:41-59 \u2014 before extracting anything, compare \u0060pkg/app/master/command/registry/handler_copy.go\u0060 and \u0060pkg/app/master/command/registry/handler_image_index.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/registry/handler_copy.go:38\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/app/master/command/registry/handler_copy.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e67a7c02209849bbcb3dc8a2cf0947f12e3fd0c3d9d526a1a2e2a1df60b913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): pkg/docker/linter/check/id20010.go:45-63 | pkg/docker/linter/check/id20011.go:45-63 | pkg/docker/linter/check/id20014.go:47-65 | pkg/docker/linter/check/id20015.go:56-74 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20010.go\u0060 and \u0060pkg/docker/linter/check/id20011.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20010.go:45\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/docker/linter/check/id20010.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d94e60cb001f5cb7b1ea1527869a0a2c702026d50ef63a1da6e2aa40cbc9b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3): pkg/app/master/command/containerize/handler.go:32-75 | pkg/app/master/command/convert/handler.go:32-75 | pkg/app/master/command/edit/handler.go:32-75 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/handler.go:32\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/app/master/command/containerize/handler.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"744ac643db26ccd2ecc2410af54aa83043bbdc753572853527c6e2039329e02d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): pkg/docker/linter/check/id20010.go:51-68 | pkg/docker/linter/check/id20011.go:51-68 | pkg/docker/linter/check/id20017.go:60-78 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20010.go\u0060 and \u0060pkg/docker/linter/check/id20011.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20010.go:51\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/linter/check/id20010.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f134e231307fb693aaf777f04c2935fc7234079e882adf8b0020170fdaa4f841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): pkg/app/master/command/profile/handler.go:195-213 | pkg/app/master/command/xray/handler.go:218-236 \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/app/master/command/profile/handler.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f75a31a7ce0f268ada2d0bff150a4257fa78610024f27b1c929de21682af0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:1169-1187 | pkg/docker/dockerimage/dockerimage.go:1228-1246 \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/docker/dockerimage/dockerimage.go:1169\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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f7159f530f8c062038a983625abeee1288236f901ceae1e6e877c04303c820"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/app/master/command/probe/handler.go:51-68 | pkg/app/master/command/version/handler.go:30-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/app/master/command/probe/handler.go:51\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/app/master/command/probe/handler.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16dc55eb623f51388fdf2219ca238b5a0e63d7003bfd8ba006bc78cb65979b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): pkg/app/master/command/registry/handler_image_index.go:229-254 | pkg/app/master/command/registry/handler_pull.go:129-154 \u2014 before extracting anything, compare \u0060pkg/app/master/command/registry/handler_image_index.go\u0060 and \u0060pkg/app/master/command/registry/handler_pull.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/registry/handler_image_index.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18ef2b3df77dbd9fcb86de68880d3027de7539022bb453c0301e3c45d72701a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/app/master/container/execution.go:204-221 | pkg/app/master/inspectors/container/container_inspector.go:399-416 \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/app/master/container/execution.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"12cb03290334b374978c35c3065d3f2d3f94109876049a00d6bc3aa267b14356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): pkg/app/master/command/containerize/handler.go:42-58 | pkg/app/master/command/convert/handler.go:42-58 | pkg/app/master/command/debug/handler.go:64-80 | pkg/app/master/command/edit/handler.go:42-58 | pkg/app/master/command/images/handler.go:47-63 | pkg/app/master/command/run/handler.go:53-69 | pkg/app/master/command/server/handler.go:36-52 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/containerize/handler.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2df6033684c2686cb9560d5c3cb1ebebdfb3cf9fec357930bdb7d4b5971979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 6): pkg/docker/linter/check/id20010.go:50-65 | pkg/docker/linter/check/id20011.go:50-65 | pkg/docker/linter/check/id20014.go:52-67 | pkg/docker/linter/check/id20015.go:61-76 | pkg/docker/linter/check/id20017.go:59-75 | pkg/docker/linter/check/id20021.go:69-85 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20010.go\u0060 and \u0060pkg/docker/linter/check/id20011.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20010.go:50\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/docker/linter/check/id20010.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"194ae11f0c5d0bd75a4ca256a2c2c19982530aa4065be8c9336e16b0e1fd33f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): pkg/app/master/command/appbom/cli.go:17-33 | pkg/app/master/command/images/cli.go:21-37 | pkg/app/master/command/server/cli.go:17-33 \u2014 \u0060pkg/app/master/command/appbom/cli.go\u0060 and \u0060pkg/app/master/command/server/cli.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/appbom/cli.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edf4e7e5c7596653037d573b290b3e50856451677cd301134419bfe894aca4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/app/master/command/debug/prompt.go:228-244 | pkg/app/master/command/debug/prompt.go:256-272 \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/app/master/command/debug/prompt.go:228\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/app/master/command/debug/prompt.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b7a1ed08111ac7773fc71b15a954b780318343a21ee9da13e5837e63efa9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): pkg/app/master/compose/execution.go:1022-1037 | pkg/app/master/compose/execution.go:1085-1101 \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/app/master/compose/execution.go"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e7156aeabeccbe0c70fab5bac8b0a9ca895185fbd94f9f5023c567dc403630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:1209-1225 | pkg/docker/dockerimage/dockerimage.go:1318-1334 \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/docker/dockerimage/dockerimage.go:1209\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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05f41c18d13a0d917de094ccd8c88e5e84358f59cc23f73768ec95c1b44f6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/launcher/launcher.go:22-38 | pkg/launcher/launcher.go:51-67 \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/launcher/launcher.go:22\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/launcher/launcher.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdd2c30d98402d8eeea6d460321ca3f45bf2da35c30df5bb47423bf708c9718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/util/fsutil/fsutil.go:719-735 | pkg/util/fsutil/fsutil.go:774-790 \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/fsutil/fsutil.go:719\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/fsutil/fsutil.go"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa21341a979ad40d777e236a90d34bc42fb6b45f44fd9735bf6664fa04c750c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): pkg/app/master/command/containerize/handler.go:40-55 | pkg/app/master/command/convert/handler.go:40-55 | pkg/app/master/command/debug/handler.go:62-77 | pkg/app/master/command/edit/handler.go:40-55 | pkg/app/master/command/images/handler.go:45-60 | pkg/app/master/command/merge/handler.go:58-73 | pkg/app/master/command/run/handler.go:51-66 | pkg/app/master/command/server/handler.go:34-49 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/handler.go:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/app/master/command/run/handler.go:48\u0060 calls \u0060Sprintf\u0060 and \u0060pkg/app/master/command/images/handler.go:41\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/app/master/command/containerize/handler.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1af15e432218bc69bde472705e0fdc94652cfc36c086551b73585a0578b3ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): pkg/app/master/command/containerize/handler.go:48-63 | pkg/app/master/command/convert/handler.go:48-63 | pkg/app/master/command/edit/handler.go:48-63 | pkg/app/master/command/profile/handler.go:107-122 | pkg/app/master/command/registry/handler_copy.go:46-61 | pkg/app/master/command/registry/handler_pull.go:59-74 | pkg/app/master/command/run/handler.go:59-74 | pkg/app/master/command/server/handler.go:42-57 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/handler.go:48\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/containerize/handler.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6214b86a77ab626772968de4fb4e19b18afc3cf9e35fc49ddd300a825c9c59bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): pkg/app/master/command/containerize/handler.go:35-50 | pkg/app/master/command/convert/handler.go:35-50 | pkg/app/master/command/edit/handler.go:35-50 | pkg/app/master/command/probe/handler.go:42-57 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/handler.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/app/master/command/containerize/handler.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a28b1b960c0956e5e750b99e30118ce8c7a9e2157c05cf72f61a15b7c22cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): pkg/app/master/command/debug/handler.go:70-85 | pkg/app/master/command/images/handler.go:53-68 | pkg/app/master/command/registry/handler_image_index.go:55-70 | pkg/app/master/command/registry/handler_push.go:49-64 \u2014 \u0060pkg/app/master/command/debug/handler.go\u0060 and \u0060pkg/app/master/command/images/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/debug/handler.go:70\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/app/master/command/debug/handler.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"faebba51f86d38225277140e5e794539a16f94a7f14b93bed5ee3b0791260314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): pkg/docker/linter/check/id20012.go:57-72 | pkg/docker/linter/check/id20013.go:58-73 | pkg/docker/linter/check/id20016.go:47-62 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20012.go\u0060 and \u0060pkg/docker/linter/check/id20013.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20012.go:57\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/docker/linter/check/id20012.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"9551ea0e0cdc84af68f26e2a8593d993f4a893ec876e3187ef241dbdf6a2022e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): pkg/app/execontext.go:151-165 | pkg/app/execontext.go:350-365 \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/app/execontext.go:151\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060data\u0060 in one and \u0060ref *Output) Info(infoType\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/execontext.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f6a97705d0e5d5563e71227fab1a8f0589c0e07efb96158239643008734399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/app/master/command/debug/handle_kubernetes_runtime.go:234-249 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:268-283 \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/app/master/command/debug/handle_kubernetes_runtime.go:234\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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a5274a88cbfea76dce97d97ad2ebdf7583b616c9ab6d8f6dc62e37972ca6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:323-338 | pkg/app/sensor/artifact/artifact.go:2294-2309 \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/app/sensor/artifact/artifact.go:323\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/app/sensor/artifact/artifact.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"967f52039e3f69f12df3cb72e1787af2c5fa11f0865e61a0a1b3efe50b1468aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:1183-1198 | pkg/app/sensor/artifact/artifact.go:1231-1246 \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/app/sensor/artifact/artifact.go"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"077fbf1bc9cd1af54a81370b2334b4b073a2cb33005bdac54545a1d2f5e2b195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 7): pkg/app/master/command/appbom/cli.go:14-25 | pkg/app/master/command/containerize/cli.go:14-25 | pkg/app/master/command/convert/cli.go:14-25 | pkg/app/master/command/edit/cli.go:14-25 | pkg/app/master/command/images/cli.go:15-29 | pkg/app/master/command/server/cli.go:14-25 | pkg/app/master/command/version/cli.go:14-25 \u2014 \u0060pkg/app/master/command/appbom/cli.go\u0060 and \u0060pkg/app/master/command/server/cli.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/appbom/cli.go:14\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/app/master/command/appbom/cli.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35857c3f3bc782dcbbed654e5fbac1aae7fa6d6ac9cef6ebde08a9f636aa4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): pkg/app/master/command/containerize/handler.go:67-81 | pkg/app/master/command/convert/handler.go:67-81 | pkg/app/master/command/debug/handler.go:105-119 | pkg/app/master/command/edit/handler.go:67-81 | pkg/app/master/command/images/handler.go:96-110 | pkg/app/master/command/lint/handler.go:105-119 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/handler.go:67\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/containerize/handler.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0f0c083c4e8b0b701eb6a565d6f4868883888322bbd1676b7119b94c1f0b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): pkg/docker/dockerutil/dockerutil.go:268-282 | pkg/docker/dockerutil/dockerutil.go:421-435 | pkg/docker/dockerutil/dockerutil.go:721-735 \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/docker/dockerutil/dockerutil.go:268\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/docker/dockerutil/dockerutil.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2637082158e79140fbcf1bd8c6d05915e667128c94f8e31d48a6eb3d7e7a4ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/app/master/command/edit/cli.go:22-36 | pkg/app/master/command/profile/cli.go:91-105 \u2014 \u0060pkg/app/master/command/edit/cli.go\u0060 and \u0060pkg/app/master/command/profile/cli.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/edit/cli.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09d8a73e7d30a1c2203c54a97dcbb88fa24278b54bfdf9c23e033d67671aa56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/app/master/probe/http/custom_probe.go:568-582 | pkg/app/master/probe/http/swagger.go:374-388 \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/app/master/probe/http/custom_probe.go:568\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/app/master/probe/http/custom_probe.go"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28da6f51de5ee4b4c47022fa62c8b640508d0b8168df43803cb14dd08b87f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/app/master/security/apparmor/apparmor.go:45-59 | pkg/app/master/security/seccomp/seccomp.go:67-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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/app/master/security/apparmor/apparmor.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba5ddfc057df3c0d408bc94538075f650bc10f5a0f8f4140405df82f9934ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:1624-1638 | pkg/app/sensor/artifact/artifact.go:1644-1658 \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/app/sensor/artifact/artifact.go:1624\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/app/sensor/artifact/artifact.go:1618\u0060 calls \u0060copyDirs\u0060, \u0060CertDirList\u0060, \u0060CACertDirList\u0060 and \u0060pkg/app/sensor/artifact/artifact.go:1642\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/app/sensor/artifact/artifact.go"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b193ff27b7da4c646a73b3832e5e900bc337fff6cf03720cdc237503b24cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 12): pkg/app/master/command/containerize/handler.go:47-60 | pkg/app/master/command/convert/handler.go:47-60 | pkg/app/master/command/debug/handler.go:69-82 | pkg/app/master/command/edit/handler.go:47-60 | pkg/app/master/command/images/handler.go:52-65 | pkg/app/master/command/profile/handler.go:106-119 | pkg/app/master/command/registry/handler_copy.go:45-58 | pkg/app/master/command/registry/handler_image_index.go:54-67 | pkg/app/master/command/registry/handler_pull.go:58-71 | pkg/app/master/command/registry/handler_push.go:48-61 | pkg/app/master/command/run/handler.go:58-71 | pkg/app/master/command/server/handler.go:41-54 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/handler.go:47\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/app/master/command/containerize/handler.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b910ab21acb56fc833fb52ffd780db9dde8cf6692db9a6f15e22fd708f41575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): pkg/app/master/command/merge/handler.go:316-329 | pkg/app/master/command/probe/handler.go:90-103 | pkg/app/master/command/registry/handler_copy.go:65-78 | pkg/app/master/command/registry/handler_image_index.go:210-223 | pkg/app/master/command/registry/handler_pull.go:110-123 | pkg/app/master/command/registry/handler_push.go:96-109 | pkg/app/master/command/registry/handler_server.go:93-106 | pkg/app/master/command/run/handler.go:189-202 | pkg/app/master/command/server/handler.go:61-74 | pkg/app/master/command/vulnerability/handler_tool_epss.go:140-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/merge/handler.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dafe67d98018031c379ca7f552239c95aceccef91de6a10eefa1a405e2ed5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): pkg/vulnerability/epss/data.go:197-210 | pkg/vulnerability/epss/data.go:242-255 | pkg/vulnerability/epss/data.go:264-277 \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/vulnerability/epss/data.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9881bab110d1ff1098b1e5de3b5dcc5fc2a013dd4697c036aa3d80ad996488c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/app/master/command/cliprompt.go:477-490 | pkg/app/master/command/cliprompt.go:496-509 \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/app/master/command/cliprompt.go:477\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/app/master/command/cliprompt.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7551e07af48da68d4c4a4aff16f52b20e5cde9e6e2e7077a7c69d828edf411a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/app/master/command/install/handler.go:140-153 | pkg/app/master/update/update.go:318-331 \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/app/master/command/install/handler.go:140\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/app/master/command/install/handler.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b77ee53746a3a8e6dfdc0083487cbd4835c3bcb8556f39dd2ea7bcca4c2d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/app/master/command/registry/handler_pull.go:74-87 | pkg/app/master/command/registry/handler_push.go:64-77 \u2014 before extracting anything, compare \u0060pkg/app/master/command/registry/handler_pull.go\u0060 and \u0060pkg/app/master/command/registry/handler_push.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/registry/handler_pull.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d750b9bb6b0009af3cf5ef62468e5dc1276bb85a536135e5381853fee3ce58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:2693-2705 | pkg/app/sensor/artifact/artifact.go:2719-2732 \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/app/sensor/artifact/artifact.go:2693\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/app/sensor/artifact/artifact.go"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d05b71f21d68f8ba27ca4f382f73c1a66075c26329206be59f2e06fb831fcfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/docker/dockerutil/dockerutil.go:329-343 | pkg/docker/dockerutil/dockerutil.go:769-782 \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/docker/dockerutil/dockerutil.go:329\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerutil/dockerutil.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"904e2d4e7872ec23d827aa8966e6a36d7f575f81bdd843752a357b3e436c7b12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): pkg/app/master/command/containerize/handler.go:53-65 | pkg/app/master/command/convert/handler.go:53-65 | pkg/app/master/command/edit/handler.go:53-65 | pkg/app/master/command/probe/handler.go:60-72 | pkg/app/master/command/registry/handler_copy.go:51-63 | pkg/app/master/command/registry/handler_pull.go:64-76 \u2014 \u0060pkg/app/master/command/containerize/handler.go\u0060 and \u0060pkg/app/master/command/convert/handler.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/handler.go:53\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/app/master/command/containerize/handler.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf05915f7c78ea0ec14bdcec73e0358bacc370e2f9e3f3549d35ece30e5cfdd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): pkg/docker/dockerutil/dockerutil.go:114-126 | pkg/docker/dockerutil/dockerutil.go:153-165 | pkg/docker/dockerutil/dockerutil.go:371-383 | pkg/docker/dockerutil/dockerutil.go:877-889 | pkg/docker/dockerutil/dockerutil.go:916-928 | pkg/docker/dockerutil/dockerutil.go:978-990 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/dockerutil/dockerutil.go:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/docker/dockerutil/dockerutil.go:141\u0060 calls \u0060ImageToIdentity\u0060, \u0060ListImages\u0060 and \u0060pkg/docker/dockerutil/dockerutil.go:112\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/docker/dockerutil/dockerutil.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4361797d92fe109b7a635e7280ed04d208fa3fb54492cb66d763f897c0ff2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): pkg/docker/dockerutil/dockerutil.go:271-283 | pkg/docker/dockerutil/dockerutil.go:424-436 | pkg/docker/dockerutil/dockerutil.go:512-524 | pkg/docker/dockerutil/dockerutil.go:681-693 | pkg/docker/dockerutil/dockerutil.go:724-736 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/dockerutil/dockerutil.go:271\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/docker/dockerutil/dockerutil.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"463537d17b8e9d34058b46e40dbfa95f027d1ced0e17589df18b553c77753ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): pkg/docker/linter/check/id20018.go:124-136 | pkg/docker/linter/check/id20019.go:51-63 | pkg/docker/linter/check/id20021.go:64-76 | pkg/docker/linter/check/id20022.go:79-91 \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 all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20018.go:124\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/docker/linter/check/id20018.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede4f1d9e4c34dccfedde177899bd21c032ec0d6e92f3ddb55690a21cd3738be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/command/debug/prompt.go:114-126 | pkg/app/master/command/debug/prompt.go:147-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/debug/prompt.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e9908f5d64a5e8f3b2165917d1cda1aacbd30bf0a97665f1627fde83570980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/command/registry/cli.go:203-215 | pkg/app/master/command/run/cli.go:109-121 \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/app/master/command/registry/cli.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc233fda6ef41705dce5eace00348d06faf08069608dad0ef7755ca0c7fea1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/command/registry/handler_pull.go:42-54 | pkg/app/master/command/run/handler.go:42-54 \u2014 before extracting anything, compare \u0060pkg/app/master/command/registry/handler_pull.go\u0060 and \u0060pkg/app/master/command/run/handler.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 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 \u0060pkg/app/master/command/registry/handler_pull.go:42\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/app/master/command/registry/handler_pull.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"450bec330a413d69c394d9e7069b9f8cdc6116600de29f6d15a55099f1e8d27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/probe/http/custom_probe.go:407-419 | pkg/app/master/probe/http/swagger.go:312-324 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/probe/http/custom_probe.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"287d12921c297f6b5871ceded21c8fe7bae18c241b84a79148c36cb555bb66f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/sensor/controlled/controlled.go:66-78 | pkg/app/sensor/standalone/standalone.go:66-78 \u2014 \u0060pkg/app/sensor/controlled/controlled.go\u0060 and \u0060pkg/app/sensor/standalone/standalone.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/controlled/controlled.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"96947b54151918eb70ed303d6e1ca29bab429d2bb06fd5833ce504440db36fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/sensor/controlled/controlled.go:153-165 | pkg/app/sensor/standalone/standalone.go:139-151 \u2014 \u0060pkg/app/sensor/controlled/controlled.go\u0060 and \u0060pkg/app/sensor/standalone/standalone.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/sensor/controlled/controlled.go:153\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/app/sensor/controlled/controlled.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b87d95596e09c0a159e5c44140259d9e44529eeecd7092def2a8b98cf17e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): pkg/app/sensor/controlled/controlled.go:210-218 | pkg/app/sensor/standalone/standalone.go:222-234 \u2014 \u0060pkg/app/sensor/controlled/controlled.go\u0060 and \u0060pkg/app/sensor/standalone/standalone.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/sensor/controlled/controlled.go:210\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/app/sensor/controlled/controlled.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8107b94f1516811758500043068d6cfe806c3d86e9ab1a140b189ca4acbc75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/pdiscover/pevents_linux.go:186-198 | pkg/pdiscover/pevents_linux.go:230-242 \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/pdiscover/pevents_linux.go:186\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/pdiscover/pevents_linux.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81bd09e573628770d28106de864077f38eeb71237458d3a0f3a27074240b62a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/util/fsutil/fsutil.go:674-686 | pkg/util/fsutil/fsutil.go:718-730 \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/util/fsutil/fsutil.go"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d52bca86620f90042afa8ac0dc99b4b8a29805842c14e1eed8c99329d08d071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): pkg/app/master/command/merge/handler.go:318-330 | pkg/app/master/command/probe/handler.go:92-104 | pkg/app/master/command/profile/handler.go:551-563 | pkg/app/master/command/registry/handler_copy.go:67-79 | pkg/app/master/command/registry/handler_image_index.go:212-224 | pkg/app/master/command/registry/handler_pull.go:112-124 | pkg/app/master/command/registry/handler_push.go:98-110 | pkg/app/master/command/registry/handler_server.go:95-106 | pkg/app/master/command/run/handler.go:191-203 | pkg/app/master/command/server/handler.go:63-75 | pkg/app/master/command/vulnerability/handler_tool_epss.go:142-154 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/merge/handler.go:318\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/merge/handler.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5d49d854dcd32864f957803e1321845b3aff5ba0a0a366dbe9dcf302ae1c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): pkg/docker/dockerutil/dockerutil.go:213-225 | pkg/docker/dockerutil/dockerutil.go:272-283 | pkg/docker/dockerutil/dockerutil.go:425-436 | pkg/docker/dockerutil/dockerutil.go:471-483 | pkg/docker/dockerutil/dockerutil.go:513-524 | pkg/docker/dockerutil/dockerutil.go:682-693 | pkg/docker/dockerutil/dockerutil.go:725-736 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/dockerutil/dockerutil.go:213\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerutil/dockerutil.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa643696ea8dce5c81d6824df8a3a32b9ea9f4d0f602e300a8376a6e1690426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): pkg/docker/linter/check/id20010.go:44-55 | pkg/docker/linter/check/id20011.go:44-55 | pkg/docker/linter/check/id20012.go:51-62 | pkg/docker/linter/check/id20013.go:52-63 | pkg/docker/linter/check/id20014.go:46-57 | pkg/docker/linter/check/id20015.go:55-66 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20010.go\u0060 and \u0060pkg/docker/linter/check/id20011.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20010.go:44\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/docker/linter/check/id20010.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9ba4c294842aa46613fced0772391b017d2e327f40b415e1d8033f48183503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/app/master/command/debug/prompt.go:82-93 | pkg/app/master/command/debug/prompt.go:108-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/debug/prompt.go:82\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/app/master/command/debug/prompt.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eac78ccd528dbea8a7ff3bd14e58b99f20e962339df7bda19eb992dcef587e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/app/master/command/clifvparser.go:604-614 | pkg/app/master/command/clifvparser.go:622-632 \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/app/master/command/clifvparser.go"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e31305eae8956aefeb3a152d90fadb3c1e35a9ac413fac99f8cf50bdd55c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:1312-1322 | pkg/app/sensor/artifact/artifact.go:1445-1455 \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/app/sensor/artifact/artifact.go:1312\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/app/sensor/artifact/artifact.go"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6759c5a6d31a01ba7c99339d3ba15bf8aa8a3f4740986670d51b4738f3446ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:1858-1868 | pkg/docker/dockerimage/dockerimage.go:1877-1887 \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/docker/dockerimage/dockerimage.go:1858\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerimage/dockerimage.go"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb978396264140f0901e094112db1dfdb0999fac27a5d6ff7c1340591200da82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/app/master/command/containerize/cli.go:20-29 | pkg/app/master/command/convert/cli.go:20-29 | pkg/app/master/command/edit/cli.go:20-29 | pkg/app/master/command/profile/cli.go:89-98 \u2014 \u0060pkg/app/master/command/containerize/cli.go\u0060 and \u0060pkg/app/master/command/convert/cli.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/containerize/cli.go:20\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/app/master/command/containerize/cli.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3debff5688bac59673c3df56d5906db4f986a20325ad927a5da61f961b1e44c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): pkg/util/fsutil/fsutil.go:548-557 | pkg/util/fsutil/fsutil.go:892-900 \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/fsutil/fsutil.go:548\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/util/fsutil/fsutil.go"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"af742affe5cc33b20256c6e7791f4213f7bd0b2f9617acbdb5cbffe7f282d9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/master/command/debug/prompt.go:144-152 | pkg/app/master/command/debug/prompt.go:203-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/app/master/command/debug/prompt.go:144\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/app/master/command/debug/prompt.go:201\u0060 calls \u0060GetCFValue\u0060 and \u0060pkg/app/master/command/debug/prompt.go:143\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/debug/prompt.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"22826630c86fefb6feb2ecce0181e12c2e8a14714a184ba98e0822e1ee027618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/master/command/probe/handler.go:64-72 | pkg/app/master/command/xray/handler.go:174-182 \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/app/master/command/probe/handler.go:64\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/app/master/command/probe/handler.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c888d035c755f1ebcb3f454e8764c21afa5ebc5b3e3bc23a06556fddea6e1e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/master/command/registry/handler_push.go:128-136 | pkg/app/master/command/registry/handler_push.go:158-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/registry/handler_push.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d092658d24e47737bed50a6852230e673d1d00cd1c9ab6bf1a1de4496f6e7d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/master/update/update.go:234-242 | pkg/app/master/version/version.go:186-194 \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/app/master/update/update.go:234\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/app/master/update/update.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5552bc065c2a70a16c1d34c5f64243d9359784dd63da40851b8a8a8f80f674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:1359-1367 | pkg/app/sensor/artifact/artifact.go:1450-1458 \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/app/sensor/artifact/artifact.go:1359\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/app/sensor/artifact/artifact.go:1358\u0060 calls \u0060Debugf\u0060 and \u0060pkg/app/sensor/artifact/artifact.go:1448\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6dfc76cc4faa199345b94d3518ae91a54c48c3a668b1ef414c523d9043c701e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:2830-2838 | pkg/app/sensor/detector/filetype/filetype.go:51-59 \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/app/sensor/artifact/artifact.go:2830\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/app/sensor/artifact/artifact.go"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"273ce75e760b0876cd2c918dc65b5fb2a92ce537db36039970aaaeab88b25b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/docker/dockerfile/parser/parser.go:119-127 | pkg/docker/dockerfile/parser/parser.go:160-168 \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/docker/dockerfile/parser/parser.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/docker/dockerfile/parser/parser.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fe22ae10b4f2cf2d430839c4e66c19f089ae72d3f9879f1ec767d05da90ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:695-703 | pkg/docker/dockerimage/dockerimage.go:832-840 \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89e65ee9cbfd1efdabcdeab8e2e95cd72f67022917805b39db614c3e544c0bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/app/master/command/debug/handle_kubernetes_runtime.go:306-313 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:545-552 \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/app/master/command/debug/handle_kubernetes_runtime.go:306\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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a26d3d26f8654855632152db8e0a23a11669ff12bb98fd1c56a6b6afa128dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/app/master/command/debug/handle_kubernetes_runtime.go:968-975 | pkg/app/master/command/debug/handle_kubernetes_runtime.go:1015-1022 \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/app/master/command/debug/handle_kubernetes_runtime.go:968\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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d4c9b49ccce7246cf958f47df6792902330c417a617ddad54c590a2de97a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/app/master/probe/http/custom_probe.go:103-110 | pkg/app/master/probe/http/custom_probe.go:184-191 \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/app/master/probe/http/custom_probe.go:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/probe/http/custom_probe.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"974e7c21c23148e569e382672f11a9d26a6ba81f2bf04e4f64d4c08cd3f4e74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/docker/linter/check/id20014.go:37-44 | pkg/docker/linter/check/id20015.go:37-44 \u2014 before extracting anything, compare \u0060pkg/docker/linter/check/id20014.go\u0060 and \u0060pkg/docker/linter/check/id20015.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/linter/check/id20014.go:37\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/docker/linter/check/id20014.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f144abcd8b7fbd3b200e8a716f1627f0f309740c3d4eb720b3146f01b241793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/pdiscover/pevents.go:52-59 | pkg/pdiscover/pevents.go:74-81 \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/pdiscover/pevents.go:52\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/pdiscover/pevents.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ab245c9301eaddbb941536ecb1ae6402b2565a060ae883fbf4c7c7a92536e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/app/master/command/xray/handler.go:1018-1024 | pkg/app/master/command/xray/handler.go:1118-1124 | pkg/app/master/command/xray/handler.go:1181-1187 \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/app/master/command/xray/handler.go:1018\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/app/master/command/xray/handler.go"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb941ec89627faaed7309f758b861c00ef77c6dd2744d2a66c2dd93dcc552e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): pkg/app/sensor/artifact/artifact.go:2242-2248 | pkg/app/sensor/artifact/artifact.go:2370-2376 | pkg/app/sensor/artifact/artifact.go:2384-2389 \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/app/sensor/artifact/artifact.go:2242\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/app/sensor/artifact/artifact.go"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3626d4273f1bca705662806509de70fd6b7664705d3c6f9c6d17048b6548489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:436-442 | pkg/docker/dockerimage/dockerimage.go:444-450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerimage/dockerimage.go"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c91a906ad595773125e2c7cb4049849a6835938d7f3aa40f32ccebd54c6bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/app/master/command/profile/cli.go:25-30 | pkg/app/master/command/run/cli.go:85-90 \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/app/master/command/profile/cli.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cab1922a2d6213fbb9b1f9fd46c2714f596bd3f5f24767835d2fc6e081965e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/app/master/command/install/cli.go:38-43 | pkg/app/master/command/update/cli.go:24-29 \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/app/master/command/install/cli.go:38\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/app/master/command/install/cli.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1a77cb34fbd55c5dfd74caf2ddaef9aac3bf1aba3a9a782c4f1fd651938900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/util/fsutil/fsutil.go:605-610 | pkg/util/fsutil/fsutil.go:624-629 \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/fsutil/fsutil.go:605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/util/fsutil/fsutil.go:612\u0060 calls \u0060Chown\u0060, \u0060Warnf\u0060 and \u0060pkg/util/fsutil/fsutil.go:630\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/util/fsutil/fsutil.go"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"57db76caaee0d564f3e56c8c018967e095a79ecc761fa25321997faceb324392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/command/registry/prompt.go:9-26 | pkg/app/master/command/vulnerability/prompt.go:9-21 \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/app/master/command/registry/prompt.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bde75d6ff4444853d8d648fbb089f52fd9476d4e1e8a31cf9c0b84a61a5a916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/app/master/inspectors/container/container_inspector.go:154-165 | pkg/app/sensor/artifact/artifact.go:933-944 \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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a6c4293f5031840cb92b330320f52a88aa1e3eb4e888ffb532aad955f23fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:247-255 | pkg/app/sensor/detector/filetype/filetype.go:22-30 \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/app/sensor/artifact/artifact.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f745f53184f04fb94582077d00fd28045603021f66d2910734a84e2fce8f27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:958-970 | pkg/docker/dockerimage/dockerimage.go:1424-1436 \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/app/sensor/artifact/artifact.go"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b88f52c2f24fb1dc9d422a4a50ed5b71c989f4009a5398259088f18e8b250c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/master/inspectors/container/container_inspector.go:1417-1425 | pkg/app/master/inspectors/pod/pod_inspector.go:291-299 \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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d51a99d37d79accf8491c7a48883191861d8b014228d84dee5ad97711dfba80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/inspectors/ipc/ipc.go:81-93 | pkg/app/sensor/ipc/ipc.go:47-59 \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/app/master/inspectors/ipc/ipc.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"629251abf1e0ad8ee8994533eda29b52c4e547bbb4838e954896c7ec8b4cbccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): pkg/system/syscalls_armf32.go:383-389 | pkg/system/syscalls_armf64.go:318-324 | pkg/system/syscalls_x86f32.go:472-478 | pkg/system/syscalls_x86f64.go:472-478 \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 all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/system/syscalls_armf32.go"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"0277ca5ede7e1f5fd08691deffffdbd3c3145c969f2f536c2b39e7d3254afc6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/util/fsutil/sysstat_darwin.go:7-16 | pkg/util/fsutil/sysstat_linux.go:7-16 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/fsutil/sysstat_darwin.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8049e1ff0cb2514e621ef0f835f9c43b8e5786d8d7685920dc47424d97498e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): pkg/app/master/command/xray/handler.go:1126-1144 | pkg/app/master/command/xray/handler.go:1189-1207 \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/app/master/command/xray/handler.go:1126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/xray/handler.go"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e8a13c5edd2c096d54db5378dec2f16d9645e0dcf2f48af776b11141341ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:1061-1078 | pkg/docker/dockerimage/dockerimage.go:1091-1108 \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/docker/dockerimage/dockerimage.go:1061\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerimage/dockerimage.go"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"877bf86b4183ade988474e71fec8889567b41d19ecadea00818d0f446780217a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:825-851 | pkg/docker/dockerimage/dockerimage.go:997-1022 \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/docker/dockerimage/dockerimage.go:825\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerimage/dockerimage.go"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"e724f51c61f04a05a89fea35c1b32240c63725d0cff3e36195dfd020286589a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:2294-2309 | pkg/app/sensor/artifact/artifact.go:3417-3433 \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/app/sensor/artifact/artifact.go:2294\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/app/sensor/artifact/artifact.go"},"region":{"startLine":2294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2f69868f0f0eb5807a84a541210786d36992aa2c3420bdab3bd0952c19db48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/app/sensor/monitor/fanotify/monitor.go:90-104 | pkg/app/sensor/monitor/ptrace/monitor.go:60-76 \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/app/sensor/monitor/fanotify/monitor.go:90\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/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15b2cd88898738864934744ef4ec318cc913a54ae500142d8f7c5f1bdbadd6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): pkg/docker/linter/check/id20005.go:48-62 | pkg/docker/linter/check/id20005.go:69-83 | pkg/docker/linter/check/id20005.go:89-103 | pkg/docker/linter/check/id20005.go:112-126 \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/docker/linter/check/id20005.go:48\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/docker/linter/check/id20005.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e238b674c73c62f4aecf5bdfb2d302663b7ba2cd76082e2498992a0296497559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/app/execontext.go:177-190 | pkg/app/execontext.go:234-247 \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/app/execontext.go:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060ref *Output) Prompt(data\u0060 in one and \u0060ref *Output) Message(data\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/execontext.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90c3587b0d8218d0c9b77549d89bd12713ec713d27980db937b14f9c29cabcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/docker/dockerutil/dockerutil.go:314-327 | pkg/docker/dockerutil/dockerutil.go:754-767 \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/docker/dockerutil/dockerutil.go:314\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/docker/dockerutil/dockerutil.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b64e80eaba12e0a3f05719c85a91d7e8cda661d7007b373f1d3fc87ed330d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/app/master/command/xray/handler.go:1097-1110 | pkg/app/master/command/xray/handler.go:1160-1173 \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/app/master/command/xray/handler.go:1097\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/app/master/command/xray/handler.go"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"f742ff82fb5aa67173d209e739f3babe54e95483a76bc6401be937b97b39fcbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/app/master/probe/http/custom_probe.go:520-533 | pkg/app/master/probe/http/swagger.go:346-356 \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/app/master/probe/http/custom_probe.go:520\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/app/master/probe/http/custom_probe.go"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1e0d2970bfc1ee94fa55e82464a90798c76375d2171785a7a1d33254b7a3e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/command/profile/handler.go:164-176 | pkg/app/master/command/xray/handler.go:188-200 \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/app/master/command/profile/handler.go:164\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/app/master/command/profile/handler.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9775da88ee3d5e47d86908cd6b7a46904736ba95042034f40bc6c6d2d6b04484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/app/master/command/profile/handler.go:129-141 | pkg/app/master/command/profile/handler.go:146-158 \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/app/master/command/profile/handler.go:129\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/app/master/command/profile/handler.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a835e1a3e48faa0cd201081c24db3644666b0090c1cefb67e77faf9b4e73e054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/app/master/command/probe/handler.go:42-52 | pkg/app/master/command/profile/handler.go:94-104 \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/app/master/command/probe/handler.go:42\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/app/master/command/probe/handler.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b604baa5118923c97a686ff6a7fb80c84762214b5a7d98360d2a2bbb7b82f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/app/master/command/xray/cli.go:432-442 | pkg/app/master/command/xray/cli.go:480-490 \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/app/master/command/xray/cli.go:432\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/app/master/command/xray/cli.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b90a9023f5311bf828de9032c65635cd3327512f3c219a6229a6f2ec9a4bc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): pkg/app/master/command/xray/cli.go:432-442 | pkg/app/master/command/xray/cli.go:480-490 | pkg/app/master/command/xray/cli.go:525-535 \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/app/master/command/xray/cli.go:432\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/app/master/command/xray/cli.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e428c9e6793f8ec6f56de2f6c51005a592a4d3b41d19d69c09e1cc9f55ecdc69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:839-848 | pkg/app/sensor/inspector/sodeps/sodeps.go:206-215 \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/app/sensor/artifact/artifact.go:839\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/app/sensor/artifact/artifact.go:838\u0060 calls \u0060Debugf\u0060 and \u0060pkg/app/sensor/inspector/sodeps/sodeps.go:205\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1ee70bf9b1928887fc6f684998db2d4723fc4610d9fa09f05a3edaf548cf00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/docker/dockerfile/dockerfile.go:139-148 | pkg/docker/dockerfile/dockerfile.go:152-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/docker/dockerfile/dockerfile.go:139\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/docker/dockerfile/dockerfile.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cccf1423fdbe9009861ebf1291a2982cfd07aac6bc52ffacc37559268158150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/app/master/command/xray/cli.go:431-440 | pkg/app/master/command/xray/cli.go:479-488 | pkg/app/master/command/xray/cli.go:524-533 | pkg/app/master/command/xray/cli.go:572-581 \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/app/master/command/xray/cli.go:431\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/app/master/command/xray/cli.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbd2c217c993063447564bb19a508656fff2642c0924debd12901d388626276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:2820-2828 | pkg/app/sensor/detector/filetype/filetype.go:41-49 \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/app/sensor/artifact/artifact.go:2820\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/app/sensor/artifact/artifact.go"},"region":{"startLine":2820}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac04e2afbb7b74fd0a1b29a0b3c311e12560f2fc801d448ed4585e141d62f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/app/sensor/artifact/artifact.go:856-864 | pkg/app/sensor/artifact/artifact.go:3352-3360 | pkg/app/sensor/artifact/artifact.go:3524-3532 \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/app/sensor/artifact/artifact.go"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c4ad5e8eb6eac957f5e4f0da33009471cffcd7a69b2037d18a8c64e82e9684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/app/sensor/artifact/artifact.go:867-875 | pkg/app/sensor/artifact/artifact.go:878-886 | pkg/app/sensor/artifact/artifact.go:891-899 \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/app/sensor/artifact/artifact.go:867\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd24df1861ed914e0d46dc48ee1aade76d2ee148a06cbd1cceb4560d053e339a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/docker/dockerimage/dockerimage.go:1899-1907 | pkg/docker/dockerimage/dockerimage.go:1940-1948 | pkg/docker/dockerimage/dockerimage.go:2040-2048 \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/docker/dockerimage/dockerimage.go:1899\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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fded9a9abe2fac034469d03d00a598cd93f772acc48b5ba4f1c2d3f2c432a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): pkg/app/master/command/containerize/cli.go:28-36 | pkg/app/master/command/convert/cli.go:28-36 | pkg/app/master/command/edit/cli.go:28-36 | pkg/app/master/command/profile/cli.go:97-105 | pkg/app/master/command/xray/cli.go:112-120 \u2014 \u0060pkg/app/master/command/containerize/cli.go\u0060 and \u0060pkg/app/master/command/convert/cli.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/app/master/command/xray/cli.go:109\u0060 calls \u0060String\u0060 and \u0060pkg/app/master/command/containerize/cli.go:25\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/command/containerize/cli.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2e2e918e1bd3ce99f1fb1cc20b369ad5b80477e1c147934142305f4b23324f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:835-842 | pkg/app/sensor/artifact/artifact.go:3503-3510 \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/app/sensor/artifact/artifact.go:835\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/app/sensor/artifact/artifact.go"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"279a97fe94468764103cc885cdb38c91fdb6a783cb78660142ab1910a9179b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/util/fsutil/fsutil.go:555-561 | pkg/util/fsutil/fsutil.go:898-904 | pkg/util/fsutil/fsutil.go:1032-1039 \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/util/fsutil/fsutil.go:555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/util/fsutil/fsutil.go:552\u0060 calls \u0060Stat\u0060 and \u0060pkg/util/fsutil/fsutil.go:1028\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/util/fsutil/fsutil.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e153c690a214875712901d03399c90bd2dc22af39c3ab78daa18a997c64037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/app/sensor/artifact/artifact.go:1061-1068 | pkg/app/sensor/artifact/artifact.go:1185-1192 | pkg/app/sensor/artifact/artifact.go:1233-1240 \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/app/sensor/artifact/artifact.go:1061\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/app/sensor/artifact/artifact.go"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f43b952ae31e75dceeb823dff0c7f960501299a84d14db2350dde8393279425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:1505-1511 | pkg/app/sensor/artifact/artifact.go:1595-1601 \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/app/sensor/artifact/artifact.go:1505\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c62dcdc63f30df13baac93196bfd80b89881e25be705d70a79df033fea519c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/docker/dockerimage/dockerimage.go:1992-1997 | pkg/docker/dockerimage/dockerimage.go:2044-2049 \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/docker/dockerimage/dockerimage.go:1992\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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfabe55fb9f106e158002923eed02e2365a7ad26265e8172cf98018d89e37698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/app/sensor/artifact/artifact.go:2222-2226 | pkg/app/sensor/artifact/artifact.go:2466-2470 \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/app/sensor/artifact/artifact.go:2222\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/app/sensor/artifact/artifact.go"},"region":{"startLine":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4664ff001ec11498c59c81cb9696d662658d5b3c22ee95c606cd439270f7444"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/c4milo/unpackit: Direct dependency \u0060github.com/c4milo/unpackit\u0060 is required at \u0060v0.0.0-20170704181138-4ed373e9ef1c\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2017-07-04, 9.4 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/c4milo/unpackit\u0060 and has not moved this requirement in 9.4 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/c4milo/unpackit\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":"ee03e1a0a9af8a1435331323e5b19ff8c9a0d08e3d2af44e814bbd75a0a5c86e"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/google/shlex: Direct dependency \u0060github.com/google/shlex\u0060 is required at \u0060v0.0.0-20191202100458-e7afc7fbc510\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2019-12-02, 6.9 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/google/shlex\u0060 and has not moved this requirement in 6.9 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/google/shlex\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":"393f56a0f4acccb36553d9860d5e0c6e212b1104845cd37f996783fc5836e24c"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/syndtr/gocapability: Direct dependency \u0060github.com/syndtr/gocapability\u0060 is required at \u0060v0.0.0-20200815063812-42c35b437635\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2020-08-15, 6.2 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/syndtr/gocapability\u0060 and has not moved this requirement in 6.2 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/syndtr/gocapability\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":"ed010944e947b2e3e4fa148c8e04d818ea63c2338b189852520ed5cf4b08b6fb"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/distribution/distribution/v3: Direct dependency \u0060github.com/distribution/distribution/v3\u0060 is required at \u0060v3.0.0-20210316161203-a01c71e2477e\u0060 in pkg/third_party/compose-go/go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2021-03-16, 5.7 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/distribution/distribution/v3\u0060 and has not moved this requirement in 5.7 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/distribution/distribution/v3\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":"419e5ba3a42757a5df14624b8cf41f13074bcb60187ec0bdd94bac4ea2bba3f6"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/ulyssessouza/godotenv: Direct dependency \u0060github.com/ulyssessouza/godotenv\u0060 is required at \u0060v1.3.1-0.20210806120901-e417b721114e\u0060 in pkg/third_party/compose-go/go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2021-08-06, 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/ulyssessouza/godotenv\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/ulyssessouza/godotenv\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":"0491db40533011f9a392b597d0c5d39e7dc2ffba97e18c05913a3866174bac0f"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: golang.org/x/sync: Direct dependency \u0060golang.org/x/sync\u0060 is required at \u0060v0.0.0-20210220032951-036812b2e83c\u0060 in pkg/third_party/compose-go/go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2021-02-20, 5.7 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060golang.org/x/sync\u0060 and has not moved this requirement in 5.7 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060golang.org/x/sync\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":"bc41a7197e2ffd3f49c89393967d63cd12865fdd943e2305904f0559e997fefb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: add field name validation \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/vulnerability/epss/api/api.go"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feb8a15be7201e1d093e665ba5c019e5e4b80066df9f5db559e6d429bcd6cdf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: refactor \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/util/fsutil/fsutil.go"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a640c92a86da03a1f5a653aef9f2b4449b441c32e2b58c08d1a8dd41d7a09c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: refactor \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/util/fsutil/fsutil.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a46de5504c24e839e542c6d233dffcc70fcfc85863dfbe2be937857a9be7b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: refactor \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/util/fsutil/fsutil.go"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fce7a43590f74a9ede75f55f89e40c731098b07b91700763ea9b1f92911c6d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: should call CopySymlinkFile() here (instead of using os.Readlink/os.Symlink directly) \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/util/fsutil/fsutil.go"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afc2084932109effe7222dc3eafa5914518d510e1ef6ac970bf04dab1b3ae63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: (add a flag) \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/util/fsutil/fsutil.go"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed436184d82bac2f1a82c5f1ba07320b078887fbe808a7b168090d43cd6ff88"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: better symlink support \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/util/fsutil/fsutil.go"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"2622476f4f4c300ffe02c306ba1745d4b6aa747ad68c80178d3a047294aa306b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: better symlink support \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/util/fsutil/fsutil.go"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f5a7bf1ef87fdbf2e5197d1719a6415f951ceb674a5300828dd8e25a46d5c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: should clone directory permission, ownership and timestamps info \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/util/fsutil/fsutil.go"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d131b88f94cc03fdea1f89bfa575d7070e86a6da763ed316418cc29d42c3624"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor the IPC code to use context with a deadline. \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/test/e2e/sensor/sensor.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c5cb64ce03427a0b27fdb04d817567b51d54b8af00a923eaf12c85b68e0995"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make sure we never pass 0s. \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/test/e2e/sensor/sensor.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"750cf091ef38f0f7cee84726cb72bca0f37c9998e3b7140e2d53ad328d62dcca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use timeout from ctx. \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/test/e2e/sensor/sensor.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21a639bf6ad54fe25c2591d7b690a149dbd9ae2ff0e0c8d5e162d1aac512882"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: extract section metadata from comments \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/system/kernel_linux.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ad717fa3ecb2cfa02f980bae1fa2e97ce4c34cbacbf2460ce1f81a66da8da7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: Add LSB Release and Issue file parsers \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/system/os_release.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04a47e504e6376177843919f49e0c07e743ee1603c2d89352e9676df7305ec2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: move to one of the runtime detection packages \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/sysidentity/sysidentity.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c706068155ddd35ad4989e2db6e179973d2fef414e47876be1e611e2fc0ccb8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: get the actual password infor from gshadow (if any) \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/sysidentity/sysidentity.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a8a28c3e2b11b3587754963acfb456e29f93b0b4a51f6d111ac3368db0af88"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: have an option to skip bad records \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/sysidentity/sysidentity.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"77be283ed9458e087a04f0947e22f33d4cbfdb20c0c52f6b8dfadeddcf7c3f96"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: have an option to skip bad records \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/sysidentity/sysidentity.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84f760572f52997f641be11e47646ec1286db95d06538ac08d38cecbcaba254"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: have an option to skip bad records \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/sysidentity/sysidentity.go"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0aa888d6805c99beab4020a4b9921d15e23df047e568a9b325276bf847bd42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 12 files: The identical TodoComment appears in 12 files (17 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 17 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022//TODO:\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/report/command_report.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d91555c58a861061e40b23e29270d6f89806f85dded9358aa5350bb01ea6b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo \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/report/container_report.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede3f6d6ad2e62209620229c20805acca377ae92d4ee0f1587776c3bd2666416"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo \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/report/container_report.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfe5cab4319c1ef1a9538d57c09f024d33690101a9d434069a99133435aa8e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo \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/report/container_report.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cacdc60fcce6feb202616c970558b09978035e7e7975a61c4f403dda42ec9ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ivan): includeNew \u0026 origPaths logic should be applied at the artifact dumping stage. \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/monitor/ptrace/ptrace.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4813155a0cdd9f79adcf4170e7c21855f1f4dd43028d1a87e0e235f622e55bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: filter \u0022/proc/\u0022, \u0022/sys/\u0022, \u0022/dev/\u0022 externally \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/monitor/ptrace/ptrace.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"309177af834446acdce90e1e4cd2b3d09765e11d442d925ca272d0c1e22b8679"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ivan): Investigate if this code branch leads to sensor becoming stuck. \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/monitor/ptrace/ptrace.go"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"797eb16450de6ed9c899ac5cc586b09705809d893e29a6965e3155f71f7a8e49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ivan): Should it be collectorDoneCh \u003C- statusCode instead? \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/monitor/ptrace/ptrace.go"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c911ee4128b9875fc8e4b6fb896fd1ac11eb6515301858e3c9d4c826431852d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: create new process records from clones/forks \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/monitor/ptrace/ptrace.go"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bf0d110d57dadca8e00632ba63f7be027f42cd87480116a2a9ab9c8508862a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: track cwd with process/pid (so we don\u0027t need to look it up later for each call) \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/monitor/ptrace/ptrace.go"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a057da574a90a1bb158adeb293ec609fd2ac516764a508fdda894f7b092d31b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: introduce syscall num and name consts to use instead of liternal values \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/monitor/ptrace/ptrace.go"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b288763209cb592117b3fc69c81b9e71ab3fe8bdac3e9e455a65020b6af933"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: use non-timeout net.Dial or net.DialContext \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/ipc/channel/channel.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"057b41e339309237e40b8a0c641fa36bbc20c18981faaa5a1c0d60adffd112ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo handle timeouts properly \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/ipc/channel/channel.go"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"049f2d690cccbfc3a009d1dca1369547b37470ec5b566f384af97c898f0c62b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: refactor into one set of common structs later \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/imagebuilder/imagebuilder.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e302e95327e7075c107b8b3177e0f34e9fe9da839205b292a4be6d32a9110e07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: refactor into one set of common structs later \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/imagebuilder/imagebuilder.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"715f43f8a70f433a83b5e70f18c65929de4117d4a7d8594f33f2fa632bcf5d19"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo:  add \u0027Healthcheck\u0027 \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/imagebuilder/imagebuilder.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a54004cd0f79d37f0eb570ae79fc7c11ec83edad1147f7433e6d9d4e62aff5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add other common layer metadata... \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/imagebuilder/imagebuilder.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4145b04870d58bcb4d9719c0fbcb43a47ce9d7161b05bcbb6d71a2befd6e29"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add useful fields (e.g., to filter directory files or to use specific file perms, etc) \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/imagebuilder/imagebuilder.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d84cd7df4af19dca18f0d10dd13769cc31ed1432609a6a3588686efc97095ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \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/imagebuilder/imagebuilder.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"76611631cea61c40158428498434c0e74c6c9e68b0ad68b13633f98f3f1af234"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add report name, report time, etc \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/docker/linter/linter.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e31dcbeea3aac5219f3a022bd74c37e865a5774119ad26048df88eff17b07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: do it the right way \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/docker/linter/check/id20015.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1be37bc3230dbedfb7a123b6d4e33ddd83184419d8ea5f2d9f35be46bdf365"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: \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/docker/linter/check/id20018.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ccfa530aa3840ea0be5f4b271e699ae2b6b838817d263c2a7e5a6ab40bcc49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: \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/app/sensor/artifact/artifact.go"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bc278967c0018db8adcd6c4b12d39271dd816c56b02098d631d6b2bba1fb0a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: \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/app/master/compose/execution.go"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db92c28cd4d154abdba6d2881eac848db91c6a7fe76820f8921132bbdf4cbed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: \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/app/master/command/xray/cli.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a8ef3c79980140cc4307b3b532123a51e4c067566ca5fc044bd2f0bf441462"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: \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/app/master/command/install/handler.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18bf08967f599e2d44675347b8c74104fc67db635d4e62904e653d10cc3db31"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: check for local packages and wheels... \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/docker/linter/check/id20018.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c969d45366ba8434b32eab6177ff2a6757262642f6d2d17c80061da79b702ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: add a list allowed flags \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/docker/instruction/instruction.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddbcc957b35c68da5e97163426487f6e4b82b5918a7041ef1eccbb1c12ff6ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use the \u0027internal\u0027 build engine that doesn\u0027t need Docker \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/docker/dockerutil/dockerutil.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"395340f20f8ee28c25c8d44fe1d4b67df314d494872cda62f0f9001af7055692"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: \u0027pull\u0027 the image if it\u0027s not available locally yet \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/docker/dockerutil/dockerutil.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"802f98dd9c32cc595cf137cb17293cfc30428d0625cfc2908677a7fad0477e8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: might be good to make it unique (to support concurrent copy op) \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/docker/dockerutil/dockerutil.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"21eedfe6032cf52cb858973b4a5c61d29c99eb195141c3e75688533ef3a81a7f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: rename \u0027Package\u0027 struct \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f7f851ef8579f9f9cd08eb8d86abb1a9f54e6e53a0f3b28fda6504924b9017"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: refactor, so we don\u0027t have duplicated structures \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e17f13c4189a4d077f2528510eafb45dae00796091fc9f820cdb96e4c40a9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: add other processor params (passed separately for now) \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"f558a9c7ccee6bd7c221d29d122f8944bab5742bf4b51656f5a51c0952d18a15"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: figure out the layer file names from pkg.Manifest.LayerSources \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ceda30d9a37879394ba2db524e987cb51db93ae60aedecc4e065e9193beb866"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: add support for oci.MediaTypeImageLayerGzip and oci.MediaTypeImageLayerZstd \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf9630c6e83834e0bbc12630a7fddf9fafcb852802f843d4f7a272c6dbd5e20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: check the difference \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e728e880f19ac1cc20dde4156e5fb8a55c33401231e5a9ad5676b3493c276d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: test if we can get symlinks... \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57ccec3a0460328348ecb3ebbb129f2e728029186ef4385bc32c15b3add1846"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: display non-image layer metadata if there are any \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceccf91b8afaa79e0d7a9a85e0b55f98ecf001a0363ce4d751410226e9a2ece9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: save non-image layer metadata/data \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7737a097240f2417838f92f63b67ae6d55b50facbc9813b9b17c3d095a5f9812"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: need to count all file sizes in the dir \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"273c093d1930540056e1b6e707b6e198376043b867e8df6ccecc986deaca5492"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: refactor and enhance the OS Distro detection logic \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/docker/dockerimage/dockerimage.go"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bd0d08292fa028e7a610c87fc9b27208db1a3a143a043d6acf82fd8c079024"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: can reuse \u0027Platform\u0027 from github.com/opencontainers/image-spec/specs-go/v1 \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/docker/dockerimage/metadata.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"476a20d7a0d5cc08818eeb43b40a38acd0181a8e5647b2ff009c83cb562dc3a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: create a deep selector copy \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/docker/dockerimage/packagefiles.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b9cac80697456828d124c8cf1ee1dbefd90230b151c8b9c36073e07e446967"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use already defined constants \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/docker/dockerimage/packagefiles.go"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19dd5b90bd92fdebfac6a231460e2e5ad8461a4f6cb09683f844ec2a3325b38"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: need to make sure the generated ENTRYPOINT is compatible with the original behavior \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/docker/dockerfile/dockerfile.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c859a2955ace6779aba175dd46daf1b4d1d5fe12e5422f2295e94d7ca272dd7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: need to make sure the generated CMD is compatible with the original behavior \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/docker/dockerfile/dockerfile.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29597dc48905459833cabc06ac41b622c199d39d004bdf10a2fdba9af545d42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: make it possible to pass the history information as a param \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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"548586a13ba4a0aad181d2353e65465053d411a36678baad9e00fade85eda6da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: pass the other image metadata (including OCI and buildkit base image info) \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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b38865132241901a607cc3e4e51a6542d3e4df41eaee979012ad5369fcbe65a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: need to refactor \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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7731c16ac5a9d47bf64043043e61c3cfaa0080a39043398e8089544f49f03a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: check if it references a local (or remote) image \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/docker/dockerfile/parser/parser.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"19101c525a967e6168d2baaae4af00d11dd611ed29260ce81af6c2abd42a6e95"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX to get around regexp.Split *always* providing an empty string at the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerfile/ast/line_parsers.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"de594a1acb3ff29d1e96548fcfd4d29fc9fd678c842265ae48feba373712694e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove stripLeftWhitespace after deprecation period. It seems silly \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/docker/dockerfile/ast/parser.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"624ba12b35367e6446eef4aa2c777c252d41decf031344c96982db92dd57a370"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Cert File Env Vars (TODO: use these) \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/certdiscover/certdiscover.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae453196c2b00c37a75447964bcf54d6aa50d4c5284dd3de611a20e0face4550"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //Basic PEM detection (TODO: detect other formats like DER) \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/certdiscover/certdiscover.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4d2a1f46c9f287264c334e3f35c2821d4876fd55ab091de624862c96325192"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: handle symlinks \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/certdiscover/certdiscover.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8c644c93d1bf553b27e49c0101eccc5300525e4697e1d8bab7f502f91ed34a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: expose the setting description as a \u0027details\u0027/\u0027summary\u0027 field \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/appbom/appbom.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51916e8c30dc72c4e9a3c04258cd73400f08c2ed3abce9729440007142e12a0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: add \u0027main\u0027 \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/appbom/appbom.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9e46f4c4b01244fb0c0780dcdcef9c500526f9c3757e5c20168b7baea63421"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: have an option to add package metadata (from deps.dev and osv.dev) \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/appbom/appbom.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"79657faaada5fec568896e2f4aa0bbf57d44ad073b948353b68f7cba2b39154f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: investigate why these files are not included in the mondel (but are in the creport). \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/app/sensor/app_test.go"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f74e8cd017d672db3008be68e9e943af77cc3a8977b201007171b0c245a71d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: investigate why this file is included in the mondel (but not in the creport). \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/app/sensor/app_test.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d43e30390ae10cf1d473f32c2830ded812bd78243b51886be7a6fd33c73443"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement me! \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/app/sensor/standalone/standalone.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"30aa23a8b811d93a27537c0deed8ee3b76284a3009cc006ad68f5f672f18713c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement me! \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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f44d9f7e1d23185c0e85f1697a00b073dacd3b4d166d1b5b6e34cb2ac7f51c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Combine the signal forwarder loop with the run monitor loop \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/app/sensor/standalone/standalone.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86a2b40505fac6cffd827bebeb9d0bdc2022a5f66ca8847863a94ce8c79cc71"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Log SIGCHLD if ptrace-ing is off. \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/app/sensor/standalone/standalone.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38aadd2af5de8267bed4291e242c5a6b008d231c60bccea3417693cf4ceac00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider adding the Files() method for the incremental \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/app/sensor/monitor/composite.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4229d4457df41f4c6926c59789044e2a0958e648e779c2a7cba369d49fd50e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: peMon:  peMon, \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/app/sensor/monitor/composite.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b904d4b359b60444cd6e84f81e3a9ce9cc1edb481a52cb3329798ab7a4655e02"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider adding an option to make fanotify \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/app/sensor/monitor/composite.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aea2660a56af6adf8d9608d50d3f218b1be1a999c054eb2296c69fbb9a9efe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check the status (reports \u0026 final error). \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/app/sensor/monitor/composite_test.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90dcd51bb118ef9576f643d1e39c83a404d8a5426345c32245802c15c30cd46"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move the logic behind these two fields to the artifact processig stage. \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/app/sensor/monitor/ptrace/monitor.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f566f3d5dad0b5deea4d46a9e73f3c8373a4df9a134d5b952f476a37d4acec0a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move the logic behind these two fields to the artifact processig stage. \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/app/sensor/monitor/ptrace/monitor_arm64.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0c6861f5a31bc95721098f21e71b06fd63ac012d337f61fc795c87c66b7ef2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move the logic behind these two fields to the artifact processig stage. \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/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb6721a0c7f5ac5c4fe3b543f53addd4173c8d1c13ce4522a9fd4b28f0c0ce6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ivan): Implement the runOpt.ReportOnMainPidExit handling. \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/app/sensor/monitor/ptrace/monitor_arm64.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3011b0943025daf8047e2af2fde33b197c485dfaf5fcdb227c4105801e71c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Apparently, rtaSourcePT is ignored by this below code. \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/app/sensor/monitor/ptrace/monitor_arm64.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a4834980ff00e3ea6f1de669877ae12a67ee87855c6d2f80df0784457401af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: enhance FA Notify to return the original file handle too \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/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ede5d6cccdafa82b08ebde1ef10d8645ad451d4882d03b2d066cba66da10b44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: \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/app/sensor/execution/hook.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"372410e050fb424877c5fdea058e71724ea76b8a171ad72890337b411d710110"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: pass event as a base64 encoded json string as an extra param to \u0027cmd\u0027 \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/app/sensor/execution/hook.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"effea47059eac3e6dc3781504441f9f972c72567497e94f30d89e25d661a5525"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this function return a list of commands. \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/app/sensor/execution/standalone.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdbde5da83c2736a388b514aca132bb6802d319cce1ebd30cf204fff2ed9ff0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use libmagic (pure impl) \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/app/sensor/detector/filetype/filetype.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f173355645f90966e7d3835aa95694981fe6244575c9b930fd55dcfd2236b4c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use libmagic (pure impl) \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/app/sensor/artifact/artifact.go"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ace2fd06299c486bd165638970e6c150fe5b32798f28db96f4f512286ca70f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: need to get to the real component \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/app/sensor/controlled/controlled.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"819677c02ede2dd34a6f77efbd82fc804fa4340b9bcb8f0d11e1569a2ecc1786"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: extract these app, framework and language specific login into separate packages \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/app/sensor/artifact/artifact.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecf42834febc31242373c6b8224c553ae80833cb9c7ae862ca6959a38bb617a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Combine this logic with the similar logic in findSymlinks(). \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/app/sensor/artifact/artifact.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a65d70085aee593cb568166112c244c6d0d42c26c25c9f843e64d7880526860"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Combine this logic with the similar logic in findSymlinks(). \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/app/sensor/artifact/artifact.go"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d6948db449215d048a74b1de4d8f36062a8cf35ba5be5f5e6218bc17eb1799"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: when peReport is available filter file events from fanReport \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/app/sensor/artifact/artifact.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad00bd1773f538da5535527396516ea8cbd1eb45ee425f53b1bc37e5240f582"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: refactor \u0027processor\u0027 and \u0027store\u0027 to have the right logic in the right places \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/app/sensor/artifact/artifact.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c62f9b9934e7d8d466250e5805a01a3d1f0f48d61aafe4730c11d3a5653d2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: conditionally detect binary files and their deps \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/app/sensor/artifact/artifact.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b85802c100ef96476ac37fa384bcc64926d7f361e0c7ec868b7ce5a896c135"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: skip \u0022/proc/...\u0022 references \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/app/sensor/artifact/artifact.go"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abf8bbf514c13b17726086eeb21828c46a31a69f0b37f124eb9d47146dcbd59"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: skip \u0022/proc/...\u0022 references \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/app/sensor/artifact/artifact.go"},"region":{"startLine":3351}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74f3ce7341c2007ede2de29e278b62297face10d821bf609a80dd2aa45590da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: skip \u0022/proc/...\u0022 references \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/app/sensor/artifact/artifact.go"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"f269f4e7871f8551b98b9fcf8c3e5e94f4f1eaf452c6f3665750121dfc73fd0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: lookup zoneinfo data path from TZDIR \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/app/sensor/artifact/artifact.go"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf530640f4739e705452218159bf7b3a36646f054b529198984dc3e0a228e86e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hacky way to get the home directories for users... \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/app/sensor/artifact/artifact.go"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fe8a2a5ab456a7989cc1dface953ea00cf160e592ac9be3ff83a088077c19e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: review \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/app/sensor/artifact/artifact.go"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c6d2532bf8b6d6998a98598122f4d15ec1051ed4be3e497a3189f0ef25eea7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: copy owner info... \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/app/sensor/artifact/artifact.go"},"region":{"startLine":2863}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ca1cd59b95cf91b377454eb3ce473baca2043c21709e55a66fc23a242854be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: read the file and verify that it\u0027s a real nuxt config file \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/app/sensor/artifact/artifact.go"},"region":{"startLine":3069}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74836c3a62abfa49507329b80eaa3895d51a1bf7c9751913a8306c51c7e7916"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: read the file and verify that it\u0027s a real next config file \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/app/sensor/artifact/artifact.go"},"region":{"startLine":3081}}}],"partialFingerprints":{"codehealthFindingId/v1":"e185be4600f0170141e97748e83a9fbe1c4e0af73ea42e2b773c6c558ec0c20b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: read the file and verify that it\u0027s a real package file \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/app/sensor/artifact/artifact.go"},"region":{"startLine":3104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0265d08b9d8d7f96a0a83d06f8e297ff05c88a57e160036a14ca7a9241be2eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Merge it with prepareArtifact(). \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/app/sensor/artifact/artifact.go"},"region":{"startLine":3279}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9f291ac305447dfa374dd8ddc7095d57bd07d6e17db0112e5e6998c2bda259"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Combine this logic with the similar logic in GetCurrentPaths(). \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/app/sensor/artifact/artifact.go"},"region":{"startLine":3423}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb63cdd19063b371b15103801b160cce985b831002623c491a9f6e44637400d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: get already fetched gcvalues from ctx.Context \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/app/master/cli.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbffba136b24489e491e3f701844c3b0479644d8fd7335283f5790eb6847353"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: get already fetched gcvalues from ctx.Context \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/app/master/cli.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b754eb4c4ed9bc8a9892e1b1d9b2bfc273d19c45ada491505654c6a29e1f2ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: should check if it exists before we download the release 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":"pkg/app/master/update/update.go"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b58af099cd2185e1916b957daf787596006f860ea251eb7cbbd764ea3dff37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: need to do a better job figuring out if the target app is ready to accept connections \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/app/master/probe/http/custom_probe.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"822cf0aa347cdcbe6e264f78eb6c36ba4fe9d4c3fbc4b36d70b60ed6d5a03034"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: need a smarter and more dynamic way to determine the actual protocol type \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/app/master/probe/http/custom_probe.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"522bf61bc079b3a76859f0f8f78893dc4ee895d77732cb31c2c78c3e006a3fc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: prep data to write from the HTTPProbeCmd fields \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/app/master/probe/http/custom_probe.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5228cd61793074c92416a2db588c0dc96331e9797dc1d8569891ef2da770e93"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: cmd.Resource may need to be a part of cmd.FastCGI instead. \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/app/master/probe/http/custom_probe.go"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"8184559394377baf584736890470cd53852296372d9c464a8b88e59a49358bd7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: should wait for the \u0027websocket: close 1000 (normal)\u0027 read error \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/app/master/probe/http/wsclient.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b28db6af4a512a731571c1666ef0c60e08691adb074087eb7944f01f824ce21"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fixTransferEncoding ? \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/app/master/probe/http/internal/client.go"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcf5d071e32364bdf51ec553ef45d471bf32b2b8b2477b149715106efc9a1ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: wrap in a special error type if the dial failed, so retries can happen if enabled \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/app/master/probe/http/internal/fastcgi.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aaceaa8b6583770293ad5ee5607b568dcc557111d63f556c93e763f64b8494"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Start supporting CRDs - currently the hardcoded client-go scheme usage \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/app/master/kubernetes/manifests.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab43536ceca307d06e31dcd1da5162d66fd787201aedf0016f39cf7208cfaf2a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider partial applying \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/app/master/kubernetes/manifests.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3474554db7d149142ec7b983b10d0abe654245a4b944719d2d3b72e771b7946e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider partial deletion \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/app/master/kubernetes/manifests.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26fb4d6dbf0860f85eec03a52b8ec6385f8373454010b0e9edf96646b8b58b3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: unify with similar constants in container_inspector.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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c648aa526a9855a8708541a626a9d0bebad136504b3668f21e30c74f65a1435c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pass these params \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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1588ebf5b4da603bc487e6599dd8b798471245d96e59238f69e0a65f8fa1bc8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check if it\u0027s already there \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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced329ff44bc52741ce49a64ed76717ab3439ee4737600bc881d4d2b2b827433"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make it fatal! \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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c7ca2a7e66f1dfafee6a0e0b47af288536e3bf720f4b23a933497f8b7ee8ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: dump temp container logs \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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"2200ed32f4b3c764bd41e1beb158617fae21c4485411df476202ad9a18627bdf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(estroz): move all fields configured only after RunContainer is called \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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a908467c72215d6185d86e3131e6532dca9fb2f81e6517aad3d5f7209aabd80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: list volumes and check vol.Source instead of defaulting to named volume \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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a8a53427894d669b4805a3cf02ce06363e01efc7cacbba6c909e466c7ad578"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: list volumes and check vol.Source instead of defaulting to named volume \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/app/master/container/execution.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3fa98bf018a8bc1cf9dbcc16a68a86aa199e0853dc4196a57f1c72c9717574"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: need to check if the volume has the sensor (otherwise delete and recreate) \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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2709ed3821ecd82cd7d4a8737be9306aa8751e8d3669d3237a87c5847f9bc02a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use WaitContainerWithContext \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/app/master/container/execution.go"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acf2de0959c86864a54c3ad8702e186ef0b646e391046441ab1375c70c99acc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: robustly parse \u0060--network\u0060/Network at the CLI level to avoid ambiguity. \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/app/master/config/config.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b67a00e40db2e4289746692c3b6dd927ba9cd1a0f3aaf9dd2e256552837920d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: explicitly check for invalid/unknown service dependencies \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/app/master/compose/execution.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e5cfbc49b1653abda29772e61765a2d5f2b7536089492e59233849a56a915b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: have an option to ignore/cleanup invalid/unknown service dependencies \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/app/master/compose/execution.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf880216df0be9400a10bea73c3dfb15f1521e26dfec7a171518e49cf9b7e5e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: lower case \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/app/master/compose/execution.go"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdb3417f1b58a188d52613c5a77a7b6448f5c2b5adf47bff02556c33d6d5eeb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: lower case \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/app/master/compose/execution.go"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f9307bd2267a2051c2abe7896e425d0722e1176f06f85ab0fc304381649002"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: have an explicit flag for this behavior \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/app/master/compose/execution.go"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c58d507b68e0e26498555e479d413e651c41e5d16a20273e8a2cb654024052b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to refactor to use container.Execution \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/app/master/compose/execution.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57e3c319ffdf14f32c11523239ace90e4d669edc5602aab49c0e3d83f1c7c9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add support for auth \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/app/master/compose/execution.go"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddaa08392b007e1be4f4276eddf96f46c068714ab34d8cf5ebefefbb787a216"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: move builder into pkg \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/app/master/compose/execution.go"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bf8bdc91be38f6eb629fa173d9d965f5f692714631bdf64e7ec49e629dd8be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: investigate []string to string \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/app/master/compose/execution.go"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6555bd302ba6a72614879938c225c0022cc4adf3a9c4d2ca3a520cd6b9e19d49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: check that we get the right names here \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/app/master/compose/execution.go"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc9f45f897e4ce344c7e6afed68700751dda24061dee7347f972b31b2053731"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo - cleanup \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/app/master/compose/execution.go"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"972b3bc3529e241104709f8e82bc37cbb553161fd3019d6f99221eb6c9c16f60"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: FlagKubeContext        = \u0022kube-context\u0022 \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/app/master/command/cliflags.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a3bdefef4c6a3c1c07b9e262699bf8adbf9f9eb850b97c53ed861afa38f916"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use a \u0027--no-entrypoint\u0027 flag instead of this one space hack \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/app/master/command/clifvgetter.go"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc87e175473539fca5b52f008ffa7a20f4ffdcbec6961e2e8aa8affaaaae4ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: spread these code types across all command definition, so it\u0027s not all defined here \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/app/master/command/common.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67697213b4a59b332f26eeb5bd04833328844edecf8d6dc81f86c0f89857e1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO LATER: \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/app/master/command/common.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"619faefba15a6bd3b00b8c070c5e1bcf8b92a6e38a1d73d85e411ec31a41eebd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: process outBuf and errBuf here \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/app/master/command/common.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6468fefa07a9662f7aaf1ebfe8d6d81cee08ca545397daa3042eaf81c859f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: migrate simple bool param to DetectOpParam \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/app/master/command/xray/cli.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c836c29101460720b3875c9de69eb20930be78b375101f921e18b51d8e15d6c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO implemement path pattern matcher \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/app/master/command/xray/cli.go"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c6442daae050e84bf3351713a1f91014908ffe9df4c2ccff23e19fdbf74c89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO implemement path pattern matcher \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/app/master/command/xray/cli.go"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8cfa503b3c9c56e852db5c885ccff001e4c8a9dd8452954bcb5fc3cd6f8c68"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO implemement data regex matcher \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/app/master/command/xray/cli.go"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"000acb9a8ffe8c4077183114666c738e451479dd591e8496c715fb6e83ffafc8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add a flag to select change type to apply path patterns \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/app/master/command/xray/handler.go"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cd94bc9c56a5d575649e4070087fb6e9bdccd9c98a32ee8162677389d4133f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add a flag to select change type to apply path patterns \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/app/master/command/xray/handler.go"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5edfc06220fd5fdd4338baa9bc7995499f15fefcfd4878cc1514f8cf1b664b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add a flag to select change type to apply path patterns \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/app/master/command/xray/handler.go"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1578bbf89a12bc7a43b13675638ff4e5af01f6875b366db941ab0acff16fe0c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: show duplicates by duplicate total size (biggest waste first) \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/app/master/command/xray/handler.go"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"90891170efa0738c12c83c3e59617b40208fcd22fac80aaa86f36a29d2875786"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: validate that this local docker image exists \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/app/master/command/registry/cli.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec696075783123f94ee87e2eccb598e6087b0205790db8e1704d34bfbffe2c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: validate that this local tar file exists \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/app/master/command/registry/cli.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d33020160a9d78a78ac5cc7149d91fd2cad389cfb057064ce227327cd0e51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: validate that this local directory exists \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/app/master/command/registry/cli.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ee64bc4759626d522ac3d640563e5ce63dd60c12e2f3d48f381155cdb3c4d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: reformat to pretty print \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/app/master/command/registry/handler_image_index.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecccc4630028255285a9c0d674add7287e7c5c83ae70d24df348626b73b16574"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: pass a custom client to Pull (based on \u0060client\u0060 above) \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/app/master/command/registry/handler_pull.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50e7a54f865ca6e6ffce0a9d5ded6a57f916f3ecdd19f3b1f98eda06414d33c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: add support for other target types too \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/app/master/command/registry/handler_push.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b222f91946184528024cb1e6570674e2d6d43368550053b2557e0d5a0a67446"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add the custom blob handler logic \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/app/master/command/registry/handler_server.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c42aaca8d7fc94888ef7833f4fa5313de92185a8b11d416facc0358ea70e1f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: wrap http server to record the calls and save them in the report \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/app/master/command/registry/handler_server.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cf5c729453c69dbb46ba783644dd79f3c0ff4fa06282ca1605daf33d6eb0f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: needs to put it as a sub-dir in the state path \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/app/master/command/registry/handler_server.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be19ad3cef9b5d88f3fa4a6531fa757a933d3e95e04ababd13d20a59887a241"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: refactor \u0027xray\u0027, \u0027profile\u0027 and \u0027build\u0027 to compose and reuse common logic \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/app/master/command/profile/handler.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd398015506fe49865ea0435b6d33af7ce1a7b2c7c3adf15c144fea2b4a81c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //push to daemon - TODO: have a param to control this later \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/app/master/command/merge/handler.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff57811ee1944788118541b4010e3ddfc209e630c3d9a0e46f25ab94e423ae4b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo soon: add a lot of useful filtering flags \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/app/master/command/images/cli.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cc329d5f54ea09f82e125d3b6ef9cc9f8c1c476610a4ad88a8cf12b71ddc33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: revisit the behavior later... \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/app/master/command/debug/cli.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7506177e1fa0c822076e6fd538dbd7c4ea69055ee2dbdf3cb536c7b5f60657b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to check that if targetRef is not empty it is valid \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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9961b026bc55e7429461863a35adcf2aff23c9526a0813a118d7e85d27c9e3f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to check that if targetRef is not empty it is valid \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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcdf5428d869c3281629fb959b711ed28525dc55b4dccf0173d488b69814b62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to pick the last session if commandParams.Session is empty \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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69c1bcb255c7b5788a25b13bf04f4e31cf7476270aa0e90a5ed0e2554f6368f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to pick the last session if commandParams.Session is empty \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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"110585ba903379b7f22ecd8bae9dbc357402a02d0a03588f3401f6c51891c529"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to validate that the session container exists and it\u0027s running \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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0951e347da6ebf98b4b552d34257e7a60fc542ffa93255919181a32c1a52e021"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: pass the docker client config params instead of the existing client \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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cee2ba97d2814db1424939afcd0bc14c0277f7925e9d35b66cff1332cdc3dcb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: pass the docker client config params instead of the existing client \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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5241ebccc91193a7e489ca89dc0f4565bb7959198012144ae20b4069ab4d0c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: filter by targetContainer (when info.TargetContainerName is populated) \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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf184e0cc02c46003f939fd59c945702e55c1600ad0a989b41747505b3a314ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: improve this logic (to also check for the default container) \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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"485f73fc871b8ffe25980945f4165547bc1400d14aa7fe686013126c607ab4ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to pick the last session \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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d83d4e7521c7c893947c05a3e2b836cde287aca1417148e81573a5b4e10d694"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to pick the last session \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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"823145dd4721123ea8a5721d52e971d58c3642ee66662c07f4bd7ebd60cd3748"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need to validate that the debug session container exists and it\u0027s running \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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6b9cdead124ca66e6974fa5b49521769d43f262c5341bf3564b5640c239c3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: pass commandParams.DoTerminal \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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa40050ce9fa0d7654f24d08a8abbbf9003cfc2af798f6ea28d72aebf9c73a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: add support for more params: \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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4961edf0bc0dab8038d15c7ccfa4e0fb2208a31cf8e235c36e5eb3f64dc1998"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need a way to access/pass the docker client struct (or just pass the connect params) \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/app/master/command/debug/prompt.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b03f72f7cc8ccbc83a514b986dc7827981917917897d2a26ab754a73d05fd2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: need a way to access/pass the docker client struct (or just pass the connect params) \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/app/master/command/debug/prompt.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"7786821a94711776498bf9229b80744aec483fec66bcf4cd36a870007e663dc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: move/refactor this to be a \u0022pkg/imagebuilder\u0022 engine \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/app/master/builder/image_builder.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d493fc103050ba7e3641a5f790fc591b5daaaae54a1626e55a7d21b657255e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: improve JSON data splitting \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/app/master/builder/image_builder.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f6ce371b60cbc4029d677cdc8591b04f333a932497a55d6d95d6ac60f501d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: improve JSON data splitting \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/app/master/builder/image_builder.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5c3bc50025b98a84c3ec64869998d1db6df7124aaa34d783150582ee9e5ae5"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: //hack to handle plugin invocations \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/slim/main.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d721212364de296505aad4d6a2c8794dc5c83893316a9dba96864b4e9958448e"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060cmd/slim-sensor/main.go\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/slim-sensor/main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"792338e4fc17e32735361c1cb59aee251eb20c602adbf5d52e249acd70d26a39"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 82 % of calls cross a namespace and only 58 % 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":"ab6d077e23c64f5cd36bf933b71672b6099dbaffda88f4a1ec184081a90acf33"},"properties":{"commitSha":"1e6e5ad5e369b83d4303769e0b40ee208831785c"}},{"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":"86eeeaa8603ffe5096305184b032da974587a35c43910509716a6e04afaddf06"}},{"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":"cabe5dc2d55db89f1eafbd419c7f8df0e1f52e549d9c39277a9da4684b3ab383"},"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":"1180c82dc573de1852f1d1db0653d540b3aa948c631e1aee9017adc1b21ba105"},"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":"86b52c19004d541c0e830a00e9e543af7253b399198cafd2390eaaa65093adfa"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef9ad3c9b156a1cdeb91f5683ac31f9b26193221039b25a53161e254208481af"},"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":"f920d33658a1e1b0989d61d3414ec512e9e0cc07ba25f6ca9a9864c530c89ab4"},"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":"a6649bd339ed316e7d468a1f554c5aabf4de1f5eb903a05f0744a7ecab1d05ad"},"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":"0afc6accc06bf0526d3c9df9f7ad55f73f294e442ee7413641ed06f07c6cd128"},"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":"0a439e9c6dec3dcda70faad529f5cc1e4bca21eb26bf4467ef964cf823131f03"},"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":"32885a0b5465eb8c8ebf777265f611f609f103aabe68b4325a70859459aeb637"},"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":"506d6ce5142f090bbaf094721e6511117e36c31f6614c1fde68caecafbc6eb67"},"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":"f8cd2fedd2f0ac7fb662e02a15e6675f31f11e3480645ab032d1375fd0ecb166"},"taxa":[{"id":"CWE-276","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"8184c64d0f5b36c2d129258b61a299b15915976cb05dca7286a6a4a178926579"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b6966d23d98126bc3621b098b53a8108b01afc178eb5bf5bed914b87a7ac11c"},"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":"51bf21094a3c9bac09ee8a676dccd1e7ea3498c679bf6b2990448ab56bb03dbc"},"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":"747cfb56f2dde7df1195426f4abdb594c0b6f9b0ed753e941fa7989782ddc9c5"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"473a7f21100ab2b7824914fa5a6f792fcef9dec9e939aedd6d1d8a0324ce5044"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be8cad6c769d8e0f1f50a2ede973a9a6a1a34eea61fcead2daf5b6d685b53954"},"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":"d4552da75ec974ea7a22c09befd649f2c26a2cd17ce42d0f5d2c92387f2c2aec"},"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":"017899ece1025e273faea042cdaa000d59a283deba41c832b2348713c52d2f40"},"taxa":[{"id":"CWE-276","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"7b704c3ec9a3a8b853a318ab3474d5302e3c1948b70af9bfd0d75f575ea69533"},"taxa":[{"id":"CWE-276","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"fc3fcbff7a1f5df414462f079e56e834091c656eb79c89e70d73fe7cda0da963"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"36afc3be6d7ef42dc87d22cd83b02d41d6ea991f9f3445b84fd36d4aed2c04e5"},"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":"07ebb32ae44fe5983995c2b03e1cfdd6d1a239725b30f3ced0d84144c99c530c"},"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":"d5f48e8653675607af1854d282786e9c907cf14c1dec97f4dc9ff6dfa3b20c87"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a8a71aa897cd45b419fa702db000a5455a0ddd738e7b06c97c3a4112e3b35c2"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fef62e931b04feeb1b8633b2bb3ef813fb09d31803c883ddd4dafd92eb6d2262"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58520b7977a5873bc333ffd7e5f56dc442b6df40404b9a2bc0254d7376d652c7"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.45.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-5005","GO-2026-5006","GO-2026-5013","GO-2026-5014","GO-2026-5015","GO-2026-5016","GO-2026-5017","GO-2026-5018","GO-2026-5019","GO-2026-5020","GO-2026-5021","GO-2026-5023","GO-2026-5033","GO-2026-5932","GO-2026-6303","GO-2026-6354","GO-2026-6355"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"436a188e234d70a04927562f8b5849b40dd1d45c169329a84553f229eb2fbb43"},"properties":{"dependency":{"package":"github.com/getkin/kin-openapi","version":"0.131.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-6095","GO-2026-6112","GO-2026-6274","GO-2026-6275","GO-2026-6783","GO-2026-6785","GO-2026-6789","GO-2026-6795","GO-2026-6804"],"reachability":{"kind":"production","file":"pkg/app/master/probe/http/swagger.go","line":13}}}},{"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":"09d83cf1d0f97fb21e6cc781377d3d61bfc43d363dc125d15eb4381d49f261a1"},"properties":{"dependency":{"package":"github.com/klauspost/compress","version":"1.17.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","GO-2026-5841","GO-2026-6865"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66fdadd0fab48ca634c3ec19517e60b1d3088505fd72781b380a5859d07d2bd1"},"properties":{"dependency":{"package":"github.com/ulikunitz/xz","version":"0.5.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","GO-2020-0016","GO-2025-3922"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b6d2b3d32899345faec43caf257423c7429f8957fe99ed2ef1007c930878738"},"properties":{"dependency":{"package":"github.com/distribution/distribution/v3","version":"3.0.0-20210316161203-a01c71e2477e","advisory":"[GHSA redacted]","aliases":["BIT-distribution-2026-35172","BIT-distribution-2026-41888","BIT-distribution-2026-85747","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-4942","GO-2026-5094","GO-2026-5185","GO-2026-6778"],"reachability":{"kind":"production","file":"pkg/third_party/compose-go/types/project.go","line":25}}}},{"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":"b461a9c614f8217d9193e759c6d84db833aa77d7c761843225997c452d75eb89"},"properties":{"dependency":{"package":"github.com/antchfx/xpath","version":"1.2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2026-4526"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc6b3da8d45599285558ee050cce4f4c8d65a08973bcc06156137b1e3a250822"},"properties":{"dependency":{"package":"golang.org/x/oauth2","version":"0.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2025-3488"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b9a1f6b3346f8e47fb86449cad0f8c241cea506076f51f6358fdf29f961123a"},"properties":{"dependency":{"package":"github.com/docker/cli","version":"24.0.0\u002Bincompatible","advisory":"[GHSA redacted]","aliases":["BIT-docker-cli-2025-15558","[CVE redacted]","GO-2026-4610"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1151e5c2cc7c96d98d3e92bcecdb91399b447dd3fc0c1c1c76147a9bd3062b0c"},"properties":{"dependency":{"package":"github.com/moby/spdystream","version":"0.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2026-4958"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"431393eb1afcbeaab0629f43c74423f29a90f82878cb79c88afc43774131afda"},"properties":{"dependency":{"package":"github.com/containerd/containerd","version":"1.7.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2025-3528","GO-2025-4100","GO-2025-4108","GO-2026-5064","GO-2026-5338","GO-2026-5475","GO-2026-5622","GO-2026-5758","GO-2026-6444","GO-2026-6597","GO-2026-6791","GO-2026-6796"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5f05b1f5c2971e396d88d2d218ac6c1efca96970c0e03a36b09a3a12cff0b43"},"properties":{"dependency":{"package":"github.com/docker/docker","version":"25.0.6\u002Bincompatible","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2025-3829","GO-2026-4883","GO-2026-4887","GO-2026-5617","GO-2026-5668","GO-2026-5746"],"reachability":{"kind":"production","file":"pkg/app/master/inspectors/container/container_inspector.go","line":34}}}},{"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":"9dc68b30a84b984d477e53041094b31bcb9bc5a744edd65b8f81f8de092ecf37"},"properties":{"dependency":{"package":"github.com/sirupsen/logrus","version":"1.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2025-4188"],"reachability":{"kind":"production","file":"pkg/third_party/compose-go/cli/options.go","line":31}}}},{"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":"0bdf6e35fb4ce52ab3acda8c9d66343766f932e0b638e368be42c0e8b4377b74"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.47.0","advisory":"[GHSA redacted]","aliases":["BIT-golang-2026-33814","BIT-golang-2026-46600","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78669","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-4918","GO-2026-5025","GO-2026-5026","GO-2026-5027","GO-2026-5028","GO-2026-5029","GO-2026-5030","GO-2026-5942","GO-2026-6603","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6617","GO-2026-6860","GO-2026-6866"],"reachability":{"kind":"production","file":"pkg/app/master/probe/http/httpclient.go","line":10}}}},{"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.2\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":"54a6e8c46cc40c16a4db28ace71087568139f16b2a87a98fc94e559e2970b3f3"},"properties":{"dependency":{"package":"github.com/moby/sys/user","version":"0.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2026-6686"],"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":"1015d72eada832dbef6d9a1fe8da3c54ac3e7f340a51ef20d8d8494a510c5b0e"},"properties":{"dependency":{"package":"stdlib","version":"1.24.0","advisory":"GO-2025-3503","aliases":["BIT-golang-2025-0913","BIT-golang-2025-22871","BIT-golang-2025-22873","BIT-golang-2025-22874","BIT-golang-2025-4673","BIT-golang-2025-47906","BIT-golang-2025-47907","BIT-golang-2025-47912","BIT-golang-2025-58183","BIT-golang-2025-58185","BIT-golang-2025-58186","BIT-golang-2025-58187","BIT-golang-2025-58188","BIT-golang-2025-58189","BIT-golang-2025-61723","BIT-golang-2025-61724","BIT-golang-2025-61725","BIT-golang-2025-61726","BIT-golang-2025-61727","BIT-golang-2025-61728","BIT-golang-2025-61729","BIT-golang-2025-61730","BIT-golang-2025-68121","BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","GO-2025-3563","GO-2025-3749","GO-2025-3750","GO-2025-3751","GO-2025-3849","GO-2025-3956","GO-2025-4006","GO-2025-4007","GO-2025-4008","GO-2025-4009","GO-2025-4010","GO-2025-4011","GO-2025-4012","GO-2025-4013","GO-2025-4014","GO-2025-4015","GO-2025-4155","GO-2025-4175","GO-2026-4337","GO-2026-4340","GO-2026-4341","GO-2026-4342","GO-2026-4403","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"pkg/app/master/cli.go","line":137,"symbol":"os.Create"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"362d19fbc20680c130f6d3f829465778e97203407075f4ceb76a4cf0cc41a027"},"properties":{"dependency":{"package":"golang.org/x/sys","version":"0.38.0","advisory":"GO-2026-5024","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76d999f7f0da1c7805a61d7a77ca6e9d78cdf7e7d953cafe7b73d81759ae1a99"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.31.0","advisory":"GO-2026-5970","aliases":["[CVE redacted]","[CVE redacted]","GO-2026-6629"],"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":"34d92b4e8ceb16a1fd57062952c6ce862546a7f5a590d99835b621f385dc5d89"},"properties":{"dependency":{"package":"golang.org/x/mod","version":"0.29.0","advisory":"GO-2026-6179","aliases":["BIT-golang-2026-56864","BIT-golang-2026-56865","[CVE redacted]","[CVE redacted]","GO-2026-6180"],"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":"ea90d4a89ed124d75960342bec5214b8c2deeb745d761dd1ad2ac6b2ada907df"},"properties":{"dependency":{"package":"github.com/gorilla/websocket","version":"1.4.2","advisory":"[GHSA redacted]","aliases":["GO-2026-6278"],"reachability":{"kind":"production","file":"pkg/app/master/probe/http/wsclient.go","line":7}}}},{"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":"0b1013fd5ae954fc1908c1fca05eede76ee0a49e972b6a1e1c738b4165d94c13"},"properties":{"dependency":{"package":"golang.org/x/sys","version":"0.0.0-20200323222414-85ca7c5b95cd","advisory":"[GHSA redacted]","aliases":["BIT-golang-2022-29526","[CVE redacted]","[CVE redacted]","GO-2022-0493","GO-2026-5024"],"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":"dc57ff7d0cb3e75f67cb3402ab2ed22b29b8f91c70a41719068d21462c7f74e7"},"properties":{"dependency":{"package":"stdlib","version":"1.16.99","advisory":"GO-2025-4006","aliases":["BIT-golang-2025-47912","BIT-golang-2025-58183","BIT-golang-2025-58185","BIT-golang-2025-58186","BIT-golang-2025-58187","BIT-golang-2025-58188","BIT-golang-2025-58189","BIT-golang-2025-61723","BIT-golang-2025-61724","BIT-golang-2025-61725","BIT-golang-2025-61726","BIT-golang-2025-61727","BIT-golang-2025-61728","BIT-golang-2025-61729","BIT-golang-2025-61730","BIT-golang-2025-68121","BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2025-4007","GO-2025-4008","GO-2025-4009","GO-2025-4010","GO-2025-4011","GO-2025-4012","GO-2025-4013","GO-2025-4014","GO-2025-4015","GO-2025-4155","GO-2025-4175","GO-2026-4337","GO-2026-4340","GO-2026-4341","GO-2026-4342","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"pkg/third_party/compose-go/cli/options.go","line":22}}}},{"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":"f8c8731b4c2684e1b60c2ca50ac93ea0345bd07b2e28d596d89d558bdaaac0e5"}},{"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":"39990752b2e85e56e491ae2366abc8ccfc2f0a38525f97dd5306ee2c52229832"}},{"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":"c2c8a46db0bfff05218521bc3512d514c03e77318ad2552c73db0c1483431b20"}},{"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":"b8847263a1687bfaeae4d6976cf6f1f17963dcd4b64d46a2d42ef7ca75b5c4cd"}},{"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":"ca60d6bb22255e376382bbde4aea485acd41dd5a74c6a43acd48f526f9c38273"}},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 119 of 120 significant files have no living knowledge, while the repository is still being changed at a low rate (1 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 119 separate risks. Counted over 120 of the 283 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/sensor/artifact/artifact.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66712c453eb5aae5453efa5bd060abff5230d6abea6c1363e15d9329c769bd1f"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/docker/dockerimage/dockerimage.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab0c421b54b0ee2f7efdef46903ced6b12e96483b3ad54ca500af466e930206"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/compose/execution.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3466777c321c7a2ba43955888e59694da95909cc60eb0d72bb7766ebc4994ad7"}},{"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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34f3327fc486aba80d8010ce37084f69f5c2985074c7c7e40869ce90138257f"}},{"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/app/master/command/xray/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08b7423950e4fc4d676632b57c1af8d63dade94354558d3c218b55e7edad75c"}},{"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/monitor/ptrace/ptrace.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bec8e30116da640f15a2daf0d995b30096369c81b40d4fcab9a050d5e8adc0"}},{"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/app/master/command/cliflags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"551f4ab2c4ac27c4f4845aa3c0e72dc45bdab833c1384e6b75ef18ddd43012ce"}},{"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/util/fsutil/fsutil.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aa6e7da8f2b7d38e3cf0ab637d54ca78d6a39236f7bb66ad48192a62c47ea4"}},{"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/app/master/command/debug/handle_kubernetes_runtime.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34532b0478400d324a6bedd2525a19b95dee777baab3ff0149f4f5637d475c42"}},{"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/docker/dockerutil/dockerutil.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a756a01832427513c6a90d7f3e69d5bd1c42d004c017097d9f99677b825034b6"}},{"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/app/master/inspectors/pod/pod_inspector.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdb71224e213b7c3993c6d5f88a4811522877b160c94f98a4ca348bd632d89a"}},{"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/report/command_report.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf06bed6668b2097bc37a1f526aad1c3d800968fdea5fe9ad7929e360438120"}},{"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/ipc/channel/channel.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec763449b165fc6a1eea40284b98b6dae2e35df24b53e7d513975887b5f72d1d"}},{"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/app/master/probe/http/custom_probe.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc9233600e1d7ad24f686a5c3069bec35f7db39599e29541e657cefe433c13d"}},{"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/app/master/command/xray/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bea80e5219d5d5ae880368d67021c48c5a7013695e245cf0a760306ed67509f"}},{"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/app/master/command/clifvparser.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"986b8d5cee4d9424b67873ee53f5801603aa1cc88cfc3527a92c587bf38c36d3"}},{"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/app/master/command/profile/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6237b663b3d6ae5096ec0a3f58e4a4850c6f7dadd07ef68edca57e4eedd9ae1d"}},{"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/app/master/container/execution.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe65d3b46f2371f18ef416873d760556f50cd78852fb50c02daacfc6b07201ae"}},{"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/app/master/command/cliprompt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fb5403bb058fa955825abc30511f312c47c767921b921856f68bb65ec78420"}},{"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/sysidentity/sysidentity.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3402d597f467a3d8155969abc9f12315bed22dffc5894d0ef6bed46c5dfe2f74"}},{"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/vulnerability/epss/api/api.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0d6cba1361299e54b5356cec46c158d1677b363c2eb1384f1a566d8b734170"}},{"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/app/master/command/xray/flags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f030b056d9d43861cc16125ac57464a32a6ee98c1aef8d2ee5c26c87ac822f"}},{"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/docker/dockerimage/metadata.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b409252c43adfd9c27e78f97e44f8e9a4496b3ae06e53c57bde1c24d408966"}},{"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/app/master/command/clifvgetter.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7cb8fe4c06f1285ed8c2bed8b24c986aa758faa13a8fd7b1353a5596de952f"}},{"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/app/master/command/merge/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73113406fd30d107447efe8df95d4665bdb40a163fde5be46b80424328e6032a"}},{"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/app/master/inspectors/image/image_inspector.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f9c8305eeab505f973bdb310df9401788063bfcd15c579100c5ce86000ed92"}},{"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/docker/dockerfile/ast/parser.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a24901606ae8a7ad3e2ed0e073c2987ac179e750731ffed7faff820336864a1"}},{"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/appbom/appbom.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2817fb8dee9bc0128cc026f2ec4a056f2afe0ba6fc4541dc9c1599a1b8be0506"}},{"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/app/master/builder/image_builder.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5a3fdb2060f32f9935714ae1e5abda1524cadcbd4dee796c1843ed792493c1"}},{"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/docker/dockerimage/packagefiles.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ec476a4e9d8c39a446695e3f1eda0aff56e4fd5e98893918005f3ea8a163b4"}},{"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/app/master/update/update.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ae5535f7a8c9789032507f3daab3f63e6afd3feb63e69f3c207f2018d29072"}},{"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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea8e4dd20504a4e03bfc5df69a2421ba2794e5cc43bfb16f1f5f9dadd506357"}},{"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/app/sensor/app.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79459786d2738479ca010507401c7b1458579e962bbbecebf11a06ac0ccfb526"}},{"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/app/master/command/profile/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2206cbf22915f9d466a8b90aabf4f0065e511b1e47e53d3db241d34d5aae955"}},{"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/app/sensor/monitor/fanotify/monitor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e89b12933a4b3f908b4a504003a7c9250d8a1025a1ad1e37034b4f48d0a9719"}},{"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/docker/dockerfile/ast/line_parsers.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ae0fa62a1f2da1142f4da0a12035283e07adefc451c4794ef137a6ed1c32eb"}},{"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/app/master/command/debug/prompt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"866bf90631f3c14512287874e85b5c5af7633c15bd42680fcffe515ac98842b2"}},{"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/docker/dockerfile/parser/parser.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cf44e43c13db215d202508b05942ea1358dec2b8266176a74851e8ca739b2c"}},{"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/app/master/probe/http/swagger.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"662f3c829d8e60327b12af1833e06b462097e5a0ac52a3ccfc44d9f217a79797"}},{"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/app/sensor/monitor/composite.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e8d9f7b4dd377aa3e8c4ae301a968a210f29dce538b86f4f4da38ab43aa150"}},{"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/imagebuilder/internalbuilder/engine.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dfb4d9c2b29dbc6f3de8a10ccfb61a233cd3a94730e278401870e9320d79df"}},{"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/app/execontext.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f06c2159af8845974678e6ca7436edf6dd994ac0314f79d4558bba5a4cbe7af"}},{"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/app/sensor/monitor/ptrace/monitor_arm64.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a01bef8acf9f3c39b14f14a8e1da9a50484bf37e875277656607fee0961a9c"}},{"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/app/master/command/profile/prompt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea3757fb215260a2b306b3c2a6792ccde54b61a2fb9ff677c657bf0d2d6341d"}},{"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/certdiscover/certdiscover.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4359ae82e8e313fee2f29a6840a63cf8f385dbbd562a1a553a220a5b0f504f"}},{"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/app/master/config/config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e6e837581529e3db5ef162110da957bdb9e74b9cd0bea45d095ddf17fd5c61"}},{"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/app/sensor/standalone/standalone.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7647d264f969ae5e0670d5f5904ccf806aa3d81b3900b17721d0cd1047d0de4d"}},{"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/app/master/command/registry/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"974ab8d8624265679d02435aa44284ef2dc607bde30562e36306876e4c7e0e54"}},{"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/vulnerability/epss/data.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"744f001d0ace08dbebc6a967a6dccf9767fb2cf0938875df403c8e18846fe7d4"}},{"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/app/master/command/common.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9135669fa58bd20c3d53d74f13a6525944096c5912d559e17985ea4b8cff12b5"}},{"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/system/syscalls_armf32.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ebcdcae1c49b6c47acd02aba7873815ed9d80d5765850f93899b339b0db1f9"}},{"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/app/master/command/registry/handler_image_index.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"998bfd4de37ba02ef7183826ecdc383cec6cd8a3d2fc9bb29b22bdedf5032e85"}},{"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/system/syscalls_x86f64.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"091418804b1754910af6963e0f7b4beeda953551440a8338bb0aeda6416a5e85"}},{"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/app/master/command/debug/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2cb2d7f8a4e98efd072ae255bfd3a087bdfdb8bbd52639cdf2f0820ca5a376"}},{"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/system/syscalls_x86f32.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49c705ea7872ad022e1a87903d32afe7acc4fec159559c32798498f8790d82b"}},{"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/imagebuilder/imagebuilder.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"101c8f63a3af91b90838be64558da58c7cfa1253a38aa558c3444b79db15f2bd"}},{"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/pdiscover/pevents_linux.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54ba92a43d42e32bddbe2924d305c2941ba58d1af30a06c19177e373a1afe43"}},{"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/docker/dockerclient/client.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d1f50a475a318e9d79aa994909520b68bb38b48c4216e9d9c8c60b0356a4b2"}},{"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/report/container_report.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daafbb2c27e2e0811f0570de0ea987f634ea3ebec8813925bf493ebac0795974"}},{"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/app/sensor/controlled/controlled.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f25089239642e0d5b6f1a8f23b880fca521485b57a22befb4a2cbef3c93cc7f"}},{"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/app/master/command/debug/flags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65594f5bb05097b0fc305e7e94f273b5366409927c4f7b9dc48e9929570788c"}},{"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/app/master/command/vulnerability/handler_tool_epss.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc30229cc98f63601ee7be8a68b37cee5fd4931f20db287a5c080fd43494ba2"}},{"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/docker/dockerignore/dockerignore.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a89e1102ec98c1b10ab93c5754fe282d0bb3021e733c86a9b180143e5bd692"}},{"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/ipc/command/command.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89a243380cbe9a73a3d3d420a3407ea0e2dd6ce9fea2f2875cca20a2a24da2e"}},{"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/app/master/command/lint/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3415cbb345349b47e754cabc748cd4101a8241405623aa09cca795adc09e5b"}},{"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/system/syscalls_armf64.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16b141299b2f86254c017b64b06e4e95025e4ba105b4ca0fb09ad6d1a8f06e5"}},{"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/app/master/command/registry/flags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6496cc3ef0282504831488b16d482ac4debfac594380afa8e5fb1bd6bbafa4e9"}},{"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/sysenv/sysenv_linux.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3b45a8c26cb75ea1a641854103b8f75a4bea1248639bd47561334dd7a5e757"}},{"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/app/master/version/version.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b874a179a7babc69c221048a7800531f1769ddf4c46e3cf8d4461f6b85d2bb6"}},{"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/app/master/command/xray/prompt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd018c96623a375a1b95dacc1b58438533b2a0b10ad5cf4339cacc920ae47c47"}},{"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/system/os_shells.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d9f2de83c2a6d64444c73ff99c2ed58587085faf1efbd8e4e3a3ff277f5bc4"}},{"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/docker/linter/linter.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f1ab3fd64ce18afba4ddb27899dab23077c4fdaa8d2ca96fa11d88eb4eb7a5"}},{"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/app/sensor/inspector/sodeps/sodeps.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c0abd10789d9622b162b8e0b3fc94ea13d63d5ef82f47ced0b9163666d6146"}},{"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/vulnerability/epss/client/client.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c3eb9d34fe1aeaa8c31d9f8a0f2a09f82b4483e001b4ed177a0598d99618a4"}},{"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/app/master/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8baa029d8066d6235c5156d44bb1c13bf2979a7117ef911c1ceb5c8a3014cb"}},{"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/lambdaproxy/lambdaproxy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da469388bb2011c122956d4561813f0c2ce4313770783642e79a526d9d1d786"}},{"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/launcher/launcher.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a9b660865badc68408743ccf378544c520cf188046f4250b78d527e81217c9"}},{"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/app/master/command/run/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b1e88926707d61d8718b889baa84c8526bc7851cf8ffca3580528248c307fe"}},{"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/app/master/probe/http/wsclient.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede142f9e85c6ec3275b54631e2ea7d9a51bebdbdc46cc18c9aba884e37dc9f"}},{"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/app/master/command/registry/handler_push.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdbfa683637b7111c3ed865f20962f9b6e370348905fb223433d106930e695c"}},{"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/app/sensor/execution/standalone.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90aa93fb02de768508acefe617f424dafc48d0845b6e840582dca5573d1b0252"}},{"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/app/master/command/vulnerability/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55904b98754ac64d2c6855296abe88108326a8300c5a5b23b1f9f6e63d7ba37"}},{"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/app/master/command/install/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdc6e7744c4257b9e81373e8c420564d6ab4045beeb88ae9ef6565c94d6b2d2"}},{"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/imagereader/imagereader.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f0fe0dc41d49857d4631947d0c9a83cc3797c15d40d68f40c1a579f3a3bc77"}},{"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/app/master/kubernetes/workload.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"460d7fce6c9b7c057af6bb6649b74cc3e1e422237ecc364f28eefb86841460a5"}},{"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/app/master/command/lint/flags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e6f307d1f2651a0b25eccc9ea4d7f3f91f0588e7f82019cf2922f0000bcbf0"}},{"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/app/master/command/registry/handler_pull.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13042108fe8da60dda422428542c2249df5ca7246d4089999ff699c32c48bb0c"}},{"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/mondel/mondel.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9885bd483195b47a7bde08d9f537336d2ad94eeb3fe032d8f46056a8cdf2b1fd"}},{"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/app/master/command/vulnerability/flags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5d0527b4c7ee50dd46e3e1d6621ab89bf8b5176b0f64df2c5d46840953f53f"}},{"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/system/os_release.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f8f8799330aa282481c3605658d1c8498bdd404adea2ada21b8974ccea9062"}},{"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/app/master/command/registry/handler_server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"971d4bdd2d6b2e12ade67a17dd56eff6b46205e6e28f954a2e7a7664c9c0a4cc"}},{"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/app/master/command/debug/shell.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f111b700b3fd9ce00dde1c7242cd8fd4667a45d3ac6de4d74fffa73f3625ed24"}},{"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/app/master/probe/http/crawler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cbc1506cd4aa933e2b81077b76e4f1de8086b116929b4d184dfca6b792f7fa"}},{"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/docker/dockerfile/dockerfile.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9198d22c071806de2ac44fe64c1f09006b18ca3a05b2c25245d3071045f954f"}},{"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/pdiscover/pevents.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3af2b2cf2512cf45f688bbccf83c19de69113337da8c11f42ec4d3105e9495c"}},{"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/docker/linter/check/id20018.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8aa6eddb079a39b67b0a8d0a5815ab5a404c7ad08b5f6948758c6cc3b041574"}},{"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/app/master/command/lint/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f692d6f6790f4cb4636f2aff2459acfa409be8cd7f04c7e4cb353ca3d924f83"}},{"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/app/master/kubernetes/kubectl.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b521c823edaec39b34fdaf9466e0de15b8e5d9e75d8f32d64ee4ba120b4ab52b"}},{"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/app/master/inspectors/ipc/ipc.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48ce2e9e48ec567756815675ae67456fba1d9148b860bfa922f5dfc6d2aca60"}},{"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/app/master/command/lint/prompt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5106bd2376cae261ca0c9d8e0d5d626b1c2331b010026e5303b404e8a5bbb91"}},{"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/system/kernel_linux.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a650ac75fb62c4b44ce0223cdeaab23c6ee8fa6fa4fac32863cf7ee806b3e559"}},{"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/app/master/command/debug/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2287a4bf3d694a274781ebccb0491921461955a1e0f39fdbc4a16f328f000691"}},{"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/app/master/command/run/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfa66b0660527de6f65c1ead0c58afc3d878630c2622e96d1e021b2ab045534"}},{"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/app/master/command/images/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8a496896f369908cecf98e0c7cd462661799628f7e3bc8ed013fd4b0f1ab3e"}},{"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/app/sensor/monitor/ptrace/monitor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"756aaac5cb13834d2b04752cb056a6a0bb4104694c22440513a3bed8b3c6edf7"}},{"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/util/errutil/errutil.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02f6a429618a647498ad23ae16290362696df5caf0cf24b26521e6e2af38a88"}},{"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/app/master/security/apparmor/apparmor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e43febdfcf709a14671f1f92b94430f3e48a965fda29ab50f2f18882970c16"}},{"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/app/master/security/seccomp/seccomp.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5aa3ce4d41386e0808f4bd4ac1b26b6df2becba8d372c72e6dde63e3f73888"}},{"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/docker/instruction/instruction.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d769c11e1288ac82865db5b8e5da249e0d1dd4cde7fbeb89fa497a824c970ffa"}},{"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/app/sensor/ipc/ipc.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f238000a34b2ae25885235b93483decdeafdabeffe0780ad59339a65d4daf"}},{"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/docker/linter/check/id20005.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93b8738e0afd1890ce844c28f2fc4cdb72c06533a345861042af396f9a4015b"}},{"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/app/master/kubernetes/manifests.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40ebc98bce29e7fee81bbf63935f616a4d968e93d2474e19b0e774940a8e89c"}},{"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/app/master/command/debug/debug_images.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5841fe62cfd2d45cb6eb2a6ea90b522a12e484c3d4222a6e36fbc2de63fa55"}},{"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/app/master/kubernetes/client.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73587d3890ef57e31058c1bbd3a75b81062a8549852c5ec760db5816143467ac"}},{"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/app/master/command/probe/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f87da64a75d784c5f5eabea13a61837b745fb6d07cebdc65e29cf9ef4929ff7"}},{"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/app/master/command/appbom/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0035e0506bf851d0624fffac8bc4fa33770b5c7071f77344c55a95def54eea7b"}},{"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/docker/dockerfile/ast/split_command.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02268d5897cda0e53e786aa80d83c58a483d71f422ba6ca3e6038f521faa0d38"}},{"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/app/master/command/probe/prompt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec7e6f37aecf931aee1a08ab7aa5b8c43e30290e59919ff9d936754102c3c0c"}},{"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/app/master/command/merge/cli.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf010b196548046ac41aaae7fcd45172d7f1d2f738e8b3ac03c3ac1dfda27cd9"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060devent == nil || devent.ID == \u0022\u0022 || devent.Status == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 pkg/app/master/container/execution.go, pkg/app/master/inspectors/container/container_inspector.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/app/master/container/execution.go"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1430017e3ebb35f37f40c84db0eb3618db5b41ed480b3d70a1177e4394b67189"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gparams.InContainer \u0026\u0026 gparams.IsDSImage\u0060 appears character-identically in 16 files \u2014 pkg/app/master/command/cliprompt.go, pkg/app/master/command/containerize/handler.go, pkg/app/master/command/convert/handler.go, pkg/app/master/command/debug/handler.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/app/master/command/cliprompt.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b43bed3bbabe64caa53670f323bd4e043cbe1f37840ab6faa7e48884f3f73a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060imageRef == \u0022\u0022 || imageRef == \u0022.\u0022 || imageRef == \u0022..\u0022\u0060 appears character-identically in 2 files \u2014 pkg/app/master/compose/execution.go, pkg/docker/dockerutil/dockerutil.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/app/master/compose/execution.go"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d08cc4c58010309886647f2f5574fd5723757f8e87a947c49f536b8df32619d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(commandParams.Cmd) == 0 \u0026\u0026 CgrSlimToolkitDebugImage == commandParams.DebugContainerImage\u0060 appears character-identically in 2 files \u2014 pkg/app/master/command/debug/handle_docker_runtime.go, pkg/app/master/command/debug/handle_kubernetes_runtime.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/app/master/command/debug/handle_docker_runtime.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6196d19ea205adc88b0d6b0af491a4657363e7ab36605f463fcea60238c1dd87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ok \u0026\u0026 exitCodeStr != \u0022\u0022 \u0026\u0026 exitCodeStr != \u00220\u0022\u0060 appears character-identically in 2 files \u2014 pkg/app/master/container/execution.go, pkg/app/master/inspectors/container/container_inspector.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/app/master/container/execution.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f8a02ccffc7df95ab4469bab46c100e37dfe2926388aa57831959070b75680"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.IsTimeout(err) || err == channel.ErrWaitTimeout\u0060 appears character-identically in 2 files \u2014 pkg/app/master/inspectors/container/container_inspector.go, pkg/app/master/inspectors/pod/pod_inspector.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/app/master/inspectors/container/container_inspector.go"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76669bab2fa29c1cf23244f4f84b3a511a21fc59ed8ecd25e5dc204fd0d61ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060socketInfo == nil || socketInfo.Address == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 pkg/docker/dockerclient/client.go, pkg/docker/dockerutil/dockerutil.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/docker/dockerclient/client.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04e474e3cce9b5a4e4dec71bfe556f0d437d074cd6a94883dec724ac1c92b98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.HasPrefix(vol.Source, \u0022./\u0022) || strings.HasPrefix(vol.Source, \u0022../\u0022) || (vol.Source == \u0022..\u0022) || (vol.Source == \u0022.\u0022)\u0060 appears character-identically in 2 files \u2014 pkg/app/master/container/execution.go, pkg/app/master/inspectors/container/container_inspector.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/app/master/container/execution.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1631648b6ca47a46e069d062fc0dd3c4399c58f978c823779500fa2aa1db420a"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context: Only 2/9 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: NewClient: \u0060NewClient\u0060 calls \u0060net.DialTimeout(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/ipc/channel/channel.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2efc7b50204fd20d6e6b5f673b9f603e9c017df37d2fd647f71ebac79031418"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: Check: \u0060Check\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/app/master/version/version.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f25e628e2e6a5c8e09be187482a6d49e87ca62b3b6543d5c6499bcd07ba3a4"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: downloadRelease: \u0060downloadRelease\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/app/master/update/update.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f871624998f208d482dd0c057907fd22e4d813a77629039917ea0d223a372c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: isGoodDownloadSource: \u0060isGoodDownloadSource\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/app/master/update/update.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87ec3924841bbcf1a4e3fc6055d2eb9a10f8ac5b2f17ed329a64830acd243a5"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: getHTTP2Client: \u0060getHTTP2Client\u0060 calls \u0060net.Dial(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/app/master/probe/http/httpclient.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b2431dd035522e6e65bb65523bf40bf6758b0aef5a53a954ce83be9e8b46d0"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: loadAPISpecFromEndpoint: \u0060loadAPISpecFromEndpoint\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/app/master/probe/http/swagger.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7e2bfe1c429a371d2618ef8acf8fd41139bbc6b3c3fbeca575941d2e00a0df"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: apiSpecEndpointCall: \u0060apiSpecEndpointCall\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/app/master/probe/http/swagger.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3223b61430db639b4d076f67be8072a4e94408d5b49931199eb50f564328b4c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := os.Stat(target); 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/fsutil/fsutil.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f655833351bd4d9b9fcc9cecf68d4a3430a813772916a8c097fa2ea4f9fb10"}},{"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/fsutil/fsutil.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3d4b29e637e3a291985a7bb0e1e8d3e549a86bcdb128feaa75017a1e1301ca"}},{"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/fsutil/fsutil.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fff6c7e4feed796e614e426e1a663c28dfdb45cf9618b9c7e4747b1f87ae46"}},{"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/fsutil/fsutil.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32fdb329fac569e92b9a6ca2fc573584188c56fd3e8c9bbcc8e245e4c1554b5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := syscall.Uname(\u0026unameInfo); 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/system/system_linux.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3a8b89e5db86869e306c25b4ed2489a80d50287858128b2dc55c7e8cc51a48"}},{"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/system/system_linux.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d48085c20149c72f6215d2acab392afb8693bec2b437fddd197e490213b1df"}},{"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/pdiscover/pinfo_linux.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0b8ce4af45024b88502d575efc5d55980a154b348c689bf47e5e220ddca930"}},{"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/pdiscover/pinfo_linux.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b678154bc85087a633b4df2f98dbd93342af773aba1fd60c07b44da7c3e92737"}},{"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/ipc/channel/channel.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a8a3ea920e42765e479cf0efa3c04e4739c423887cf7384afd62bb1d25c502"}},{"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/imagebuilder/internalbuilder/engine.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"288913f4fce41a0b17bdf784363cb12d7229f42008715c162aaa7ae16ee3de8a"}},{"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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cf5951ce19bf8a6adbd45a2dd44cddceb5e637c856b344d418cbcfe7e7ac44"}},{"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/docker/dockerfile/reverse/reverse.go"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"035eebf61528a2b8f49d5849c7f7405ecbf1587d1ad0b691be593c3433c20b4c"}},{"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/app/sensor/artifact/artifact.go"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"242923c8b3240f4d587e0bb34cb22f83b4986977cc56513247984d38f7772940"}},{"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/app/sensor/artifact/artifact.go"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d701dc65fd6fc6383a9d2fb77dddb034b398c16de4e06a7f3e92fbac78d7d394"}},{"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/app/sensor/artifact/artifact.go"},"region":{"startLine":2319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcde9ee77dcf7930ec329853c6886f655882a9bbcf6ee46ab051b5235b3c802"}},{"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/app/master/docker/dockerhost/host.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbc86b22cc8ab7b6f958c8cbcb14840d63ef3f91d95675dd3a625b7a50c5c2e"}},{"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/app/master/docker/dockerhost/host.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b6dbe2ec22b0ce2c0b8f5cf6d9441070422edaf10594c0f4bcc15a29f69524"}},{"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/app/master/container/execution.go"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4ee65e65fc437ba0981f88033978be4dec4630a63ddb853a8b0a786f934649"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-242","guid":"5c147e5c-be37-b051-9928-764ef5a8f3d3","name":"CWE-242","shortDescription":{"text":"CWE-242"},"helpUri":"https://cwe.mitre.org/data/definitions/242.html"},{"id":"CWE-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-276","guid":"4e27da05-61af-1d5c-aeb5-9f56b6ede3e3","name":"Incorrect Default Permissions","shortDescription":{"text":"Incorrect Default Permissions"},"helpUri":"https://cwe.mitre.org/data/definitions/276.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-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)","shortDescription":{"text":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-400","guid":"ca529a89-676d-8857-aac1-84359c77bb6c","name":"CWE-400","shortDescription":{"text":"CWE-400"},"helpUri":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-703","guid":"fa730aa9-95e4-845e-83fa-8169f2cf339e","name":"Improper Check or Handling of Exceptional Conditions","shortDescription":{"text":"Improper Check or Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/703.html"},{"id":"CWE-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":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]}],"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":57,"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."]}]}