{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"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":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM12","name":"Ambient inputs in the domain","shortDescription":{"text":"Ambient inputs in the domain"},"helpUri":"https://codehealth.canine.dev/dimensions/DM12"},{"id":"DM2","name":"Strongly-typed ids","shortDescription":{"text":"Strongly-typed ids"},"helpUri":"https://codehealth.canine.dev/dimensions/DM2"},{"id":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"DM7","name":"Repository granularity","shortDescription":{"text":"Repository granularity"},"helpUri":"https://codehealth.canine.dev/dimensions/DM7"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"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":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.FillOutSpecGen (cyclomatic 208): specgenutil.FillOutSpecGen has cyclomatic complexity 208 (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/specgenutil/specgen.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1817b94224a91f40281a0cff9070cf41c971db69ffa34d87daabbb50bc827ff4"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.generateSpec (cyclomatic 157): Container.generateSpec has cyclomatic complexity 157 (threshold 15). Of this number, 155 points are the body\u0027s own statements and 2 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":"libpod/container_internal_common.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"509e6d7f71fac1d45b0f41320c282f93bb5205d97edbdc562781dccf7f483e97"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.playKubePod (cyclomatic 129): ContainerEngine.playKubePod has cyclomatic complexity 129 (threshold 15). Of this number, 128 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/domain/infra/abi/play.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"732a61b1fe0c6bdde131014e2ce519e0059e0136dffe43865eced57bef962063"}},{"ruleId":"D1","level":"warning","message":{"text":"images.prepareParams (cyclomatic 118): images.prepareParams has cyclomatic complexity 118 (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/bindings/images/build.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f89ebeba068d38e97411f3e304919e061ea6ed5803a31cf80f2536c6a8e393"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.createContainerOptions (cyclomatic 111): generate.createContainerOptions has cyclomatic complexity 111 (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/specgen/generate/container_create.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"356f661edf0e81a7abfe91ec9351b105bf7b9290a1fe6cdf6481f2f126db233d"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.restore (cyclomatic 105): Container.restore has cyclomatic complexity 105 (threshold 15). Of this number, 98 points are the body\u0027s own statements and 7 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":"libpod/container_internal_common.go"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bc0b728d253e56e599f2a4cfa1e08a577e9100da49bb37b0a6a276b08f3ef6"}},{"ruleId":"D1","level":"warning","message":{"text":"kube.ToSpecGen (cyclomatic 104): kube.ToSpecGen has cyclomatic complexity 104 (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/specgen/generate/kube/kube.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"18af6d3d659cb0e45b18f3b7e3fc467e9a18eda9f57daea1676c0055eebe3069"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.setupContainer (cyclomatic 98): Runtime.setupContainer has cyclomatic complexity 98 (threshold 15). Of this number, 94 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":"libpod/runtime_ctr.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6966a4bb786529c8cf17e70503dac51e1c7b57f3c4803bbdac31eb66afe70a93"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.namespaceOptions (cyclomatic 97): generate.namespaceOptions has cyclomatic complexity 97 (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/specgen/generate/namespaces.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d45042da8f2ed53f54b91f8936d094fc0ace74d654721cabfb908441074f825"}},{"ruleId":"D1","level":"warning","message":{"text":"common.buildFlagsWrapperToOptions (cyclomatic 96): common.buildFlagsWrapperToOptions has cyclomatic complexity 96 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/build.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f3aee65d9d9f0a4f53d179dbf9b9d27e767fb856135ccd10d72ebe22384ea0"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.cliOpts (cyclomatic 92): compat.cliOpts has cyclomatic complexity 92 (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/api/handlers/compat/containers_create.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afe6d6389cc6fa0ccb7a492a02fc3105df7d218de14842c03aa5eb1a4aa60fb"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.MakeContainer (cyclomatic 91): generate.MakeContainer has cyclomatic complexity 91 (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/specgen/generate/container_create.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"549c15037bc4e4b93112f247aceb0a04b89c05930219cf13cc80862c02b11748"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.createBuildOptions (cyclomatic 88): compat.createBuildOptions has cyclomatic complexity 88 (threshold 15). Of this number, 84 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/api/handlers/compat/images_build.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"726732d6d5e6a0774266f903e78d98b1200053bf5a4485a69058cdf62b09af14"}},{"ruleId":"D1","level":"warning","message":{"text":"filters.GenerateContainerFilterFuncs (cyclomatic 85): filters.GenerateContainerFilterFuncs has cyclomatic complexity 85 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 42 belong to 9 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/domain/filters/containers.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5375a3b8a8f117e9841b28844fc3f6d9ca3d6b8f93d0d9bec99651dafdaf3c13"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.removeContainer (cyclomatic 80): Runtime.removeContainer has cyclomatic complexity 80 (threshold 15). Of this number, 78 points are the body\u0027s own statements and 2 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":"libpod/runtime_ctr.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e48a980e8e620d07ee1011042c6de20b28aae49f2d77592554854f993cff443"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.PlayKube (cyclomatic 77): ContainerEngine.PlayKube has cyclomatic complexity 77 (threshold 15). Of this number, 69 points are the body\u0027s own statements and 8 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/domain/infra/abi/play.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c4afd99b8e00cb8457d1d289b84a311c0ee17970d5fc1cd9189774a437e3d4"}},{"ruleId":"D1","level":"warning","message":{"text":"util.processOptionsInternal (cyclomatic 72): util.processOptionsInternal has cyclomatic complexity 72 (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/mount_opts.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade84788725f186c6fd49e35fde9cde22bb4138162395e9502a93c012365f59e"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.makeRuntime (cyclomatic 69): libpod.makeRuntime has cyclomatic complexity 69 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 9 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":"libpod/runtime.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3890b2b8ef9915b34aae4644116fe9b4ba0844b2a4910ad563c1505a4c3f13ce"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.validate (cyclomatic 66): Container.validate has cyclomatic complexity 66 (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":"libpod/container_validate.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dd0da5309aa5a2f8dd5697a8aab616219d03c99feae3b4bafb4fe43a038644"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.parseMountOptions (cyclomatic 66): specgenutil.parseMountOptions has cyclomatic complexity 66 (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/specgenutil/volumes.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7724833ba13f9ec253dc15005481e1cedfcd469a1e33144c2120fd7680ea3ee9"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.CompleteSpec (cyclomatic 64): generate.CompleteSpec has cyclomatic complexity 64 (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/specgen/generate/container.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f31968441038c9147a3b46a9ccee26f4b15010347eceb8ef59737c8a53223d"}},{"ruleId":"D1","level":"warning","message":{"text":"quadlet.ConvertContainer (cyclomatic 63): quadlet.ConvertContainer has cyclomatic complexity 63 (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/systemd/quadlet/quadlet.go"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce769e300a9c07b6f4af31203679215a32cbae0c5b2e736996ebb4f2875ad84"}},{"ruleId":"D1","level":"warning","message":{"text":"common.NetFlagsToNetOptions (cyclomatic 62): common.NetFlagsToNetOptions 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":"cmd/podman/common/netflags.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6b4f747e688d41161c0c0c66e1adec3f514bc72cf2f45bb4c9fb327cf833d0"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.makeBindMounts (cyclomatic 58): Container.makeBindMounts has cyclomatic complexity 58 (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":"libpod/container_internal_common.go"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bdaea0cfbf8d3caafd586f02e4bf7d479657e91abae8bafe78d1d0fc8bfe51"}},{"ruleId":"D1","level":"warning","message":{"text":"ConmonOCIRuntime.createOCIContainer (cyclomatic 56): ConmonOCIRuntime.createOCIContainer has cyclomatic complexity 56 (threshold 15). Of this number, 54 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":"libpod/oci_conmon_common.go"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ea646170a68717bdc7e40340acbab293548b87e87d0ac977cc991329279af3"}},{"ruleId":"D1","level":"warning","message":{"text":"filters.GenerateExternalContainerFilterFuncs (cyclomatic 55): filters.GenerateExternalContainerFilterFuncs has cyclomatic complexity 55 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 18 belong to 6 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/domain/filters/containers.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54ecfffc5fafcd96d2cad3c5677051cce4d720b15a3b4c959b5639abcbff330"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.CreateInit (cyclomatic 53): containers.CreateInit has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/create.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf9d7858d32fd3b333c7c24d7233747a45b07ebb514c71fde2ac65a6a51d23a"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.mountStorage (cyclomatic 51): Container.mountStorage has cyclomatic complexity 51 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 8 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":"libpod/container_internal.go"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ac9a0ebe69ddbe936420292c95ada882fd0916739c0fe788b950484707b40e"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.Attach (cyclomatic 51): containers.Attach has cyclomatic complexity 51 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 5 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/bindings/containers/attach.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ce886c050a6c19829fdc66ca79126100b7fc777006cbcd510603cc46dd170e"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.newVolume (cyclomatic 50): Runtime.newVolume has cyclomatic complexity 50 (threshold 15). Of this number, 46 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":"libpod/runtime_volume_common.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d163742efb93b9c5bf43c41923dcebbe00c5335d92f4c982323ae3ba717458"}},{"ruleId":"D1","level":"warning","message":{"text":"shim.startLocked (cyclomatic 50): shim.startLocked has cyclomatic complexity 50 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 3 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/machine/shim/host.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f94c056d9d3546da88b1045e5704a69711701acc48515f86cb976016de9477"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.ConfigToSpec (cyclomatic 49): generate.ConfigToSpec 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/specgen/generate/container.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6b88679b193d460516a65f6b8338aebc23421d9da7da50c23db19c01f86505"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.extractFirstWord (cyclomatic 48): parser.extractFirstWord has cyclomatic complexity 48 (threshold 15). Of this number, 47 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/systemd/parser/split.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8548342eccc7369a26e1bef250254dd2456013b944d51576d40fb7e22bfa7c30"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.ManifestModify (cyclomatic 47): libpod.ManifestModify has cyclomatic complexity 47 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 11 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/api/handlers/libpod/manifests.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"51367e120947a063f545538d29eb201158980cb07066820f6b815d7dd7ff6973"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.finalizeMounts (cyclomatic 47): generate.finalizeMounts has cyclomatic complexity 47 (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/specgen/generate/storage.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4c78290759abffde89f91bac04b507f1fadf9967a14f34fb5a8292cfd6c7b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.Reset (cyclomatic 46): Runtime.Reset has cyclomatic complexity 46 (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":"libpod/reset.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c181f0c1fcfc2b39842fb80c57a122e7a7d37fbfa8d2b4cce4f3c8b47fd6e32e"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecGenerator.Validate (cyclomatic 45): SpecGenerator.Validate has cyclomatic complexity 45 (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/specgen/container_validate.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4b8db7860dcfbeecce51ed38daa643721fb8bd254a462e1c62c22333271425"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.ImagesPull (cyclomatic 44): libpod.ImagesPull has cyclomatic complexity 44 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 9 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/api/handlers/libpod/images_pull.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1667b8949ba73362f6ccaeb44ca2ae70878ffbb2d7ad2c860c0b4ef9effb3836"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.restore (cyclomatic 43): containers.restore has cyclomatic complexity 43 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/restore.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0982c13c4c7dac8d9e7d31a7652af071a3fb5d1bef06f5037b88d81cf4f7500a"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.WaitForConditionWithInterval (cyclomatic 43): Container.WaitForConditionWithInterval has cyclomatic complexity 43 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 23 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":"libpod/container_api.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacb1130bdc80a51feb5334e9fd97895112079102748b612015fa21487f342f4"}},{"ruleId":"D1","level":"warning","message":{"text":"filters.GeneratePodFilterFunc (cyclomatic 43): filters.GeneratePodFilterFunc has cyclomatic complexity 43 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 24 belong to 7 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/domain/filters/pods.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c4fb713226c24678cd25b4ebddf8808f48418cc4db43d31fc2edf1adfe6543"}},{"ruleId":"D1","level":"warning","message":{"text":"infra.getRuntime (cyclomatic 43): infra.getRuntime has cyclomatic complexity 43 (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/domain/infra/runtime_libpod.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a6291a87d9fb5bc48d3d8348ec4b9adfd7fdb8c271aada6aaa46b581fcbc16"}},{"ruleId":"D1","level":"warning","message":{"text":"rootless.becomeRootInUserNS (cyclomatic 43): rootless.becomeRootInUserNS has cyclomatic complexity 43 (threshold 15). Of this number, 37 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/rootless/rootless_linux.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdde2b3ba50539f873a1ab2479b06e071764942ea7de2919f8e91cfb70dfaee5"}},{"ruleId":"D1","level":"warning","message":{"text":"kube.setupSecurityContext (cyclomatic 43): kube.setupSecurityContext 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/specgen/generate/kube/kube.go"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7e7b6fc44a5aa7014f600bed53dbdd673a276052d36c9ec9bfee83f86bb515"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.executeContainerTemplate (cyclomatic 43): generate.executeContainerTemplate 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/systemd/generate/containers.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0fb4c8d07da093d9370bfa5acd7c74c3ce4bb99946bee3c1512ebfcb62f0a7"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.cUnescapeOne (cyclomatic 43): parser.cUnescapeOne 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/systemd/parser/split.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5680f6e844fd76394a04c4b4dcba7e82b23e8215b65046771777bc159cb6ba03"}},{"ruleId":"D1","level":"warning","message":{"text":"main.persistentPreRunE (cyclomatic 42): main.persistentPreRunE 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":"cmd/podman/root.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7401cbaf226287dd1ae3cad1de02fbb3c6ad57782b2a77524b1efefc2157e1ad"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.run (cyclomatic 42): containers.run 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":"cmd/podman/containers/run.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d4a3530f3091435c8441eeef9fd681edf5b92177c14f3730620cf426d6a5e6"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.containerToV1Container (cyclomatic 42): libpod.containerToV1Container 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":"libpod/kube.go"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a617623152e9a6fc673ebfd5282fb8be6a291008b2eeb1f7f51f579df9e0304"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.update (cyclomatic 42): Container.update has cyclomatic complexity 42 (threshold 15). Of this number, 41 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":"libpod/container_internal.go"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a09c1f1e235e0f23787c417cd45391bf36331e5da60d699e0024863c43d7d1"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.readFromJournal (cyclomatic 42): Container.readFromJournal has cyclomatic complexity 42 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 24 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":"libpod/container_log_unsupported.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"babb82c991c77f15fec73ef751b6fac49c09b1059f80e039a2e43d14ddaf76df"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.GenerateKube (cyclomatic 42): ContainerEngine.GenerateKube 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/domain/infra/abi/generate.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"85eb0deaf9e13fe6f3201c5f4a4931906bba49b35bc8b6924f9a3450e1f04e4b"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.generatePasswdAndGroup (cyclomatic 41): Container.generatePasswdAndGroup has cyclomatic complexity 41 (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":"libpod/container_internal_common.go"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9980208c029f6d8f9793292f3599a33fa6f902ef7c002a65a027f061f7baaa"}},{"ruleId":"D1","level":"warning","message":{"text":"checkpoint.CRImportCheckpoint (cyclomatic 41): checkpoint.CRImportCheckpoint has cyclomatic complexity 41 (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/checkpoint/checkpoint_restore.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7d03d502d3265928613271cf388c78526796d78d2a8a5bcc405260829f2806"}},{"ruleId":"D1","level":"warning","message":{"text":"kube.play (cyclomatic 40): kube.play has cyclomatic complexity 40 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 3 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":"cmd/podman/kube/play.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6609470dbb253f9926d654c782ffb874f7561385dfcead784a8ab08b71b3b5b2"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.GetLimits (cyclomatic 40): libpod.GetLimits has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_linux.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4843684aab834ca0541cedaf9645bddfb9e9d6eb9dfe07f2f54ff425ed50aaf"}},{"ruleId":"D1","level":"warning","message":{"text":"ConmonOCIRuntime.HTTPAttach (cyclomatic 40): ConmonOCIRuntime.HTTPAttach has cyclomatic complexity 40 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 14 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":"libpod/oci_conmon_common.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"360df6a17e2d42d106b19796d0ab3d77b5ad316da455bc9e4205256f5cd24baa"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.ExecuteTransfer (cyclomatic 40): utils.ExecuteTransfer has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/utils/scp.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d0d558b457fca1b1b34b2588a7b2451ebfad7f64586fb764133ccaa8934a8b"}},{"ruleId":"D1","level":"warning","message":{"text":"shim.Init (cyclomatic 40): shim.Init has cyclomatic complexity 40 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/shim/host.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ba1b9ad0634e62bf3f63cd5a9e66be6beeb911087dc013722e0e8b50d86fff"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.ParsePortMapping (cyclomatic 40): generate.ParsePortMapping has cyclomatic complexity 40 (threshold 15). Of this number, 37 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/specgen/generate/ports.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9238000030e5e5df60ae2b5b4f8bccc54424132f6938312068a69bd57c4e5549"}},{"ruleId":"D1","level":"warning","message":{"text":"common.ParseBuildOpts (cyclomatic 39): common.ParseBuildOpts has cyclomatic complexity 39 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/build.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2500a85ba261355ba1b6aa0454144b55e79be142045cf0a34f0d830f362da6"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.PlayKubeDown (cyclomatic 39): ContainerEngine.PlayKubeDown 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/domain/infra/abi/play.go"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e192091a25f294cdf0b7a5cde670fff62f068ed217d48d62f95ad31ad2b166"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.LibpodToContainerJSON (cyclomatic 38): compat.LibpodToContainerJSON 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/api/handlers/compat/containers.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"11779e531c9553f1846bc248472e4f0b619f6cbc957a4bbdb495d3fbc304a410"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.runHealthCheck (cyclomatic 37): Container.runHealthCheck has cyclomatic complexity 37 (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":"libpod/healthcheck.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f9953a3a3519ba38459e16b442f6280aab6ed69ff3ef5c9921826364bd1ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.checkpoint (cyclomatic 36): Container.checkpoint has cyclomatic complexity 36 (threshold 15). Of this number, 32 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":"libpod/container_internal_common.go"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f42b7c46fc6c716027c3cc30edc0e0869e0f25c0a335b7d2d547ab1d300d710"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.LibpodToContainer (cyclomatic 36): compat.LibpodToContainer has cyclomatic complexity 36 (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/api/handlers/compat/containers.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d631f56076cb94b4ac86ef39f0c75515185f30a9c4dfda46819786292da42d1f"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.PushImage (cyclomatic 36): compat.PushImage has cyclomatic complexity 36 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, 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/api/handlers/compat/images_push.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e18699ee9b9025a354445b0b734068d19a2b20e695829e9388efa22e700b63"}},{"ruleId":"D1","level":"warning","message":{"text":"specgen.GenVolumeMounts (cyclomatic 36): specgen.GenVolumeMounts has cyclomatic complexity 36 (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/specgen/volumes.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"df72fdc65396e3161e1123df96a4bc85a3b686a2a15bdc02d9882e5e8f7c62c9"}},{"ruleId":"D1","level":"warning","message":{"text":"inspector.inspect (cyclomatic 35): inspector.inspect has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/inspect/inspect.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"276c272d2e93055af564c946d865e522f4017a67b5c63de24d84c37a00d72306"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.simplePodWithV1Containers (cyclomatic 35): libpod.simplePodWithV1Containers has cyclomatic complexity 35 (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":"libpod/kube.go"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"9805088ca94a0ef39bf5c970977b11d7dc8377696a47915fff921a8e83d39f7c"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.ExecStartAndAttach (cyclomatic 35): containers.ExecStartAndAttach has cyclomatic complexity 35 (threshold 15). Of this number, 32 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/bindings/containers/attach.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c699e153399371b52b102caf0e6f41eebdc2bbec841c1a1ac2252927327e68"}},{"ruleId":"D1","level":"warning","message":{"text":"images.nTar (cyclomatic 35): images.nTar has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1161, 1310). 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/bindings/images/build.go"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab9fd189ca3cbc54aa5372e55e113d3921f8733158766751b08a4e313cce03b"}},{"ruleId":"D1","level":"warning","message":{"text":"images.prepareRemoteRequestBody (cyclomatic 34): images.prepareRemoteRequestBody has cyclomatic complexity 34 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 11 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/bindings/images/build.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"734bd3551ae0e09b8fc80e77e60dfaf24aa19162fe7e348b3ebd3c5ccfdf6101"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.parseVolumes (cyclomatic 34): specgenutil.parseVolumes has cyclomatic complexity 34 (threshold 15). Of this number, 33 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/specgenutil/volumes.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ddaac5d3589e323381edb8ddf960b148c6cb8377bab00f6d738d27b804b844"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.mounts (cyclomatic 34): specgenutil.mounts has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 3 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 196). 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/specgenutil/volumes.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"53da20903fb2d43ad18f882dc996728d491ac480d022cfb837194e51dc7acaa8"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.Commit (cyclomatic 33): Container.Commit 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":"libpod/container_commit.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fec3a703a95b365ccdea0d83c6dbc0eddb2d4f2c5f642cc27d4b886cba8c4a"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.QuadletInstall (cyclomatic 33): ContainerEngine.QuadletInstall has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/quadlet.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90fe5132aa9e691681ac44d63dd93f38bdb5b7e1e390870859a3635821165f0"}},{"ruleId":"D1","level":"warning","message":{"text":"main.process (cyclomatic 32): main.process has cyclomatic complexity 32 (threshold 15). Of this number, 31 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":"cmd/quadlet/main.go"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"246b37c5feb19f5ae0ffb4044373fb7998e6ba2e7d6f124f4ee59713999dab6d"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.copyFromArchive (cyclomatic 32): Container.copyFromArchive has cyclomatic complexity 32 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 15 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":"libpod/container_copy_common.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb5d06c1f65068455dc7bbd9458328be239b130796e0af27d748b54244c7bb4"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.fixVolumePermissionsUnlocked (cyclomatic 32): Container.fixVolumePermissionsUnlocked 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":"libpod/container_internal_common.go"},"region":{"startLine":3183}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee00e3488e2183daeb4ef6a9d46088edf70ae7ce22d551f42fe687ccc6f4022"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.Refresh (cyclomatic 32): SQLiteState.Refresh has cyclomatic complexity 32 (threshold 15). Of this number, 30 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":"libpod/sqlite_state.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd74c5ef6e5e72cc2980f6fff6f36633425cbf11c346b6d409724b087f59fe4"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.SpecGenToOCI (cyclomatic 32): generate.SpecGenToOCI has cyclomatic complexity 32 (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/specgen/generate/oci_linux.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"603999f02e9888a8d5d764021df256ede241f2ce6c2c6701b33c3fe693e4563b"}},{"ruleId":"D1","level":"warning","message":{"text":"manifests.Modify (cyclomatic 31): manifests.Modify has cyclomatic complexity 31 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 9 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/bindings/manifests/manifests.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c216f0bba964b0bf5a493076fae3daaafe461b774338417c1040a1f98599089"}},{"ruleId":"D1","level":"warning","message":{"text":"abi.getContainers (cyclomatic 31): abi.getContainers 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/domain/infra/abi/containers.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4386bd9c71060f2461f3bb99435d4eef5f15108933a4d39812f7370945e0a417"}},{"ruleId":"D1","level":"warning","message":{"text":"specgen.ParseNetworkFlag (cyclomatic 31): specgen.ParseNetworkFlag 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/specgen/namespaces.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f23275fa17e36e8171f01261ae8ae8639b121910a8c01647665c5d65f635e6"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.MapSpec (cyclomatic 31): generate.MapSpec has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/pod_create.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08c5a49d40d9cf929771ef5c8052722f24444506c591a177561dd500986cde9"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.GetResources (cyclomatic 31): specgenutil.GetResources has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"097973470a2c6196b472ecc7b58ab272753c4bc0e8e45e4566fadf84358bb4bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.generateInspectContainerHostConfig (cyclomatic 30): Container.generateInspectContainerHostConfig 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":"libpod/container_inspect.go"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c58d95c8d9773b6109f8f168494aaa94a5b1ec313aa859ce250da97fafb942d"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.NetworkConnect (cyclomatic 30): Container.NetworkConnect has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/networking_common.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"888fcd1af60c49819ea3228066344d3e1b63f2a7ec815f103a3e4104990d255a"}},{"ruleId":"D1","level":"warning","message":{"text":"Pod.podWithContainers (cyclomatic 30): Pod.podWithContainers 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":"libpod/kube.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"4983bb115f1759da724b9117ee4968b74613241f834ecffede5dd112edb6e5ef"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.removeVolume (cyclomatic 30): Runtime.removeVolume 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":"libpod/runtime_volume_common.go"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e864aa77b2c81cf78336d70c2d58e3c027543adde53e8b68ed02abf12a7b316"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.ValidateDBConfig (cyclomatic 30): SQLiteState.ValidateDBConfig has cyclomatic complexity 30 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbec7d23bc8aecc8ad1138fb341ea657b14283582041d04506de78854757c4f"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.port (cyclomatic 29): containers.port 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":"cmd/podman/containers/port.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b5372558a91b6a216c9c61f97456d47f92be603567cfc8b30d87fc84d92918"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.attachExecHTTP (cyclomatic 29): libpod.attachExecHTTP has cyclomatic complexity 29 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 7 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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cea9cb40ae52b1a2eff7466ea52e23ec76aa5b5398e8deb16f97fe57dc8b7d4"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.exportCheckpoint (cyclomatic 29): Container.exportCheckpoint has cyclomatic complexity 29 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 5 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":"libpod/container_internal_common.go"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c40c7a96b3dd564ddd118fe43f930e90650183d0c14b13f6dcc46a19ce19188"}},{"ruleId":"D1","level":"warning","message":{"text":"events.generateEventFilter (cyclomatic 29): events.generateEventFilter has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 11 of the 29 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 93, 63, 16, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/events/filters.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fdee954382e5f9ec8ff9cd0f980ee4258d1a9955cdf149e71eca254773d787"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.SystemCheck (cyclomatic 29): Runtime.SystemCheck has cyclomatic complexity 29 (threshold 15). Of this number, 26 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":"libpod/runtime.go"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f0d9b14b9ce3e92542bd1f03a4eaed214b3d507c97c518cf5a7518b74880e1"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.UpdateContainer (cyclomatic 29): compat.UpdateContainer has cyclomatic complexity 29 (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/api/handlers/compat/containers.go"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"211b75360ef17b989309dda794d7d08756e0093d2d68f8d72795adf5669833bc"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.CreateContainer (cyclomatic 29): compat.CreateContainer has cyclomatic complexity 29 (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/api/handlers/compat/containers_create.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"66700166c5612237556530e6b09e3da22654e582cc3e71352e7cccba907ed912"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.LogsFromContainer (cyclomatic 29): compat.LogsFromContainer has cyclomatic complexity 29 (threshold 15). Of this number, 28 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/api/handlers/compat/containers_logs.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f376614048c3edb1958a0731e0ce4db1ee8f6b97312191b960188c08b350ae1"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerMount (cyclomatic 29): ContainerEngine.ContainerMount 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/domain/infra/abi/containers.go"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1ad671ad0e33a384fe4ef852609fa80f22966d067f62a27c89d96dadabe797"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.QuadletRemove (cyclomatic 29): ContainerEngine.QuadletRemove 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/domain/infra/abi/quadlet.go"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"37086cf20d4d6e4d7320d83979238607fc537ba5ae67190f4c35421ae4e5db76"}},{"ruleId":"D1","level":"warning","message":{"text":"PodSpecGenerator.Validate (cyclomatic 29): PodSpecGenerator.Validate 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/specgen/pod_validate.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7382d92006dd34febfa5468bb909d86fcdb3ba8c01c54c1923a6a0cbede66113"}},{"ruleId":"D1","level":"warning","message":{"text":"connection.add (cyclomatic 28): connection.add has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/connection/add.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8240ab9520e242282ed39f4a876ea896973c5c912de1a0b217b56fb40026ebb"}},{"ruleId":"D1","level":"warning","message":{"text":"main.parent (cyclomatic 28): main.parent has cyclomatic complexity 28 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/rootlessport/main.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0ece3e25655d9352e6d76bc64faa2ff12738f3ab2c68c06b71e81d7eb0dd36"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.evictContainer (cyclomatic 28): Runtime.evictContainer 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":"libpod/runtime_ctr.go"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"e743e7580ac84dc4d2f69d74639cc6d180f0a311aa4e4c4df5fb744771ced2f5"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.removePod (cyclomatic 28): Runtime.removePod 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":"libpod/runtime_pod_common.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcc63d5849ebd894563968d5ecc9e9eb00ff2dae1720bb667c83e1cd9a38d84"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.GetDefaultNamespaceMode (cyclomatic 28): generate.GetDefaultNamespaceMode 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/specgen/generate/namespaces.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2316714a0c64236e69cd2286580f9e5eb22142551d57d697baaa77cfba38e7"}},{"ruleId":"D1","level":"warning","message":{"text":"validate.CheckAllLatestAndIDFile (cyclomatic 27): validate.CheckAllLatestAndIDFile has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/validate/args.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85f37190aa7114442a26c88719d0c92e3ca2f69e27c0f12db061741f4deb434"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.execStartAndAttach (cyclomatic 27): Container.execStartAndAttach has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"libpod/container_exec.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb1462ec87c3af63b1e90e61b69242058406c0a9318c857517bf9116fcd5568"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.setupStorage (cyclomatic 27): Container.setupStorage 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":"libpod/container_internal.go"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"806546634aac2cdda45a6b1e3f588368ed35ee3168f03c637242844a44229dcd"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.NetworkDisconnect (cyclomatic 27): Container.NetworkDisconnect has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"libpod/networking_common.go"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f5da89d1872041595950a34b9de8cb1125cf7425244426e88299e3c7da9d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.addContainer (cyclomatic 27): SQLiteState.addContainer has cyclomatic complexity 27 (threshold 15). Of this number, 25 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":"libpod/sqlite_state_internal.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ff50612f39eb25176ee761d570a6552bf53d3047553839847f54f65f950d29"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.CreateNetwork (cyclomatic 27): compat.CreateNetwork 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/api/handlers/compat/networks.go"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9a5636489b6508ba441d48064335c5539282a8c887ab7313fed77a74fb5a60"}},{"ruleId":"D1","level":"warning","message":{"text":"util.ParseIDMapping (cyclomatic 27): util.ParseIDMapping has cyclomatic complexity 27 (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/util/utils.go"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d979eff0e1fc49ec509f69fe89275eb1407d3372739feccd53e2ccc5df9bcd"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.copyFromContainer (cyclomatic 26): containers.copyFromContainer has cyclomatic complexity 26 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 11 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/cp.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c423be8030ee654040aca071cd0f26e567aab9ba3e8ffabd968bfa77c6b37303"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.copyToContainer (cyclomatic 26): containers.copyToContainer has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 10 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":"cmd/podman/containers/cp.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"988e8eef394a66fc7436f96f83137421f0de977b52fc0f022dd4c5e5ab220ac9"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.systemd (cyclomatic 26): generate.systemd 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":"cmd/podman/generate/systemd.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e340c554505b933ddae159c61564a5784f71d293d3722ab81abe318f38c3ae"}},{"ruleId":"D1","level":"warning","message":{"text":"machine.initMachine (cyclomatic 26): machine.initMachine 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":"cmd/podman/machine/init.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"748f368a4a3244f5388d69d234c72a7c9a29cda0e44c6cafb38a3f0c155bdc64"}},{"ruleId":"D1","level":"warning","message":{"text":"BoltState.GetNetworks (cyclomatic 26): BoltState.GetNetworks has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 8 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 253, 215). 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":"libpod/boltdb_state.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6703fb01bbe9bfa845ab1d840e1f266b6af8f3e6c85706507bf7a3d532daec"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.ConvertV1PodToYAMLPod (cyclomatic 26): libpod.ConvertV1PodToYAMLPod has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/kube.go"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7c64e6ad67c8bb22420ae32e3329e629568522bee4f200473c7ff765b124bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.getContainerInspectData (cyclomatic 26): Container.getContainerInspectData has cyclomatic complexity 26 (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":"libpod/container_inspect.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd399999add5efeaba9e4f968775bb5573808b3bc84bf91db3c1c4a0385a78df"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.prepareProcessExec (cyclomatic 26): Container.prepareProcessExec has cyclomatic complexity 26 (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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf22edb6a45f017e2eebad50287282b6a5d55dbc1ff3c893d7f2b1ce917b25d"}},{"ruleId":"D1","level":"warning","message":{"text":"EventLogFile.Read (cyclomatic 26): EventLogFile.Read has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 9 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 170, 138, 156). 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":"libpod/events/logfile.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad1c225dc345d4269430ec24ca6376484d0f0af829c5949c763cde20ff08690"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.handleBuildContexts (cyclomatic 26): compat.handleBuildContexts has cyclomatic complexity 26 (threshold 15). Of this number, 22 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/api/handlers/compat/images_build.go"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2eef90881f9eabfd095469bc24b3b8262b0e439ded9251c90400d30a46ce752"}},{"ruleId":"D1","level":"warning","message":{"text":"images.build (cyclomatic 26): images.build has cyclomatic complexity 26 (threshold 15). Of this number, 24 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/bindings/images/build.go"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"a118a211fcc749e6e3f31b439d73ea727de0b3379bd985a428f592af72243138"}},{"ruleId":"D1","level":"warning","message":{"text":"infra.ParseIDMapping (cyclomatic 26): infra.ParseIDMapping has cyclomatic complexity 26 (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/domain/infra/runtime_libpod.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69a8f2eb2599f04c4343eedb36a6e23814ec56709aec5a45b25b35679a9d48f"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.setNamespaces (cyclomatic 26): specgenutil.setNamespaces 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/specgenutil/specgen.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"849955542773f6b89a5dbdfa0c2da8c8c40abfb599342fac49a48e9fa27c755d"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.ps (cyclomatic 25): containers.ps 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":"cmd/podman/containers/ps.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"52624e05f3781d506846e93cabcb98823a67c0e70428b3e62f299da849dc68e7"}},{"ruleId":"D1","level":"warning","message":{"text":"images.imageSearch (cyclomatic 25): images.imageSearch 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":"cmd/podman/images/search.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"041351c552c53319a76642f6a77c4f6cb3c25fc6c35eb281a1ef2df61666e26e"}},{"ruleId":"D1","level":"warning","message":{"text":"system.restService (cyclomatic 25): system.restService has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"cmd/podman/system/service_abi.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"624eb9a5a51c156524761e12d2c0b7342beca49e3385d93c80c41d81608a8713"}},{"ruleId":"D1","level":"warning","message":{"text":"volumes.prune (cyclomatic 25): volumes.prune 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":"cmd/podman/volumes/prune.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"414cf472f49a536e6fbdd8058321532de115d56318a7dae14e04bec7af010f8e"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.mergeDBConfig (cyclomatic 25): Runtime.mergeDBConfig 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":"libpod/runtime.go"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9cac42efd39e3314f6d637934bed99e7bc691495e3f23c39db598364301e2c"}},{"ruleId":"D1","level":"warning","message":{"text":"bindings.sshClient (cyclomatic 25): bindings.sshClient 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/bindings/connection.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b70f995675fa827a01f7f7e4f6ffe16642064a58bedc2c76a7e47b829348218"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.MakePod (cyclomatic 25): generate.MakePod has cyclomatic complexity 25 (threshold 15). Of this number, 22 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/specgen/generate/pod_create.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdee27767ce37ffefe5c74a640afe7ffff05465c92f1a61da2d924887745afde"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.executePodTemplate (cyclomatic 25): generate.executePodTemplate 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/systemd/generate/pods.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"20001ff0dec78efd9776815511582c9e7d5230c45aae6057cd70861f347e50d7"}},{"ruleId":"D1","level":"warning","message":{"text":"quadlet.ConvertVolume (cyclomatic 25): quadlet.ConvertVolume 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/systemd/quadlet/quadlet.go"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"101702be914d08155f0913f66c6a4452a705556d424afae6e19b7664f2f61b1a"}},{"ruleId":"D1","level":"warning","message":{"text":"EventJournalD.Read (cyclomatic 25): EventJournalD.Read has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 9 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":"libpod/events/journal_linux.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5230e216013b15462d58da6df3ebdd9629adaf4dac359c10f19ed43d69c2ff0f"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.getContainerNetworkInfo (cyclomatic 24): Container.getContainerNetworkInfo has cyclomatic complexity 24 (threshold 15). 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, 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":"libpod/networking_common.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0422ab7c8b507000d58b20718aa2f07068bebde01667f548f7f211b0b8cf28e3"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerStart (cyclomatic 24): ContainerEngine.ContainerStart has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 2 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/domain/infra/abi/containers.go"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3329843c380fc61184673af7efa5352539407b6b4dcf43def0e5a3d3dee53d4"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerRun (cyclomatic 24): ContainerEngine.ContainerRun has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/containers.go"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64ecb1c7c9aec2b6d8b89bbf82f3e00797a6dd3fc961cf70f986e7943669af1"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.parseSecrets (cyclomatic 24): specgenutil.parseSecrets 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/specgenutil/specgen.go"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a89524db2e0e8e3b9b6066c46488a5449e85213fb50fb48199dc5a1dc1fa2cc"}},{"ruleId":"D1","level":"warning","message":{"text":"quadlet.ConvertKube (cyclomatic 24): quadlet.ConvertKube has cyclomatic complexity 24 (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/systemd/quadlet/quadlet.go"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"babc351daee43ec3a100873e2eca1f351d89d407541b684ba9e7c15acc3aa279"}},{"ruleId":"D1","level":"warning","message":{"text":"common.DefineCreateFlags (cyclomatic 23): common.DefineCreateFlags 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":"cmd/podman/common/create.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cafbb0add16c1a74517033cf3750d71f253c6f623678105b9d428e02e58b2a"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.checkpoint (cyclomatic 23): containers.checkpoint has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/checkpoint.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8faac2fec9a7c37129464166ca2c89b80e9b44bebe47fe4e4562123c3b1b79"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.create (cyclomatic 23): containers.create 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":"cmd/podman/containers/create.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a4b5a3368814786f797f9dd8d5f619959af71d8650ea0ef1d75b5147c7b28c"}},{"ruleId":"D1","level":"warning","message":{"text":"images.imagePush (cyclomatic 23): images.imagePush 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":"cmd/podman/images/push.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ba0c3c0eb1b7b3a9c5cf46eea3867b7e041b81652df58b429762f76e2ab2d5"}},{"ruleId":"D1","level":"warning","message":{"text":"manifest.push (cyclomatic 23): manifest.push 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":"cmd/podman/manifest/push.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1c13e0c1d31791f22fd330647cd1f07397a0370c60a5c4d62e2613a4c43fa8"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.ExecHTTPStartAndAttach (cyclomatic 23): Container.ExecHTTPStartAndAttach has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_exec.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f908abaece3a34c2703769671aeb6bbd760c56b75007c571d73829a6d3a8336"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.cleanup (cyclomatic 23): Container.cleanup 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":"libpod/container_internal.go"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e97d41d8dfd75ab1e774450bdfe571617b1a32b43d4a1f3fa671403394c40e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConmonOCIRuntime.sharedConmonArgs (cyclomatic 23): ConmonOCIRuntime.sharedConmonArgs has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2f5043080d8049c3efa7ab352d4193655d67a789681d9f3d2b2a349898afb5"}},{"ruleId":"D1","level":"warning","message":{"text":"ConmonOCIRuntime.startExec (cyclomatic 23): ConmonOCIRuntime.startExec has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"390a418743b8ff52648cfcdeda841a0af3f40421652a948034bee256861b42b5"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.Migrate (cyclomatic 23): Runtime.Migrate 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":"libpod/runtime_migrate.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e79bd77cb875afdf25712258af3c7b1b3a0312dc898a84bafcc8b8bfe56ac3"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.NewPod (cyclomatic 23): Runtime.NewPod has cyclomatic complexity 23 (threshold 15). 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, 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":"libpod/runtime_pod_common.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40aa01d6e9e140dbd048d87692a85ea1c8dfcc5aecb493168f76e60ca8da172"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.StatsContainer (cyclomatic 23): compat.StatsContainer 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/api/handlers/compat/containers_stats.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d08b87389d911958d515db3a1bb314186e9321c29116e2ca1f8cd8bba88ab9"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.processBuildContext (cyclomatic 23): compat.processBuildContext 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/api/handlers/compat/images_build.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9451473e47c887b8c53e99cb757157f3dd7bd4bba1e78f20096b93c9770a42"}},{"ruleId":"D1","level":"warning","message":{"text":"filters.GenerateVolumeFilters (cyclomatic 23): filters.GenerateVolumeFilters has cyclomatic complexity 23 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/filters/volumes.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6037f383dacde166408a2ade45d004ca31a8114990cacf76042ac70ad4cf15cb"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.SystemDf (cyclomatic 23): ContainerEngine.SystemDf 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/domain/infra/abi/system.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"56964afd724da5bf37272fe1781b23f053789d5f8dfff94ad5cd43d8c2b4501e"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.getVolumesFrom (cyclomatic 23): generate.getVolumesFrom 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/specgen/generate/storage.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a51ff6817f88ff8fbbc6d2ae4673a82a2fa7f2a8390eecf8625418dc79dc10c"}},{"ruleId":"D1","level":"warning","message":{"text":"kube.ToPodOpt (cyclomatic 23): kube.ToPodOpt 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/specgen/generate/kube/kube.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2d7ee3d7a2ac91eb44e2f9dac96c1fc76b406c03732da0b7e5b32328777271"}},{"ruleId":"D1","level":"warning","message":{"text":"kube.VolumeFromHostPath (cyclomatic 23): kube.VolumeFromHostPath 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/specgen/generate/kube/volume.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b0ca1e56c8e590100212ddd8c86dc062653d47e7ae8a43f6d5a308c451c7e8"}},{"ruleId":"D1","level":"warning","message":{"text":"util.parseTriple (cyclomatic 23): util.parseTriple 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/util/utils.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcabbbe12cdef31c59c89ca486f64ecd8d5b9cf283e021382f8e5ee6640db39"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.exec (cyclomatic 22): containers.exec has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/exec.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6b34958d2ec3ccc5a72a2e52cd2ace7cd1d902110418d0073fd2c443f8d595"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.generateKubeSecurityContext (cyclomatic 22): libpod.generateKubeSecurityContext has cyclomatic complexity 22 (threshold 15). Of this number, 21 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":"libpod/kube.go"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fc4a13ad4a0e1cec83e7b8c10e7b5bd0db199ab653e05355b20634130ae66a"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.mountNamedVolume (cyclomatic 22): Container.mountNamedVolume has cyclomatic complexity 22 (threshold 15). Of this number, 21 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":"libpod/container_internal.go"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ab7474a5f68344f430199688bd492b4e93949494f5c99381df7f09ad79a118"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.cleanupStorage (cyclomatic 22): Container.cleanupStorage has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 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":"libpod/container_internal.go"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d50a00dce6a4a07372e580de41e714cf40c7dadac3172b6b81651968df51f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ConmonOCIRuntime.Attach (cyclomatic 22): ConmonOCIRuntime.Attach has cyclomatic complexity 22 (threshold 15). Of this number, 21 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":"libpod/oci_conmon_attach_common.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2283de32c5b49e24c7e33d3ec5af62503adf0af87ea95aac0d09146787917880"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.migrateDB (cyclomatic 22): Runtime.migrateDB has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_migrate.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"29133e6d59adf7bead7034a28af2381d49fc0f631ea0ddf95f61a4a370658f8a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.RemovePodContainers (cyclomatic 22): SQLiteState.RemovePodContainers has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff4281629db44fd1a040f266cc84bd218ab597f1cb32d7799d2c4fa5eab5ea9"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.ListContainers (cyclomatic 22): compat.ListContainers has cyclomatic complexity 22 (threshold 15). Of this number, 21 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/api/handlers/compat/containers.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d478886dd1385f05dadcaddae8988437b3627022ac44d01b4560602ad38d91c"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.CommitContainer (cyclomatic 22): libpod.CommitContainer has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 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/api/handlers/libpod/images.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8142b725f2af763b304d4e059431ea437e8537d0b39f2932b2106322c716b669"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.PushImage (cyclomatic 22): libpod.PushImage has cyclomatic complexity 22 (threshold 15). Of this number, 21 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/api/handlers/libpod/images_push.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a26ae9c442a59b4a411315b1ad4810196c5cf02fd2b705098392881008d4818"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEngine.Push (cyclomatic 22): ImageEngine.Push has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45ce1983a6ee686c4535a8fd4894a44c76b76624a414c1cb4a2ae870b7be2bc"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEngine.Sign (cyclomatic 22): ImageEngine.Sign has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 718). 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/domain/infra/abi/images.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7ce789a5b957e288cee0ea921c3ee674ca944f21811520ce5db68e390f3048"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerClone (cyclomatic 22): ContainerEngine.ContainerClone has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/containers.go"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"a863411b4b46e91ebce431aec30bb33086e04f8451051d81ed3ca3afad684a7c"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.SystemPrune (cyclomatic 22): ContainerEngine.SystemPrune has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/system.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"694d9d9705873753a3caa58c1451c5c923c2dab23d4b8cef1802d036affca966"}},{"ruleId":"D1","level":"warning","message":{"text":"listLocal.build (cyclomatic 22): listLocal.build has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 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/farm/list_builder.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"086c800dd9c0ab2bf55e12b8ba792fec262832b1f3e3e7426c0ab72f93c3db35"}},{"ruleId":"D1","level":"warning","message":{"text":"ps.GetContainerLists (cyclomatic 22): ps.GetContainerLists has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/ps/ps.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1117fa3d223fe4a89198643c2393cd7b39417e9e6a141bb81b05f16aeca00f8a"}},{"ruleId":"D1","level":"warning","message":{"text":"ps.ListContainerBatch (cyclomatic 22): ps.ListContainerBatch has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 190). 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/ps/ps.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b8b3357ae90634f07a0599e4b0698099a1e6b7182aa75b057bd411cc416791"}},{"ruleId":"D1","level":"warning","message":{"text":"trust.AddPolicyEntries (cyclomatic 22): trust.AddPolicyEntries has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/trust/policy.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70f66b7a1d5c4f254c355b43a8010544b727375dfba07a1d364b296eab17714"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.validateStart (cyclomatic 21): containers.validateStart has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/start.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8fa6d5f5dd2c124bef3a96dcc094aa8ec877ecb54bd9f4248b4f05b1949c15"}},{"ruleId":"D1","level":"warning","message":{"text":"network.networkCreate (cyclomatic 21): network.networkCreate 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":"cmd/podman/networks/create.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"272a6430774ae4b3627d7d3d3a35be678d06f6f4a65b5919241e0d0f274edbb7"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.startNode (cyclomatic 21): libpod.startNode 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":"libpod/container_graph.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e5fccffa80fea7224e2a3fae5990139bfd80039c5098c6bdc26af52b1d8b35"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.httpAttachNonTerminalCopy (cyclomatic 21): libpod.httpAttachNonTerminalCopy 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":"libpod/oci_conmon_common.go"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce57d914243258a60439693552748619a94ebc6ea662273d598f286384c596a6"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.execLightweight (cyclomatic 21): Container.execLightweight has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 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":"libpod/container_exec.go"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e561ca9faecfc1f6a633ce028bd0617f94fc74e0b1077fb97c337a3960353429"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.TopContainer (cyclomatic 21): compat.TopContainer has cyclomatic complexity 21 (threshold 15). Of this number, 20 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/api/handlers/compat/containers_top.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c986c67de959c85b997f3d424f1ac8344629fbf4971ee85c4cc9c164fc0a88"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.GetEvents (cyclomatic 21): compat.GetEvents 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/api/handlers/compat/events.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8b6baec856a8f7549381c675ce33fc92bfbec3144400a84fcbe5fc1a2f4cd5"}},{"ruleId":"D1","level":"warning","message":{"text":"abi.getAllQuadlets (cyclomatic 21): abi.getAllQuadlets 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/domain/infra/abi/quadlet_utils.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aca98231f530557f37e1fbb02386c52c326aed694f47577c5afd50d8b24d32"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.VolumeOptions (cyclomatic 21): parse.VolumeOptions 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/domain/infra/abi/parse/parse.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ec806a56dac708df345442f744ff5f679d734e7ba5cb6a26c4d6b28ef90a84"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.containerStopImpl (cyclomatic 21): ContainerEngine.containerStopImpl has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 322). 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/domain/infra/abi/containers.go"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d88f9ce241e8bc83bff1f4b465e9490a53e74307a90af7267b4cb44dd98a9d"}},{"ruleId":"D1","level":"warning","message":{"text":"emulation.parseBinfmtMisc (cyclomatic 21): emulation.parseBinfmtMisc 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/emulation/binfmtmisc_linux.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7389e6d780126ff53adadef59eca4f8e8b26d1c6803dde1aa21953ad318e9d8"}},{"ruleId":"D1","level":"warning","message":{"text":"Farm.Build (cyclomatic 21): Farm.Build has cyclomatic complexity 21 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 8 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/farm/farm.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3618af46a90f72e2c326aadf5e295d2dedee2dd52a44296d47e93193c8864c6f"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.DevicesFromPath (cyclomatic 21): generate.DevicesFromPath has cyclomatic complexity 21 (threshold 15). Of this number, 18 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/specgen/generate/config_linux.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"927d1bc9ee153dc78b5a277c25e64907f6e2ff2b3dd66bae25ce385d2a490a6a"}},{"ruleId":"D1","level":"warning","message":{"text":"images.imagePull (cyclomatic 20): images.imagePull 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":"cmd/podman/images/pull.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfbd26caa18f20f98e0e0651f3764695d345a1647f8b77f909cf85403b7d2d7"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.podmanTopInner (cyclomatic 20): libpod.podmanTopInner has cyclomatic complexity 20 (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":"libpod/container_top_linux.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ee6f6c89bb0f63307e2a2c476f4e6443c71d0167a22a20b01eb9d547b45d89"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.init (cyclomatic 20): Container.init 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":"libpod/container_internal.go"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0590b65217d745e6c9b732d36d4f8695ea70e3d819ece4feb3f66c8a14e6b5"}},{"ruleId":"D1","level":"warning","message":{"text":"Pod.Inspect (cyclomatic 20): Pod.Inspect 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":"libpod/pod_api.go"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d945c044a9da688ef6ee7f479f425d581124de947f5bad1bb14e8a5dfacfcc"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.RemoveStorageContainer (cyclomatic 20): Runtime.RemoveStorageContainer 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":"libpod/runtime_cstorage.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"03659c553d7bea3a66560307f073ad13f397200089e3e34ee984915ad4c6e6ce"}},{"ruleId":"D1","level":"warning","message":{"text":"Volume.mount (cyclomatic 20): Volume.mount 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":"libpod/volume_internal_common.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21ddcce459fef515041f1a58c1367bbca13254bae6a3f374a0f0dd7a99de2b9"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.ManifestCreate (cyclomatic 20): libpod.ManifestCreate has cyclomatic complexity 20 (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/api/handlers/libpod/manifests.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"855246c64773c31f780803c6e78bf8fa73fbbbac6e7efb328849573600f9c040"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.ManifestPush (cyclomatic 20): libpod.ManifestPush has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/manifests.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"843c5e2c7c1fc6c3f822d2ea8340b50aee2e1fff2a6610e1c82d1c8e35cacdd2"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.CompatPull (cyclomatic 20): utils.CompatPull has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 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/api/handlers/utils/images.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1552b7ad4f5791681bb7d2c1459b8b46e76080066b0d65e8e5aeae80bc833b9"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEngine.Mount (cyclomatic 20): ImageEngine.Mount 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/domain/infra/abi/images.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5ab17a4f88a9e5aca8e14909241b224c0dd5f958e4ba78b4dd4e0e078d3a7e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEngine.ManifestPush (cyclomatic 20): ImageEngine.ManifestPush has cyclomatic complexity 20 (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/domain/infra/abi/manifest.go"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b7c0037a89812752fb218665c312922630be6aa6620ed2cc4d3dee22be2164"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.NetworkRm (cyclomatic 20): ContainerEngine.NetworkRm 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/domain/infra/abi/network.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b50bbd0fdd315c83b5c22b1afcf27819969f4abd2114c024f3e76e4e2562f58"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.playKubePVC (cyclomatic 20): ContainerEngine.playKubePVC 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/domain/infra/abi/play.go"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"594c41cf6c9cb0d3db8ee623398f035a0d12cde17d1c29ef63eb7e9a775e41cd"}},{"ruleId":"D1","level":"warning","message":{"text":"quadlet.ConvertBuild (cyclomatic 20): quadlet.ConvertBuild has cyclomatic complexity 20 (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/systemd/quadlet/quadlet.go"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"5251c83a20a9f1c87920b68ebbcf478bc4f9c606c3fa4992b74d958de6133083"}},{"ruleId":"D1","level":"warning","message":{"text":"common.AutocompleteFormat (cyclomatic 19): common.AutocompleteFormat 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 one function literal inside it that branches (line 1360). 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":"cmd/podman/common/completion.go"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff2e998f79d2ecac2a0f68c18f59411408550b7e69a7aa69ab6b09d13ce6338"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.pullImage (cyclomatic 19): containers.pullImage 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":"cmd/podman/containers/create.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb293be09318142dbdbf005efc0eb45143115d2cbed7ec76137fa03213bee0df"}},{"ruleId":"D1","level":"warning","message":{"text":"manifest.add (cyclomatic 19): manifest.add 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":"cmd/podman/manifest/add.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4e769557c97e4a504a3e22d4529ce0cc4b6a7648111878c8f25fe49516e1b0"}},{"ruleId":"D1","level":"warning","message":{"text":"localapi.CheckIfImageBuildPathsOnRunningMachine (cyclomatic 19): localapi.CheckIfImageBuildPathsOnRunningMachine has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/localapi/utils.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8604bbe2cc9440afbfbde9c2ab13c9e8fa061af1acc4f7a4a7a9a038733c3156"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.NamespaceMode (cyclomatic 19): Container.NamespaceMode 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":"libpod/container.go"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7eb30b35ac3eb2eaccf21ba0611a46b4c01ec6b910b3558de9a1481ff11ce4"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.WaitForExit (cyclomatic 19): Container.WaitForExit 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":"libpod/container_api.go"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"82aa9eedb558d678a6820080b98f0ec8ee19e5a3eb5320f0dd0f8f1a8444d86b"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.resolvePath (cyclomatic 19): Container.resolvePath 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":"libpod/container_path_resolution.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"073c6765d2d97081d5202c66414b1f20142dff26040b5c2228373b2e522f8e99"}},{"ruleId":"D1","level":"warning","message":{"text":"events.newEventFromJournalEntry (cyclomatic 19): events.newEventFromJournalEntry 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":"libpod/events/journal_linux.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50723d0e1d74e6f7707cdf758c294954d49463aa2a906e56bfb2cbe6174d615"}},{"ruleId":"D1","level":"warning","message":{"text":"Event.toHumanReadable (cyclomatic 19): Event.toHumanReadable 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. This is NOT this file\u0027s highest cyclomatic complexity: events.StringToStatus (cyclomatic 43) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/events/events.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8a1629bcbd8a4c98d984504c1a2acb633ab6560de40d4b5fb396cd92cfe727"}},{"ruleId":"D1","level":"warning","message":{"text":"Pod.stopWithTimeout (cyclomatic 19): Pod.stopWithTimeout 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":"libpod/pod_api.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0de4d59db891c4053f3e98dc94dc75b233aa8cdbacb73a2e81d7052f331242c"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.refresh (cyclomatic 19): Runtime.refresh 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":"libpod/runtime.go"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ceb76aa733695b234a9c22c52922ff0fdeae908853cb65937fb6ae408c204c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.RenameVolume (cyclomatic 19): SQLiteState.RenameVolume has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"libpod/sqlite_state.go"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6de7d024fb37b7c5b6cd432869a58e31b925e468ccc460688c95e7af2af699c"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.KubePlay (cyclomatic 19): libpod.KubePlay has cyclomatic complexity 19 (threshold 15). 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: 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/api/handlers/libpod/kube.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"633002fa8142539e4fe81ca8bd7ebeeb214c6ffea416d003c4a0991511230d21"}},{"ruleId":"D1","level":"warning","message":{"text":"artifacts.Extract (cyclomatic 19): artifacts.Extract 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/bindings/artifacts/extract.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29c0f2c8e885250ae946ab09d083517e2dbbda204716a76301458172b562105"}},{"ruleId":"D1","level":"warning","message":{"text":"MachineConfig.Remove (cyclomatic 19): MachineConfig.Remove has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 186). 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/machine/vmconfigs/machine.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2997f07ffc66e423cca4b0e87f087ca9827fdb2e3c582747f65fb8165070df6f"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.MakeHealthCheckFromCli (cyclomatic 19): specgenutil.MakeHealthCheckFromCli has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"be279bc2d82a8e1f798073274fa3c681bcc67a2472bc59e3f94b8465830e33c1"}},{"ruleId":"D1","level":"warning","message":{"text":"HyperVStubber.CreateVM (cyclomatic 19): HyperVStubber.CreateVM has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 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/machine/hyperv/stubber.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d233f1f6470d0825bd9aed8322c8c63c50082df5f5f43250d8f8101f89e30679"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.copyContainerToContainer (cyclomatic 18): containers.copyContainerToContainer has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/cp.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce444c8e47270f33ebf9bcdd5a9e93c1b8bc45cec4b0fce70c004b327d751296"}},{"ruleId":"D1","level":"warning","message":{"text":"main.loadTemplateInstances (cyclomatic 18): main.loadTemplateInstances has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/quadlet/main.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3970f2a30fb48e65a0a475676ae367bd5381f5e99be585adb9548cb92a2be687"}},{"ruleId":"D1","level":"warning","message":{"text":"main.transformSwagger (cyclomatic 18): main.transformSwagger 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":"hack/swagger-version-paths/main.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"64981718f85f828b4e21078608469ea6229fc1785604fc5f74f66c1cc7fa766e"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.Attach (cyclomatic 18): Container.Attach has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 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":"libpod/container_api.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c30d1e0365afa05b40edd0c6dc0d28a96fb0e5f85f66200bf0c686a9764507f"}},{"ruleId":"D1","level":"warning","message":{"text":"ConmonOCIRuntime.StopContainer (cyclomatic 18): ConmonOCIRuntime.StopContainer has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, 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":"libpod/oci_conmon_common.go"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07e70112fb8787f5bfc08474936f60e7a10fc4b0c45ef17e9380630eca02cab"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.RemovePod (cyclomatic 18): SQLiteState.RemovePod has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2446be9693aab12a3ff63fcfd9a7d219193692dbd32a1f79b293225aa10ae16"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.networkModify (cyclomatic 18): SQLiteState.networkModify 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":"libpod/sqlite_state_internal.go"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4364b83a7ffbc9843fe81e4eeaae769ffce2b4b91d5fa9efc3542e79518bf6"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.ExecStartHandler (cyclomatic 18): compat.ExecStartHandler 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/api/handlers/compat/exec.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed9c0d46c687622fe31f56eec87f8ff2dec940569062cafae9b6d7290bd81f4"}},{"ruleId":"D1","level":"warning","message":{"text":"updater.updateUnit (cyclomatic 18): updater.updateUnit has cyclomatic complexity 18 (threshold 15). Of this number, 14 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/autoupdate/autoupdate.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62c365c8b5dcaebba8559e5298ffc05822e4af192b7f90294901e230a3e2c8b"}},{"ruleId":"D1","level":"warning","message":{"text":"images.Pull (cyclomatic 18): images.Pull 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/bindings/images/pull.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbfde661261ea60639580b0aeb6326b6c71c87ef66236f0728900640130a082"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEngine.ManifestAnnotate (cyclomatic 18): ImageEngine.ManifestAnnotate 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/domain/infra/abi/manifest.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c25f7f802ffe884cb0b8ae11683aa20adc0185cd14898914523531883ee60d"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerStats (cyclomatic 18): ContainerEngine.ContainerStats has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1679, 1660). 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/domain/infra/abi/containers.go"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f9bee2798d759978d249fbc3eaf968a5a22a048daf5f3ced2f1e3372db10ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerRunlabel (cyclomatic 18): ContainerEngine.ContainerRunlabel 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/domain/infra/abi/containers_runlabel.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a9c65502c93a1ce99cffef136688728fd6a295af2072f75ada182437cf7612"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.PodClone (cyclomatic 18): ContainerEngine.PodClone 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/domain/infra/abi/pods.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf52c643cfdc9947a1a74f7d71c06b7e09dcadd5ad46289ff252a76a2057d7ba"}},{"ruleId":"D1","level":"warning","message":{"text":"tunnel.parseBuildOutput (cyclomatic 18): tunnel.parseBuildOutput 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/domain/infra/tunnel/images.go"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73fba89efbd1a41b008f0ee47b9c08eb8b93eedaef48034abd92744cb72f9c1"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerRm (cyclomatic 18): ContainerEngine.ContainerRm 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/domain/infra/tunnel/containers.go"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea1cae7eae23e271ab82bab70fbd827308fa8ca6cbe8c186ae4c55d2b3094a8"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.PodConfigToSpec (cyclomatic 18): generate.PodConfigToSpec 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/specgen/generate/pod_create.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9712958311c4c429b4c46f47740262ceb82c610ff3781bf7377aa09c77021a80"}},{"ruleId":"D1","level":"warning","message":{"text":"quadlet.handleSetWorkingDirectory (cyclomatic 18): quadlet.handleSetWorkingDirectory 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/systemd/quadlet/quadlet.go"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4a20a5da8b6057698b25a2c01d88e11dea9b09c58b7f3ecd2515904fa6f300"}},{"ruleId":"D1","level":"warning","message":{"text":"util.ParseDockerignore (cyclomatic 18): util.ParseDockerignore 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/utils.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5710b91799d08d2711967cfb57e6e11fdf5ce2e3e3334c507a561ba9e14d959"}},{"ruleId":"D1","level":"warning","message":{"text":"farm.build (cyclomatic 17): farm.build 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, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/farm/build.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9dbb30947daa37feeca33f44349abf079b115eea8dcee3ea05a88989149db0"}},{"ruleId":"D1","level":"warning","message":{"text":"farm.rm (cyclomatic 17): farm.rm has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 49). 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":"cmd/podman/farm/remove.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acc60252902581b3fb92bfd2bff69bd30a1a09c443e9a320f3af04d0b3047a2"}},{"ruleId":"D1","level":"warning","message":{"text":"farm.farmUpdate (cyclomatic 17): farm.farmUpdate has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 66). 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":"cmd/podman/farm/update.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0725863a12c637e571834bfb0f5cdb1e7a2195e3db18544b3e7f0e81829d0373"}},{"ruleId":"D1","level":"warning","message":{"text":"system.printSystemCheckResults (cyclomatic 17): system.printSystemCheckResults has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"cmd/podman/system/check.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"272b9042f11fca47356efe7b304bbc42f6e8477a191d0bad38849ed4b6369ea6"}},{"ruleId":"D1","level":"warning","message":{"text":"connection.inspect (cyclomatic 17): connection.inspect has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/connection/list.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2202a84b2c1e2c6afbf5c2429d789b5140e1044f4eb2d8c425587f5fdc67d43"}},{"ruleId":"D1","level":"warning","message":{"text":"registry.StartWithOptions (cyclomatic 17): registry.StartWithOptions 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":"hack/podman-registry-go/registry.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"86535eff52ecb76181bf7f22f2f25cd878acc3de9e794478868d3525e971dc81"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.readConmonPipeData (cyclomatic 17): libpod.readConmonPipeData has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, 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":"libpod/oci_conmon_common.go"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f28347384bb55b347b00c9abad154f33f72aebc590a5a6351786867b499b354"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.handleRestartPolicy (cyclomatic 17): Container.handleRestartPolicy has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f40a86f5e1bc5bf0f4c4a153f7c584aebdbe26e1ede3f614e5004346b99df7"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.restartWithTimeout (cyclomatic 17): Container.restartWithTimeout has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"libpod/container_internal.go"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41e3f782d323123805f45518ba7f30cca6610cade41e3ad3421653ae6aac3e5"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.AddPod (cyclomatic 17): SQLiteState.AddPod has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba572bf8e98a8ce16a2c1c179a2dbd5fac3920965ee37e3bf7f567beb6bd5935"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.CreateVolume (cyclomatic 17): compat.CreateVolume 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/api/handlers/compat/volumes.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"026ac1ae7d0ccc0f9e3071c50a44763297786ebd474d0d67b98c47f0b8a34b44"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.InstallQuadlets (cyclomatic 17): libpod.InstallQuadlets 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, 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/api/handlers/libpod/quadlets.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"385b35fd6129d28830aa75bc88cadb6b83c5bb90e541871133a8a2f455bf6921"}},{"ruleId":"D1","level":"warning","message":{"text":"updater.assembleTasks (cyclomatic 17): updater.assembleTasks 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/autoupdate/autoupdate.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"99237d8315431672a74fce2bf785bc997c376fbac1b1ca22cb58335613316467"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.Commit (cyclomatic 17): containers.Commit 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/bindings/containers/commit.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1716693df96555d5986ec17afe5481af3c409f277e830ac351b9aefcd0746d7b"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.Logs (cyclomatic 17): containers.Logs 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/bindings/containers/logs.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a561097a1e3cdf5e1b40aee6ab1a91cd31044c5fd342250e03c204d88d4316e1"}},{"ruleId":"D1","level":"warning","message":{"text":"images.Push (cyclomatic 17): images.Push 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/bindings/images/push.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20dd08e13510b45e5cdd60aad6e1905728b2f1c0b4895afe9f09cf3251231dc"}},{"ruleId":"D1","level":"warning","message":{"text":"manifests.Push (cyclomatic 17): manifests.Push 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/bindings/manifests/manifests.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ad389477c407fca55a0947496455b8ae04dbcffb983b24b1903f49edc69608"}},{"ruleId":"D1","level":"warning","message":{"text":"abi.getKubePods (cyclomatic 17): abi.getKubePods 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/domain/infra/abi/generate.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"5149bbed7c21efacda35d5b8a65e0d5bb9ef28871de29ad178c2511fd7fb9c08"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEngine.List (cyclomatic 17): ImageEngine.List has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 34). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images_list.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7024a071b044e053491e202f5beaf60c5497f3ece23f084246d6f2d2a57e2518"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEngine.remoteManifestInspect (cyclomatic 17): ImageEngine.remoteManifestInspect 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/domain/infra/abi/manifest.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a150e31b32a80ea2e633bd3775491f9d30b82581307a39afcf42e833a7e1da"}},{"ruleId":"D1","level":"warning","message":{"text":"tunnel.getContainersAndInputByContext (cyclomatic 17): tunnel.getContainersAndInputByContext 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/domain/infra/tunnel/helpers.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f176660256c5633a2bf5b0dd27cf0b6b5592d61ed85819e3bd80fbd41b858222"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerStart (cyclomatic 17): ContainerEngine.ContainerStart has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, 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/domain/infra/tunnel/containers.go"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedd460f6866be0786c2a7e879c722bfc6292d5f4067121c6e46559f5aad606f"}},{"ruleId":"D1","level":"warning","message":{"text":"emulation.registeredBinfmtMisc (cyclomatic 17): emulation.registeredBinfmtMisc has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 26). 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/emulation/binfmtmisc_linux.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"62744ce17555059a93f777f9467e28b2823cfa909a1a601d4b473a0b86c819cb"}},{"ruleId":"D1","level":"warning","message":{"text":"shim.Remove (cyclomatic 17): shim.Remove 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/machine/shim/host.go"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7e5c7ef583882c2378d232ede89fb723e1b082b2831b2865ca6c210a78b372"}},{"ruleId":"D1","level":"warning","message":{"text":"specgen.SetupUserNS (cyclomatic 17): specgen.SetupUserNS 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/specgen/namespaces.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2ead8ac362ed81b51755f2e5887bcae8e4fc3fcec81b5c9221d703c515545a"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.applyHealthCheckOverrides (cyclomatic 17): generate.applyHealthCheckOverrides 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/specgen/generate/container.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"122ac3f3b0d0391caba7643277c18a7b3a6561636a8ede6c18cb3bcee5338407"}},{"ruleId":"D1","level":"warning","message":{"text":"NotifyProxy.listen (cyclomatic 17): NotifyProxy.listen has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 190). 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/systemd/notifyproxy/notifyproxy.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be353784019ec880f7dda569db83fbe023f4d35e8e0a9ff36d971da679765a4"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.escapeString (cyclomatic 17): parser.escapeString has cyclomatic complexity 17 (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/systemd/parser/split.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"e589166373cb961edbf447ae497c97b9b8b38f8b476ff4f763cafbff57528dda"}},{"ruleId":"D1","level":"warning","message":{"text":"quadlet.handleUserRemap (cyclomatic 17): quadlet.handleUserRemap 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/systemd/quadlet/quadlet.go"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4ce07b5a174d4633638e3a8dd3697e25b555af2d134db33c64e7c49098d00b"}},{"ruleId":"D1","level":"warning","message":{"text":"util.breakInsert (cyclomatic 17): util.breakInsert 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/util/utils.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4acae026f57f27461d09febe792e15aa9f77d84db82a2d73cd9a1ff2604218e"}},{"ruleId":"D1","level":"warning","message":{"text":"HyperVStubber.SetProviderAttrs (cyclomatic 17): HyperVStubber.SetProviderAttrs has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 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/machine/hyperv/stubber.go"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"4385f76a9b539a2e9e6c057dbbc67fe6fda9ee3805db4d37a61e952b57b6533e"}},{"ruleId":"D1","level":"warning","message":{"text":"vsock.loadHVSockRegistryEntries (cyclomatic 17): vsock.loadHVSockRegistryEntries has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 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/machine/hyperv/vsock/vsock.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd88076ea9f8eb1e24b084c6fca96c7e6d734898cb1cf0cce885ae03487e1d8"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.portsToString (cyclomatic 16): containers.portsToString has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/ps.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ecbceb20005d885fa4570609ce9c4adaaae80e712f26ee5ca1069ceec4580a"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.GetChangedHealthCheckConfiguration (cyclomatic 16): containers.GetChangedHealthCheckConfiguration has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/update.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e122f6d10d3a82bd16063f97429d3082a30df7a2cfe24081782f3d59a18f76"}},{"ruleId":"D1","level":"warning","message":{"text":"containers.update (cyclomatic 16): containers.update has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/update.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1e8a3782156d64e125b46579326acedf4f8db2007e8e6f74b8d18312dbf8ae"}},{"ruleId":"D1","level":"warning","message":{"text":"system.prune (cyclomatic 16): system.prune has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/prune.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee352c3f5dc0cc9449d95af479f6fd919eea5b27b5b0aa8f78f399fb951d573"}},{"ruleId":"D1","level":"warning","message":{"text":"main.loadUnitDropins (cyclomatic 16): main.loadUnitDropins has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/quadlet/main.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0a52d969a0abd71cc8ee17b94c422369b70515dac45058e5798458d0ec1561"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.detectCycles (cyclomatic 16): libpod.detectCycles has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 117). 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":"libpod/container_graph.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4941e2020a9122573c2eae212d587f40de24d866f289183a8bdafd1e3dc30e"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.exec (cyclomatic 16): Container.exec has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 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":"libpod/container_exec.go"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f86af253e5c544b85fe6191e54becbe9b54ee269b78b8569b7e0e65f8ba950f"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.stopInternal (cyclomatic 16): Container.stopInternal 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":"libpod/container_internal.go"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc6c956afc79ddfb4b0caee1ce76b67ad9597262563c3b42330ff26d0452559"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.prepare (cyclomatic 16): Container.prepare has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_linux.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b73e07d08ed3fa54716e37b3b094baed1ac04743b5f1b698a87a9a0b5d877d"}},{"ruleId":"D1","level":"warning","message":{"text":"logs.getTailLog (cyclomatic 16): logs.getTailLog 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":"libpod/logs/log.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c24ea8d2dac23cb8526b9f3765c2192da6110a672414d87637ef01555b0ab1"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.RenumberLocks (cyclomatic 16): Runtime.RenumberLocks 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":"libpod/runtime_renumber.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3187489518c9b8a520d15fbd222e5a021756b16a51bdf73a3afdcf5a9e04e4"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.UpdateVolumePlugins (cyclomatic 16): Runtime.UpdateVolumePlugins 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":"libpod/runtime_volume_common.go"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf7497d1d8023728b4e91650ec5b64bc9d002c3fe0f610b04bb2088fcceacee"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.AllContainers (cyclomatic 16): SQLiteState.AllContainers 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":"libpod/sqlite_state.go"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd30f41dc819e8685c1d7ad76e3d0c6c2883885b076d76c3dea215003a8d46e"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteState.AddVolume (cyclomatic 16): SQLiteState.AddVolume has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b6e90409bdbe226fda2c76007be59981e352ce74aa74ae0684c39b3dab0f15"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.AttachContainer (cyclomatic 16): compat.AttachContainer has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers_attach.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd460408dba2471582607936b7f3783a59aad37c3b00791eafd37517141832a8"}},{"ruleId":"D1","level":"warning","message":{"text":"compat.SearchImages (cyclomatic 16): compat.SearchImages 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/api/handlers/compat/images_search.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9eb7ef857e362fe17c8a5122aa7ade10f258d7b4a79c545508992956d9a13ce"}},{"ruleId":"D1","level":"warning","message":{"text":"libpod.PodTop (cyclomatic 16): libpod.PodTop 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/api/handlers/libpod/pods.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cac7b110cf223a0c55901c0ef05c7d049d952164a992fac0a1b08272e8a122"}},{"ruleId":"D1","level":"warning","message":{"text":"Connection.DoRequest (cyclomatic 16): Connection.DoRequest 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/bindings/connection.go"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"5967b3b67d76b99d8a24e06778abc658cabf5d0ff7b37c5e5c9b0eab9762df30"}},{"ruleId":"D1","level":"warning","message":{"text":"util.ToParams (cyclomatic 16): util.ToParams 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/bindings/internal/util/util.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8530f43d36682899ec2b86195d7d8a16afd095cc6391f2f007bff2ab79ff5e9e"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.KubeApply (cyclomatic 16): ContainerEngine.KubeApply 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/domain/infra/abi/apply.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dce8dc9fd35f5dbcae847f68ee25830aa5a98d715509d11392988b4a1376782"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerCleanup (cyclomatic 16): ContainerEngine.ContainerCleanup 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/domain/infra/abi/containers.go"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7264971eed2cfe4ccca27f160df6476cb28900dd306dabf4c747f3f9a4bdfff0"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerUnmount (cyclomatic 16): ContainerEngine.ContainerUnmount 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/domain/infra/abi/containers.go"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebf772737e43d06f5fa004c901fab535a630793d720b7529d95921c7b337534"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.buildImageFromContainerfile (cyclomatic 16): ContainerEngine.buildImageFromContainerfile 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/domain/infra/abi/play.go"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fe487b75fe99b4f0518fcc9c29143010289ec2cd64c4b513571455b616a33a"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.installQuadlet (cyclomatic 16): ContainerEngine.installQuadlet has cyclomatic complexity 16 (threshold 15). Of this number, 14 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/domain/infra/abi/quadlet.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d56154c140cf71b6e6a7ba040367d8d488b33d3011f6474cdd4da1b2b0f1000"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerRestore (cyclomatic 16): ContainerEngine.ContainerRestore 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/domain/infra/tunnel/containers.go"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"7235434959976b1e0fb883c5402c018d0670b7ceafd209fff79c5a361052e41f"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerEngine.ContainerRun (cyclomatic 16): ContainerEngine.ContainerRun has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, 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/domain/infra/tunnel/containers.go"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cf82acfad14e43f67b7931b62ad8008dfc5d6f177c26e95158a82d0e69439c"}},{"ruleId":"D1","level":"warning","message":{"text":"Farm.Schedule (cyclomatic 16): Farm.Schedule 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/farm/farm.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fc7d6f23c6ac0a277378d4f6511279bebc9e553d32417e3a3225e9cac3441b"}},{"ruleId":"D1","level":"warning","message":{"text":"shim.Reset (cyclomatic 16): shim.Reset 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/machine/shim/host.go"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"05479818f54cfc427115b8466a3e45686b7abefde980e9734f455e0dc0c45f32"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.createPodOptions (cyclomatic 16): generate.createPodOptions has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/pod_create.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff7a4e1bf2727bd54553ef2af1fad082ec89371d5958150b3fe61f8bc434426"}},{"ruleId":"D1","level":"warning","message":{"text":"specgenutil.getIOLimits (cyclomatic 16): specgenutil.getIOLimits 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/specgenutil/specgen.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ed8a2ec5e72a1da04166ef11c41f11bc9e364a77b516273b709f3408c7c6dd"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.PodUnits (cyclomatic 16): generate.PodUnits 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/systemd/generate/pods.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc95affed9dd50e48099c0ac738d3dcbb0a21caf63a49d90616b7e8ad7e2ff7"}},{"ruleId":"D1","level":"warning","message":{"text":"util.parseAutoTriple (cyclomatic 16): util.parseAutoTriple 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/utils.go"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b363e911641293fe2674465c08952cb9615f18ee00e1eee24514666eb6957a"}},{"ruleId":"D1","level":"warning","message":{"text":"EventJournalD.Write (cyclomatic 16): EventJournalD.Write 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":"libpod/events/journal_linux.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"008255eedc461547bb586e31562f418f8b2e963ef87afc9a589e972ef57fd507"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.generateSpec (cognitive 329): Container.generateSpec has cognitive complexity 329 (threshold 15). Drivers by points: if/else 122 (282 pts), loops 18 (30 pts), boolean chains 12, match/switch 2 (5 pts) (nesting depth added 175). Of this number, 327 points are the body\u0027s own statements and 2 belong to 2 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":"libpod/container_internal_common.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"47500e0c8f30ae52da9708856bd82ef6d845d3c1af6497c542e4598e7ebf44cb"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.FillOutSpecGen (cognitive 249): specgenutil.FillOutSpecGen has cognitive complexity 249 (threshold 15). Drivers by points: if/else 140 (192 pts), boolean chains 44, loops 8 (9 pts), match/switch 2 (4 pts) (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into 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/specgenutil/specgen.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb207df2058d4c10b5d8d98cc3cd90d8eef5053436bcf0cff10a5b8c13e67c5"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.playKubePod (cognitive 231): ContainerEngine.playKubePod has cognitive complexity 231 (threshold 15). Drivers by points: if/else 100 (186 pts), loops 20 (36 pts), boolean chains 8, match/switch 1 (nesting depth added 102). Of this number, 228 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/play.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a05acc16cf41181b2e2d3adb640e03bd9f102cee2d44273e7c0702c8a9994a"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.setupContainer (cognitive 208): Runtime.setupContainer has cognitive complexity 208 (threshold 15). Drivers by points: if/else 74 (167 pts), loops 9 (25 pts), boolean chains 9, match/switch 3 (7 pts) (nesting depth added 113). Of this number, 202 points are the body\u0027s own statements and 6 belong to 2 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":"libpod/runtime_ctr.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea18985584d0dcdf2e5f9ace9742821b1f3c4c09b3478b1942780a1aafe8ea16"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.restore (cognitive 193): Container.restore has cognitive complexity 193 (threshold 15). Drivers by points: if/else 84 (162 pts), loops 7 (18 pts), boolean chains 13 (nesting depth added 89). Of this number, 185 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32f2b09435ef795cc68650253abd00cceece1171e2d50afc67128c5e01ac378"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.PlayKube (cognitive 170): ContainerEngine.PlayKube has cognitive complexity 170 (threshold 15). Drivers by points: if/else 55 (144 pts), loops 6 (14 pts), match/switch 3 (7 pts), boolean chains 5 (nesting depth added 101). Of this number, 152 points are the body\u0027s own statements and 18 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/play.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfd25e8f7d649da2da8e426635deca62df4ecfe69e0c6d7af76501a6af6fb4f"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.createContainerOptions (cognitive 169): generate.createContainerOptions has cognitive complexity 169 (threshold 15). Drivers by points: if/else 83 (139 pts), loops 10 (16 pts), boolean chains 13, match/switch 1 (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into 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/specgen/generate/container_create.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8cc8e0241d8257e3f8b5e7e05e94c77b503d9847b6c8e7c71c4c0a56840740"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.cliOpts (cognitive 165): compat.cliOpts has cognitive complexity 165 (threshold 15). Drivers by points: if/else 55 (120 pts), loops 19 (26 pts), match/switch 4 (10 pts), boolean chains 9 (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into 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/api/handlers/compat/containers_create.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"090d6dd05bd8f11862d65532e76cae96535df21383eb6b8cb0552a97ce0f13b9"}},{"ruleId":"D2","level":"warning","message":{"text":"filters.GenerateContainerFilterFuncs (cognitive 159): filters.GenerateContainerFilterFuncs has cognitive complexity 159 (threshold 15). Drivers by points: if/else 36 (110 pts), loops 16 (35 pts), boolean chains 13, match/switch 1 (nesting depth added 93). Of this number, 59 points are the body\u0027s own statements and 100 belong to 9 function literals inside it that branch. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/filters/containers.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06b3b2c776da1c7917675f0051c28cf6fe01278f2f44222c4510d4a00d59b23"}},{"ruleId":"D2","level":"warning","message":{"text":"images.prepareParams (cognitive 147): images.prepareParams has cognitive complexity 147 (threshold 15). Drivers by points: if/else 96 (124 pts), loops 14 (17 pts), match/switch 5, boolean chains 1 (nesting depth added 31). 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/bindings/images/build.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7b48794721b141ad0f4d2747f3bf066f08d3e75eb3bf6aa4da010dae9dcafa"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.removeContainer (cognitive 145): Runtime.removeContainer has cognitive complexity 145 (threshold 15). Drivers by points: if/else 61 (124 pts), boolean chains 13, loops 4 (8 pts) (nesting depth added 67). Of this number, 141 points are the body\u0027s own statements and 4 belong to 2 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":"libpod/runtime_ctr.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"590e0c9057d72f4e9830578319fa7f25efc46c04d92cb15d56407f2449e9daaf"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.namespaceOptions (cognitive 145): generate.namespaceOptions has cognitive complexity 145 (threshold 15). Drivers by points: if/else 61 (108 pts), boolean chains 16, loops 5 (15 pts), match/switch 6 (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/specgen/generate/namespaces.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5391fd32f78e14af3cb08da1789a07d5e3fa021ba9bf7ab1a388af17ec0e7919"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.ToSpecGen (cognitive 144): kube.ToSpecGen has cognitive complexity 144 (threshold 15). Drivers by points: if/else 77 (124 pts), loops 6 (9 pts), boolean chains 7, match/switch 2 (4 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into 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/specgen/generate/kube/kube.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7289a402f2bf80a63280a0278d883d8adf594426690fb91a6c168ddc144dfb7"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.extractFirstWord (cognitive 137): parser.extractFirstWord has cognitive complexity 137 (threshold 15). Drivers by points: if/else 21 (82 pts), jumps 17, match/switch 5 (16 pts), loops 5 (14 pts), boolean chains 8 (nesting depth added 81). Of this number, 136 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/systemd/parser/split.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acc2b98b3f3c48f9ed7786eab3b419d73c1f9cecbe3367377cf993e0654e5a2"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.MakeContainer (cognitive 135): generate.MakeContainer has cognitive complexity 135 (threshold 15). Drivers by points: if/else 73 (119 pts), boolean chains 8, match/switch 2 (6 pts), loops 1 (2 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into 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/specgen/generate/container_create.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a093671e4f908009eab9fd39892dee994e6eb70c10499e7e6be063a6337c18aa"}},{"ruleId":"D2","level":"warning","message":{"text":"common.buildFlagsWrapperToOptions (cognitive 134): common.buildFlagsWrapperToOptions has cognitive complexity 134 (threshold 15). Drivers by points: if/else 77 (116 pts), loops 7 (12 pts), boolean chains 4, match/switch 2 (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":"cmd/podman/common/build.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1be728d42576d32969c53887cfea0c6b028dbbab7656df57ce1be71a4918d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.createBuildOptions (cognitive 131): compat.createBuildOptions has cognitive complexity 131 (threshold 15). Drivers by points: if/else 72 (111 pts), loops 6 (11 pts), match/switch 2 (5 pts), boolean chains 4 (nesting depth added 47). Of this number, 127 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images_build.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37c4dab2db0cc0f8a7ac8124acd30d7f4e76627d702ea845079cabc6adc804e"}},{"ruleId":"D2","level":"warning","message":{"text":"common.NetFlagsToNetOptions (cognitive 130): common.NetFlagsToNetOptions has cognitive complexity 130 (threshold 15). Drivers by points: if/else 45 (105 pts), loops 7 (18 pts), boolean chains 7 (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/netflags.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"580d31073dbe37b935f893d1988ed03c65fed16e8182e93aa0638b9307d88b7b"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.parseMountOptions (cognitive 127): specgenutil.parseMountOptions has cognitive complexity 127 (threshold 15). Drivers by points: if/else 39 (113 pts), match/switch 4 (12 pts), boolean chains 1, loops 1 (nesting depth added 82). To reduce it, split the body into named stages: move each independent step or branch into 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/specgenutil/volumes.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9684d377ac9a9cf1a0b08346757aa97f828130d8164627233c020e88d13089"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.makeBindMounts (cognitive 125): Container.makeBindMounts has cognitive complexity 125 (threshold 15). Drivers by points: if/else 44 (106 pts), boolean chains 9, loops 3 (5 pts), match/switch 1 (3 pts), jumps 2 (nesting depth added 66). 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":"libpod/container_internal_common.go"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e1c5fdf2d18b8f624c55d9aa7138895f150aa8b0aec671adadf4622cc2b024"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.makeRuntime (cognitive 124): libpod.makeRuntime has cognitive complexity 124 (threshold 15). Drivers by points: if/else 65 (117 pts), boolean chains 6, loops 1 (nesting depth added 52). Of this number, 108 points are the body\u0027s own statements and 16 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9604337e3d34ba6981b083e0828f007c4e672d1e4a06fcd6e58e910ce4fee0"}},{"ruleId":"D2","level":"warning","message":{"text":"util.processOptionsInternal (cognitive 117): util.processOptionsInternal has cognitive complexity 117 (threshold 15). Drivers by points: if/else 43 (109 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into 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/mount_opts.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1748399e722cfc44217609de27a632f70122733a7d3667b506ff88dfd0c50f"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.ParsePortMapping (cognitive 108): generate.ParsePortMapping has cognitive complexity 108 (threshold 15). Drivers by points: if/else 30 (86 pts), loops 9 (20 pts), boolean chains 2 (nesting depth added 67). Of this number, 99 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/specgen/generate/ports.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ff8436edff1ac39f0c73350d192c2bbe7b1affbf50e39de943fab147a8713b"}},{"ruleId":"D2","level":"warning","message":{"text":"filters.GenerateExternalContainerFilterFuncs (cognitive 102): filters.GenerateExternalContainerFilterFuncs has cognitive complexity 102 (threshold 15). Drivers by points: if/else 24 (72 pts), loops 11 (24 pts), boolean chains 5, match/switch 1 (nesting depth added 61). Of this number, 62 points are the body\u0027s own statements and 40 belong to 6 function literals inside it that branch. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/filters/containers.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f6fd11f07122b635b260abef6cf962f99c4be6c3dcf68b403a538fc6ee1874"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.CompleteSpec (cognitive 102): generate.CompleteSpec has cognitive complexity 102 (threshold 15). Drivers by points: if/else 47 (80 pts), loops 6 (10 pts), boolean chains 8, match/switch 1 (4 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/container.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd63dc7f797ce155c2c9c8ad80a501610016db125f3dc9cb57541c9befb9102"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.newVolume (cognitive 93): Runtime.newVolume has cognitive complexity 93 (threshold 15). Drivers by points: if/else 38 (76 pts), match/switch 3 (8 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 45). Of this number, 85 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":"libpod/runtime_volume_common.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"24878d07d8f6c51fa9b1522acacff786c23168fc11d80f0140e8bf4e40bed9f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.WaitForConditionWithInterval (cognitive 92): Container.WaitForConditionWithInterval has cognitive complexity 92 (threshold 15). Drivers by points: if/else 25 (74 pts), match/switch 4 (9 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 55). Of this number, 24 points are the body\u0027s own statements and 68 belong to 2 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":"libpod/container_api.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb8ddecb111955df087c24ec99001d01374b0bf23975103c01e267603b02d1a"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.validate (cognitive 92): Container.validate has cognitive complexity 92 (threshold 15). Drivers by points: if/else 37 (63 pts), boolean chains 21, loops 6 (8 pts) (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":"libpod/container_validate.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f871fab1107dd7dc668c0da8f41a516984e22fec1cd8b04bc1ed14296ca4f0b"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.Attach (cognitive 92): containers.Attach has cognitive complexity 92 (threshold 15). Drivers by points: if/else 36 (77 pts), match/switch 2 (6 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 47). Of this number, 85 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/attach.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f885d8e2def3b88d51d2f54dd7472d8c70fe74d2c79798b3c4a098d88a3201f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.mountStorage (cognitive 90): Container.mountStorage has cognitive complexity 90 (threshold 15). Drivers by points: if/else 44 (84 pts), boolean chains 5, loops 1 (nesting depth added 40). Of this number, 69 points are the body\u0027s own statements and 21 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a647f30936e7f7fb236db853175b754a27e63efbd002e127755dfb19560b4c2"}},{"ruleId":"D2","level":"warning","message":{"text":"specgen.GenVolumeMounts (cognitive 89): specgen.GenVolumeMounts has cognitive complexity 89 (threshold 15). Drivers by points: if/else 23 (66 pts), match/switch 2 (9 pts), loops 3 (8 pts), boolean chains 6 (nesting depth added 55). 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/specgen/volumes.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27e5aafa4d1051ec489294da147922598f52ff55ffbb323f384207dbb78b501"}},{"ruleId":"D2","level":"warning","message":{"text":"main.persistentPreRunE (cognitive 88): main.persistentPreRunE has cognitive complexity 88 (threshold 15). Drivers by points: if/else 35 (82 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 49). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/root.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"84859978063104d59097290bdddcaa5af2ae588cc85231e8206045dc21558bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.simplePodWithV1Containers (cognitive 86): libpod.simplePodWithV1Containers has cognitive complexity 86 (threshold 15). Drivers by points: if/else 25 (66 pts), loops 6 (16 pts), boolean chains 4 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/kube.go"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19ac3d31f0980c20dbb7dde37add10a1c67b740c7830381907761a14112ad19"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.ManifestModify (cognitive 86): libpod.ManifestModify has cognitive complexity 86 (threshold 15). Drivers by points: if/else 38 (76 pts), loops 3 (6 pts), boolean chains 2, match/switch 2 (nesting depth added 41). Of this number, 58 points are the body\u0027s own statements and 28 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/api/handlers/libpod/manifests.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"19072395c9941b2ab411bca8281e9519d2af9041b56643b74f05dff6e3e29fa4"}},{"ruleId":"D2","level":"warning","message":{"text":"images.nTar (cognitive 83): images.nTar has cognitive complexity 83 (threshold 15). Drivers by points: if/else 30 (79 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 50). Most of this is not in the body itself: 2 of the 83 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1161, 1310). 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/bindings/images/build.go"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd0ba577a57bbd620731e2cf74d34fd90dc0f5c9fa3b327d40c01cb475e7744"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.mounts (cognitive 82): specgenutil.mounts has cognitive complexity 82 (threshold 15). Drivers by points: if/else 24 (76 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 55). Most of this is not in the body itself: 2 of the 82 points are its own statements and the rest belongs to one function literal inside it that branches (line 196). 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/specgenutil/volumes.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2f975801173891f6abb676f30f6d6023640c4725e3bf6bf58225db7ff8b226"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.executeContainerTemplate (cognitive 82): generate.executeContainerTemplate has cognitive complexity 82 (threshold 15). Drivers by points: if/else 36 (71 pts), loops 4 (9 pts), boolean chains 2 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/generate/containers.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"feff8ee8f76601074dc83ea9df99708f31dc91228cf10b0afb14bf3499c5a206"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.Reset (cognitive 81): Runtime.Reset has cognitive complexity 81 (threshold 15). Drivers by points: if/else 40 (69 pts), loops 6 (10 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/reset.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51cb0aa9af65e6302609e11490061cb74c45148203f56478e23b70dad9a5ed8"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.GenerateKube (cognitive 79): ContainerEngine.GenerateKube has cognitive complexity 79 (threshold 15). Drivers by points: if/else 34 (73 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/generate.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03400fb6e4de8d40c0fb7770caa4d85175ca05c19c018b9e81789300f5fa7b3"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.CreateInit (cognitive 78): containers.CreateInit has cognitive complexity 78 (threshold 15). Drivers by points: if/else 33 (62 pts), boolean chains 13, loops 1 (3 pts) (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":"cmd/podman/containers/create.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc06b3273bdf1a0f4bca7dee7bd9532b100e32dfc49c03e58fe1001b04b820c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConmonOCIRuntime.createOCIContainer (cognitive 77): ConmonOCIRuntime.createOCIContainer has cognitive complexity 77 (threshold 15). Drivers by points: if/else 48 (69 pts), boolean chains 6, loops 2 (nesting depth added 21). Of this number, 75 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":"libpod/oci_conmon_common.go"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c3946f81c64791ee219b7ba86c02cacf06c688634a829ffed198e83ae98a6c"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.ConfigToSpec (cognitive 77): generate.ConfigToSpec has cognitive complexity 77 (threshold 15). Drivers by points: if/else 28 (40 pts), loops 9 (24 pts), match/switch 3 (11 pts), boolean chains 2 (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/specgen/generate/container.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0319b943254546d46af3d288de1a2b90f2526591045df8df8d3bd8c08d824a3"}},{"ruleId":"D2","level":"warning","message":{"text":"filters.GeneratePodFilterFunc (cognitive 75): filters.GeneratePodFilterFunc has cognitive complexity 75 (threshold 15). Drivers by points: if/else 19 (51 pts), loops 9 (19 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 44). Of this number, 20 points are the body\u0027s own statements and 55 belong to 7 function literals inside it that branch. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/filters/pods.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7390be5a33e80aaa0506d680edb1ede7ce13b0b198fa0ce0777fed322da5cf"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.GetLimits (cognitive 74): libpod.GetLimits has cognitive complexity 74 (threshold 15). Drivers by points: if/else 27 (51 pts), loops 9 (20 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_linux.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5da82edc9832aa0acfff754539dcba81ae5168918342d98063376e198731a9"}},{"ruleId":"D2","level":"warning","message":{"text":"checkpoint.CRImportCheckpoint (cognitive 73): checkpoint.CRImportCheckpoint has cognitive complexity 73 (threshold 15). Drivers by points: if/else 35 (64 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/checkpoint/checkpoint_restore.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa30a92083921ddfa9f5641da588c9ccfdec37f415553e3a101d31b9e2f06d8"}},{"ruleId":"D2","level":"warning","message":{"text":"rootless.becomeRootInUserNS (cognitive 73): rootless.becomeRootInUserNS has cognitive complexity 73 (threshold 15). Drivers by points: if/else 33 (58 pts), loops 2 (8 pts), boolean chains 7 (nesting depth added 31). Of this number, 64 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/rootless/rootless_linux.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"187a5e39f69ea4032edb6305544095d53d97e66f55e2de3bb6c1b906139eaed2"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.podWithContainers (cognitive 72): Pod.podWithContainers has cognitive complexity 72 (threshold 15). Drivers by points: if/else 18 (55 pts), loops 5 (11 pts), boolean chains 6 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/kube.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"840933b62fbe434962f96af26ca0311346109a21d6001c965cd92aeac08c514d"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.PushImage (cognitive 72): compat.PushImage has cognitive complexity 72 (threshold 15). Drivers by points: if/else 30 (63 pts), match/switch 2 (5 pts), jumps 3, loops 1 (nesting depth added 36). Of this number, 68 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images_push.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4072b4e1c3a177421e82c6464bf9d147fcc536113006bd4d0798727454a04524"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.finalizeMounts (cognitive 71): generate.finalizeMounts has cognitive complexity 71 (threshold 15). Drivers by points: if/else 28 (53 pts), loops 16, boolean chains 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/storage.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9894c0cdee96ce662e0192ee23dd408ffa8559f1e790dff0eb3d51aff49bc144"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.ConvertContainer (cognitive 71): quadlet.ConvertContainer has cognitive complexity 71 (threshold 15). Drivers by points: if/else 38 (46 pts), boolean chains 13, loops 10, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/quadlet/quadlet.go"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b6a7b331443b26c09a4936a0855173362485d0dcc33a0d687c4654bb87de4c"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.copyFromArchive (cognitive 70): Container.copyFromArchive has cognitive complexity 70 (threshold 15). Drivers by points: if/else 27 (60 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 38). Of this number, 29 points are the body\u0027s own statements and 41 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":"libpod/container_copy_common.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05cc8e2f9511dbb87573b1c95f97e57e022dbb7c84f3ebf48afd29ac3d84567"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.generatePasswdAndGroup (cognitive 70): Container.generatePasswdAndGroup has cognitive complexity 70 (threshold 15). Drivers by points: if/else 26 (58 pts), boolean chains 8, match/switch 2 (4 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"43de12a173b7ef17e1885df20959bdabf5bc67982c208fa8c74494b823d38b95"}},{"ruleId":"D2","level":"warning","message":{"text":"ConmonOCIRuntime.HTTPAttach (cognitive 69): ConmonOCIRuntime.HTTPAttach has cognitive complexity 69 (threshold 15). Drivers by points: if/else 30 (59 pts), match/switch 2 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 34). Of this number, 33 points are the body\u0027s own statements and 36 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a161a80f91ab925d543a9965d77382754df821ac077bbe44b47b13baf83b23f6"}},{"ruleId":"D2","level":"warning","message":{"text":"shim.startLocked (cognitive 69): shim.startLocked has cognitive complexity 69 (threshold 15). Drivers by points: if/else 45 (64 pts), boolean chains 5 (nesting depth added 19). Of this number, 66 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/shim/host.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb93b7d4e7f2e9c5b7da2239eaeb512a3344c38c81b9593a081e7e8c4404870"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.ExecStartAndAttach (cognitive 68): containers.ExecStartAndAttach has cognitive complexity 68 (threshold 15). Drivers by points: if/else 27 (61 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 37). Of this number, 63 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/bindings/containers/attach.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e9cbc005a3f63007b5aecd22b5308a7bc4aff0c43d516eb4f47f1886e46a91"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.fixVolumePermissionsUnlocked (cognitive 67): Container.fixVolumePermissionsUnlocked has cognitive complexity 67 (threshold 15). Drivers by points: if/else 24 (61 pts), boolean chains 6 (nesting depth added 37). 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":"libpod/container_internal_common.go"},"region":{"startLine":3183}}}],"partialFingerprints":{"codehealthFindingId/v1":"857c27afeb81359ca90ad27856d8276335b6f091b6d2f7decefc2bbf917141da"}},{"ruleId":"D2","level":"warning","message":{"text":"common.ParseBuildOpts (cognitive 66): common.ParseBuildOpts has cognitive complexity 66 (threshold 15). Drivers by points: if/else 35 (58 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 24). Of this number, 61 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":"cmd/podman/common/build.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"569401335e3a184b294c0923540b9029ef34d572f2b374b510e11723fe14a291"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.PlayKubeDown (cognitive 66): ContainerEngine.PlayKubeDown has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (48 pts), loops 5 (11 pts), match/switch 2 (6 pts), boolean chains 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/domain/infra/abi/play.go"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"e283cc28c75b30361a4d8c417a22466d814f8ebe53c67272572571bc44c3f415"}},{"ruleId":"D2","level":"warning","message":{"text":"images.prepareRemoteRequestBody (cognitive 65): images.prepareRemoteRequestBody has cognitive complexity 65 (threshold 15). Drivers by points: if/else 27 (57 pts), loops 5 (6 pts), match/switch 1 (2 pts) (nesting depth added 32). Of this number, 41 points are the body\u0027s own statements and 24 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/bindings/images/build.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"6396fc3e7052c53b6c1dbed50c3adcbc189ee9b9e2fbe40a1ea76511306e6585"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.ExecuteTransfer (cognitive 64): utils.ExecuteTransfer has cognitive complexity 64 (threshold 15). Drivers by points: if/else 29 (57 pts), match/switch 3 (4 pts), loops 2, boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into 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/domain/utils/scp.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12a32602754b3638ffc7c4ea4d191b5366e1fbec7495a2f3faaa77033353bd7"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.containerToV1Container (cognitive 63): libpod.containerToV1Container has cognitive complexity 63 (threshold 15). Drivers by points: if/else 29 (50 pts), boolean chains 9, loops 2 (4 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":"libpod/kube.go"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"23af538de556b4f74ebf38c2cf8dc488967f88fc780a9793a4754570ccb525de"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.QuadletRemove (cognitive 63): ContainerEngine.QuadletRemove has cognitive complexity 63 (threshold 15). Drivers by points: if/else 25 (52 pts), loops 6 (10 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/domain/infra/abi/quadlet.go"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"2165b768f33cea0df08aaf8d3df0b85bead49c7cf9cda79e4c1a7f09bb327c7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.readFromJournal (cognitive 62): Container.readFromJournal has cognitive complexity 62 (threshold 15). Drivers by points: if/else 29 (47 pts), boolean chains 7, loops 4 (5 pts), match/switch 1 (3 pts) (nesting depth added 21). Of this number, 25 points are the body\u0027s own statements and 37 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":"libpod/container_log_unsupported.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4a145db9f98dbd773560e8c6c16baec17f0e044abc48ef474a4b0b8ac58234"}},{"ruleId":"D2","level":"warning","message":{"text":"abi.getContainers (cognitive 62): abi.getContainers has cognitive complexity 62 (threshold 15). Drivers by points: if/else 16 (41 pts), loops 7 (16 pts), boolean chains 4, match/switch 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/containers.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d13e5406df63861b4373e7df1438e884010ea433353ceeb78038b430d71759"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.update (cognitive 61): Container.update has cognitive complexity 61 (threshold 15). Drivers by points: if/else 30 (51 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 22). Of this number, 60 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":"libpod/container_internal.go"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"984efc5c0fed1f412d55c8e96ffe5bdce620a7d7d339fe4146de215c44ecf956"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.getVolumesFrom (cognitive 61): generate.getVolumesFrom has cognitive complexity 61 (threshold 15). Drivers by points: if/else 14 (45 pts), loops 6 (12 pts), match/switch 1 (4 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/storage.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"615cf84a10ed9958e710127df0bb4021ede16210bf65c5927067f8353f89e168"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.ImagesPull (cognitive 60): libpod.ImagesPull has cognitive complexity 60 (threshold 15). Drivers by points: if/else 28 (45 pts), loops 4 (8 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 22). Of this number, 51 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/images_pull.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e151ae8db4f4db23e78c1c7a57eb6ce44aecf706f3736d460e99dafac3975834"}},{"ruleId":"D2","level":"warning","message":{"text":"bindings.sshClient (cognitive 60): bindings.sshClient has cognitive complexity 60 (threshold 15). Drivers by points: if/else 24 (59 pts), boolean chains 1 (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/bindings/connection.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5c2aabbe587767d2df36255da47c52b0e1c87247b5df46c96a9ab769560e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerStart (cognitive 60): ContainerEngine.ContainerStart has cognitive complexity 60 (threshold 15). Drivers by points: if/else 20 (57 pts), boolean chains 2, loops 1 (nesting depth added 37). Of this number, 57 points are the body\u0027s own statements and 3 belong to 2 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/domain/infra/abi/containers.go"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"090752733f37a8e02f9f4cf673c277137d726ea8e82d2706b93a1c822861330f"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.TopContainer (cognitive 59): compat.TopContainer has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (42 pts), loops 3 (9 pts), jumps 4, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 31). Of this number, 58 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/api/handlers/compat/containers_top.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7385c68eae69563e9c56cc5441035ac8c9ec9c3fdb64777e90a977bf66b88438"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.processBuildContext (cognitive 59): compat.processBuildContext has cognitive complexity 59 (threshold 15). Drivers by points: if/else 24 (54 pts), loops 1 (3 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/api/handlers/compat/images_build.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"97518906c1b8e9bb98ce55f431c8ae0b362d0da5ca2951a18f70bbe56ea38e58"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.VolumeOptions (cognitive 59): parse.VolumeOptions has cognitive complexity 59 (threshold 15). Drivers by points: if/else 11 (49 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/parse/parse.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"be77e0ccbad517d66624b17e828b68cd3ae2e9a560319b29bf1f340046e49230"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.LibpodToContainer (cognitive 58): compat.LibpodToContainer has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25 (48 pts), match/switch 3 (5 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b82b92ad45c69f7fa60de5cdec11b51ffea09b7ad6a07e176b078a8cd7d033d"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.handleBuildContexts (cognitive 57): compat.handleBuildContexts has cognitive complexity 57 (threshold 15). Drivers by points: if/else 24 (55 pts), loops 2 (nesting depth added 31). Of this number, 45 points are the body\u0027s own statements and 12 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/api/handlers/compat/images_build.go"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"259f8c3adb2414ca0dfa90a7bd54ae44ef5df32ab7ccb23d2171f085cf0e724e"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.play (cognitive 56): kube.play has cognitive complexity 56 (threshold 15). Drivers by points: if/else 31 (48 pts), boolean chains 6, loops 2 (nesting depth added 17). Of this number, 50 points are the body\u0027s own statements and 6 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":"cmd/podman/kube/play.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc034466644d70c8c49c9dd0c9b2b334c6145a1aa237b0b3c78ac095b5c5e67"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.httpAttachNonTerminalCopy (cognitive 56): libpod.httpAttachNonTerminalCopy has cognitive complexity 56 (threshold 15). Drivers by points: if/else 16 (52 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38c75c287f9d5d176e2d6a21d4094ece2bb6cdefa0f7f95ec97af14ef4dfb39"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.removeVolume (cognitive 56): Runtime.removeVolume has cognitive complexity 56 (threshold 15). Drivers by points: if/else 29 (51 pts), boolean chains 3, 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":"libpod/runtime_volume_common.go"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5608d88eaf8d7176ead575f2313fa8bd7411200cf0913ac7b84dee5106d3864"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.setupSecurityContext (cognitive 56): kube.setupSecurityContext has cognitive complexity 56 (threshold 15). Drivers by points: if/else 29 (43 pts), boolean chains 6, loops 3 (5 pts), match/switch 1 (2 pts) (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/specgen/generate/kube/kube.go"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ba3cf7dc30fc48352fcf1dc2084242c2308871a1db1fd2d7fc95a5d6fb82a4"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.run (cognitive 54): containers.run has cognitive complexity 54 (threshold 15). Drivers by points: if/else 29 (42 pts), loops 4 (6 pts), boolean chains 3, match/switch 1 (3 pts) (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":"cmd/podman/containers/run.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75ccf0eada6480c8bb74f02c682648cf505c52b3f88252d40725d34beda2dc5"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.Commit (cognitive 53): Container.Commit has cognitive complexity 53 (threshold 15). Drivers by points: if/else 23 (39 pts), loops 7 (11 pts), boolean chains 3 (nesting depth added 20). Of this number, 51 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":"libpod/container_commit.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"061a7fd49d5fee8c162e5c8bb4a7adb5e0218b64d0cfea14a99e7089e20e0201"}},{"ruleId":"D2","level":"warning","message":{"text":"BoltState.GetNetworks (cognitive 52): BoltState.GetNetworks has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (50 pts), loops 1 (2 pts) (nesting depth added 25). Most of this is not in the body itself: 8 of the 52 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 253, 215). 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":"libpod/boltdb_state.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"1886ea92c8f9d87f05789a7de9606ddbb43b139418919d68a7dac0d75cabf4ba"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.ConvertVolume (cognitive 52): quadlet.ConvertVolume has cognitive complexity 52 (threshold 15). Drivers by points: if/else 24 (49 pts), boolean chains 3 (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/systemd/quadlet/quadlet.go"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d06b7592bbee09dad563c34038c9bbc073c8f6bbc10db4cb3cd4cd9f2ce9038"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecGenerator.Validate (cognitive 51): SpecGenerator.Validate has cognitive complexity 51 (threshold 15). Drivers by points: if/else 27 (34 pts), boolean chains 17 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/container_validate.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f04a6c667d85c654d843ff94030b0bedd8dadbea4a216da1fd0970d862ece5"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.parseVolumes (cognitive 51): specgenutil.parseVolumes has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (36 pts), loops 13, boolean chains 2 (nesting depth added 18). Of this number, 50 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/specgenutil/volumes.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d565d79b829ed946e1938732ffa87e9a2e3fa8f67db16cd3cd72fc7e3ce0c4cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.generateInspectContainerHostConfig (cognitive 50): Container.generateInspectContainerHostConfig has cognitive complexity 50 (threshold 15). Drivers by points: if/else 29 (44 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_inspect.go"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1bddaeaecb1c6bd03d8c8fd20b40f425ef4c3366a98b157fef574225a851c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.exportCheckpoint (cognitive 50): Container.exportCheckpoint has cognitive complexity 50 (threshold 15). Drivers by points: if/else 26 (46 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 21). Of this number, 35 points are the body\u0027s own statements and 15 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0f60a621d11122cbdf206a3f2c1198fa856d8914a4eb78770d60d8e72d8671"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.resolvePath (cognitive 50): Container.resolvePath has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (49 pts), loops 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_path_resolution.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44ffab48a35b49bee5bb3ae2ae669d9762573cbedd163549765e2e311908107"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.Sign (cognitive 50): ImageEngine.Sign has cognitive complexity 50 (threshold 15). Drivers by points: if/else 20 (46 pts), loops 2 (4 pts) (nesting depth added 28). Most of this is not in the body itself: 5 of the 50 points are its own statements and the rest belongs to one function literal inside it that branches (line 718). 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/domain/infra/abi/images.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4aa52d6f7ab8eb7d4beea0def6072b8d8a9746ca5acd3243731a22cdd33a13"}},{"ruleId":"D2","level":"warning","message":{"text":"inspector.inspect (cognitive 49): inspector.inspect has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (30 pts), loops 7 (15 pts), boolean chains 2, match/switch 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":"cmd/podman/inspect/inspect.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"723db62272bdf92f6e333b9d5b9c778776dec60170a1fdd02165f32def07cf6d"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.PodTop (cognitive 49): libpod.PodTop has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 4 (14 pts), jumps 3, match/switch 1 (2 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into 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/api/handlers/libpod/pods.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dad454da5bae0c3518d8bbe6ab072a1751f497129cc483870c8512cdb6d4886"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.QuadletInstall (cognitive 49): ContainerEngine.QuadletInstall has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (37 pts), loops 5 (7 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/quadlet.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"603d4d44e39c617a19c34e16b223540a90bafe53240a80f1bbc4d32311313183"}},{"ruleId":"D2","level":"warning","message":{"text":"system.restService (cognitive 48): system.restService has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (44 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 23). Of this number, 47 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":"cmd/podman/system/service_abi.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"35261bcaa5af43c07b17bb6ff99b12e1d93363a8ef705d3b34e0545d72ec811b"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.checkpoint (cognitive 48): Container.checkpoint has cognitive complexity 48 (threshold 15). Drivers by points: if/else 30 (41 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 12). Of this number, 44 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"849e47e31c946f1840bc78e8aba9b918a20bd08863af0a426b9a13f03365a62c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.ValidateDBConfig (cognitive 48): SQLiteState.ValidateDBConfig has cognitive complexity 48 (threshold 15). Drivers by points: if/else 28 (47 pts), loops 1 (nesting depth added 19). Of this number, 33 points are the body\u0027s own statements and 15 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":"libpod/sqlite_state.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1058ac1cd5caf44259e9f9c05caffc04d28a664dc6aa4cab0e2d3719f3dab1"}},{"ruleId":"D2","level":"warning","message":{"text":"manifests.Modify (cognitive 48): manifests.Modify has cognitive complexity 48 (threshold 15). Drivers by points: if/else 25 (41 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 18). Of this number, 24 points are the body\u0027s own statements and 24 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/bindings/manifests/manifests.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19ac2eae30feeb9450ebca6845b4917e2a638d54bea051d5734c1cf5e884996"}},{"ruleId":"D2","level":"warning","message":{"text":"shim.Init (cognitive 48): shim.Init has cognitive complexity 48 (threshold 15). Drivers by points: if/else 35 (46 pts), loops 1, match/switch 1 (nesting depth added 11). Of this number, 44 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/shim/host.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"02536a0bf609421389e7019a2bf191a49fbd99f5b1d03eff13da306fe35a2d7e"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.parseSecrets (cognitive 48): specgenutil.parseSecrets has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (41 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 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/specgenutil/specgen.go"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc66ffbbc79b9e14ea17343652d06d50ec5126a14ea18d30efc8321afebf995b"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.cleanup (cognitive 47): Container.cleanup has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (45 pts), boolean chains 1, loops 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":"libpod/container_internal.go"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7ed654c170b1f7e34cb633bea169fb2f3bc64fd04e4cae1d7967951d1633d8"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.LogsFromContainer (cognitive 47): compat.LogsFromContainer has cognitive complexity 47 (threshold 15). Drivers by points: if/else 23 (42 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 20). Of this number, 46 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/api/handlers/compat/containers_logs.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0719cea5f8bdb373ada9619e8ca08f0e680911c7fa20ced9390d98b71b6f03a6"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.CreateNetwork (cognitive 47): compat.CreateNetwork has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (39 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (2 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/api/handlers/compat/networks.go"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"47702524932c629b957774b2e21b76c8170588c63d636682af0b7e46b6ba613a"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.CompatPull (cognitive 47): utils.CompatPull has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (39 pts), match/switch 2 (5 pts), boolean chains 1, jumps 1, loops 1 (nesting depth added 28). Of this number, 45 points are the body\u0027s own statements and 2 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/api/handlers/utils/images.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"34994027d309a39512e43257177824ba2de913b2c233a12587da586ab4cba575"}},{"ruleId":"D2","level":"warning","message":{"text":"infra.getRuntime (cognitive 47): infra.getRuntime has cognitive complexity 47 (threshold 15). Drivers by points: if/else 33 (39 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/runtime_libpod.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed21449ef771d39146016dbfadb0a81b59c7e2013b71e6bccfdf2e9ba31a6a6"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.port (cognitive 46): containers.port has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 4 (11 pts), boolean chains 7 (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":"cmd/podman/containers/port.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2db373cba80869722e150907c3adefb51d4bb3c0c1e35ecc98826c1186c7686"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.LibpodToContainerJSON (cognitive 46): compat.LibpodToContainerJSON has cognitive complexity 46 (threshold 15). Drivers by points: if/else 26 (37 pts), loops 2 (5 pts), boolean chains 2, match/switch 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d80337ebbc140c736621c79329c0f31b772911e0b3644a893d14907001e19c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.NetworkRm (cognitive 46): ContainerEngine.NetworkRm has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (39 pts), boolean chains 4, loops 2 (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/domain/infra/abi/network.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6808ada73058479d8ea15cbb05fc5c48554cc3de4d3e71028eef51843203efc3"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.cUnescapeOne (cognitive 46): parser.cUnescapeOne has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 4, loops 2 (4 pts), match/switch 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/systemd/parser/split.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dde58d6aef07f6fa8ad7401c330ce5d8c3e653c171c66900e2b82467ae1f912"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.restore (cognitive 45): containers.restore has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 13, loops 2, match/switch 1 (2 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/restore.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf47ff38c8802dca61d44e5943ab4d839cc7c237e23fd8627fe2f8c0669f4e1"}},{"ruleId":"D2","level":"warning","message":{"text":"abi.getAllQuadlets (cognitive 45): abi.getAllQuadlets has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (34 pts), loops 6 (10 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/domain/infra/abi/quadlet_utils.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d7016e9ee05b60dd379344b8658ce41dab2d9464b225d0a970218229310090"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.removePod (cognitive 44): Runtime.removePod has cognitive complexity 44 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_pod_common.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9ca064fe96c5431b0bf9b2e680c2e2702b305e4f529d564b5f71c2e528f24f"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.Refresh (cognitive 44): SQLiteState.Refresh has cognitive complexity 44 (threshold 15). Drivers by points: if/else 25 (38 pts), loops 6 (nesting depth added 13). Of this number, 41 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea8b7dbd0db338542718efa7dd9b788b2a8e1424d640c775f3f9ed7c4f9de88"}},{"ruleId":"D2","level":"warning","message":{"text":"specgen.ParseNetworkFlag (cognitive 44): specgen.ParseNetworkFlag has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (35 pts), loops 2 (5 pts), boolean chains 3, match/switch 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/specgen/namespaces.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d4f993b00c976ae1b846a336665737a0c0d45e597d44aadf84e7e1201d6806"}},{"ruleId":"D2","level":"warning","message":{"text":"PodSpecGenerator.Validate (cognitive 44): PodSpecGenerator.Validate has cognitive complexity 44 (threshold 15). Drivers by points: if/else 24 (42 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/pod_validate.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc5771c1e76d5b7bcc1acfaf73548a88f9ab14f4297f13e6067ed532199359b"}},{"ruleId":"D2","level":"warning","message":{"text":"volumes.prune (cognitive 43): volumes.prune has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (37 pts), boolean chains 4, loops 1 (2 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":"cmd/podman/volumes/prune.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59af8e7cfaaf12a4420e9633d51adc87bec5a8bf80d7cb9d3e80dfdf5e03718"}},{"ruleId":"D2","level":"warning","message":{"text":"events.generateEventFilter (cognitive 43): events.generateEventFilter has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (38 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 22). Most of this is not in the body itself: 3 of the 43 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 93, 63, 16, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/events/filters.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47b20dee6e42e7f14bb3400fc46575a4bf2a9dcc2691adb8dbc728660dd0c74"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.StatsContainer (cognitive 43): compat.StatsContainer has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (39 pts), boolean chains 2, jumps 1, 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/api/handlers/compat/containers_stats.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd62582159c0b6bce99cbb1174cb238de0dd16d9cb9a1e7346b8fbf8de87a05"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.setNamespaces (cognitive 43): specgenutil.setNamespaces has cognitive complexity 43 (threshold 15). Drivers by points: if/else 24 (40 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6614084e612eef308d64e65f923d00030dff350eea8e94e1e610a4564b8ed4ef"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.requestMachinePorts (cognitive 42): libpod.requestMachinePorts has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (36 pts), loops 3 (6 pts) (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":"libpod/networking_machine.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cb6c7006fecd7599b5bec7eaabea8e70e58e6ef053d87b33e2978b52c6abf9"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.runHealthCheck (cognitive 42): Container.runHealthCheck has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 7, match/switch 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":"libpod/healthcheck.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcdc80fec0250ef71e000e5618b925de1870f32ee9fc30ffb44bc60c7e3f2e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.getContainerNetworkInfo (cognitive 42): Container.getContainerNetworkInfo has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (33 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 16). Of this number, 40 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":"libpod/networking_common.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cc2dc8bcf33ffbbc11a83b368d131c434d29f66e6ebe1112d2bfe83320d767"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerMount (cognitive 42): ContainerEngine.ContainerMount has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 5, loops 4 (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/domain/infra/abi/containers.go"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab4d4ff16bf1b2988c8301a3157da0f026de1f0295067a4df9a9e551f204b53"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.SystemDf (cognitive 42): ContainerEngine.SystemDf has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 3, boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/system.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a32c74cca41b336d2d5d2f07c78763b97c8462b774a61afaa315ac1a7b4020"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.SpecGenToOCI (cognitive 42): generate.SpecGenToOCI has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (27 pts), loops 5 (8 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/oci_linux.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a22940962d8cec4011ae21b6bc019188ba8fef0867a0110f73c772600135a5"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.VolumeFromHostPath (cognitive 42): kube.VolumeFromHostPath has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (40 pts), match/switch 1 (2 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/specgen/generate/kube/volume.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fb603de2abb81d1354ab49c803ebe25f443808363d6012797cdbe30ff844d5"}},{"ruleId":"D2","level":"warning","message":{"text":"util.ParseDockerignore (cognitive 42): util.ParseDockerignore has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (36 pts), loops 2 (4 pts), boolean chains 2 (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/util/utils.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b698a4a9d78e0431679df151f7448306e01c52150ee1f48263e618eba2e5ad4d"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.evictContainer (cognitive 41): Runtime.evictContainer has cognitive complexity 41 (threshold 15). Drivers by points: if/else 24 (38 pts), loops 2, boolean chains 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":"libpod/runtime_ctr.go"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e70a87fd9aadada32898164cfa1358474a0652226588c34395d92a77f8a303c"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.NetworkDisconnect (cognitive 40): Container.NetworkDisconnect has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (35 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 15). Of this number, 39 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":"libpod/networking_common.go"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1ee6192df68da7260c5e11cd6bec4474a9f1c52da49edf8cc26c6e2912aba0"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.SystemCheck (cognitive 40): Runtime.SystemCheck has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (30 pts), loops 5 (8 pts), boolean chains 2 (nesting depth added 15). Of this number, 36 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":"libpod/runtime.go"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"615d9088898a1dab3413182fec7ef0fb26b4f00c7aa77a8072bc402fe067b5a2"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.ToPodOpt (cognitive 40): kube.ToPodOpt has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (25 pts), loops 5 (14 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/kube/kube.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7075a11a3b2ee1d97da2df3ea36e72e5893b18a3d8e1b79794def56aab6f9b67"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.executePodTemplate (cognitive 40): generate.executePodTemplate has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (33 pts), loops 1 (3 pts), boolean chains 2, match/switch 1 (2 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/systemd/generate/pods.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ebf03b12cd979bc5b96181aad58111ea9b25d0271d5d0b34f714e3988b3d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.ps (cognitive 39): containers.ps has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (28 pts), loops 4 (7 pts), boolean chains 2, match/switch 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":"cmd/podman/containers/ps.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f3e6152edc8a47fc0c874567034a33acf65dc49c70fcc02e768da02b61846c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.loadTemplateInstances (cognitive 39): main.loadTemplateInstances has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (33 pts), loops 3 (4 pts), boolean chains 2 (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":"cmd/quadlet/main.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7942f5a58068c07eb8c70ce3c58b305667ce4b48466a54a41f9cbf17162a305d"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.setupStorage (cognitive 39): Container.setupStorage has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"4479a216e71e3d827d7d19c0144de0236f46cc6fddf1bd4912543d30e104c65e"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.DevicesFromPath (cognitive 39): generate.DevicesFromPath has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 2 (nesting depth added 18). Of this number, 31 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/specgen/generate/config_linux.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"22203758538965befedeef2778fb0af767a9390ca15ce630b605b6d3cc981926"}},{"ruleId":"D2","level":"warning","message":{"text":"NotifyProxy.listen (cognitive 39): NotifyProxy.listen has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 4 (10 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 24). None of this is in the body itself: all 39 points belong to one function literal inside it that branches (line 190). 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/systemd/notifyproxy/notifyproxy.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"70318ab11ec39b92542d07cde0d982afb085a5b6b4dd5857e10c2f502711875e"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.attachExecHTTP (cognitive 38): libpod.attachExecHTTP has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25 (34 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 10). Of this number, 26 points are the body\u0027s own statements and 12 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b3b65b9cb76a0fe06a171f9991125e8526624bdee01ab705e5742a8ef861ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerRun (cognitive 38): ContainerEngine.ContainerRun has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 3, loops 1 (nesting depth added 14). Of this number, 37 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/domain/infra/abi/containers.go"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58b873bd98f40ab6f207d9cff94a13de72bd97a70f590a6c847175a41903d0f"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.initMachine (cognitive 37): machine.initMachine has cognitive complexity 37 (threshold 15). Drivers by points: if/else 22 (32 pts), loops 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/init.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1f0eb0e8a841de00f02dbb2c25f7b18649fc4dbacf47716421039622e74057"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.readConmonPipeData (cognitive 37): libpod.readConmonPipeData has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (33 pts), boolean chains 3, match/switch 1 (nesting depth added 22). Of this number, 34 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":"libpod/oci_conmon_common.go"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b63ad56066208fe14ebbcbe50a362ec5d9e658d5d1725a97ecddec34d8e9ea"}},{"ruleId":"D2","level":"warning","message":{"text":"EventLogFile.Read (cognitive 37): EventLogFile.Read has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (27 pts), match/switch 3 (6 pts), boolean chains 3, loops 1 (nesting depth added 15). Most of this is not in the body itself: 9 of the 37 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 170, 138, 156). 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":"libpod/events/logfile.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4e9dd89c9aad31ab5677217579c9ecac33ee971b78d85ec687da1362388ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.Mount (cognitive 37): ImageEngine.Mount has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05381c9a79d5414ba1fb049d3159e5ca4a0c40c7088f86b406aee4a8607d432"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerRm (cognitive 37): ContainerEngine.ContainerRm has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 6 (14 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/containers.go"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48a937dbf83a3bef8090b1949d498c35dff38890e0150030d00dca15dce1049"}},{"ruleId":"D2","level":"warning","message":{"text":"shim.Reset (cognitive 37): shim.Reset has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 3 (4 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/machine/shim/host.go"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bae043f4771367f75c78278c78b12c354c8e805eaadf921c1efc96133a9fa43"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.PodConfigToSpec (cognitive 37): generate.PodConfigToSpec has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 2 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/pod_create.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9f4dd88f69745f9530c10f1bea5a7e5d6a493e1c8ab4f6c11d42289b57d1c1"}},{"ruleId":"D2","level":"warning","message":{"text":"connection.add (cognitive 36): connection.add has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22 (33 pts), match/switch 2 (3 pts) (nesting depth added 12). Of this number, 27 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":"cmd/podman/system/connection/add.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18e9710e92d85ceb664d995e982fa144a4ede88249e3cfb4c53f17a5919b2b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.getContainerInspectData (cognitive 36): Container.getContainerInspectData has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25 (33 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_inspect.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3891646ec05dd33c97f041ea697c8d4144080ec3536b4c2a34d0325ca59dae"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.mountNamedVolume (cognitive 36): Container.mountNamedVolume has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 1 (nesting depth added 16). Of this number, 34 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":"libpod/container_internal.go"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"6036b52cc7a9af85a2b9ee2f6ef7be958f29f3bad7e0a24df2d1b3b6fd183126"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.Migrate (cognitive 36): Runtime.Migrate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 3, match/switch 1 (3 pts), loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_migrate.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e607e7009f63d31c97bf704863abe88300071e92709c11c6891ebbff04a83abb"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.UpdateVolumePlugins (cognitive 36): Runtime.UpdateVolumePlugins has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 3 (4 pts), boolean chains 1 (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":"libpod/runtime_volume_common.go"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0352fc539f5beaa8a461eb9658f30cd0b9ced1644a37d8f568b7d743b0f80b4"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.convertLibpodNetworktoDockerNetwork (cognitive 36): compat.convertLibpodNetworktoDockerNetwork has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 4 (9 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/api/handlers/compat/networks.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf15859c646edae5da75e6859f5291a134b3d7eacc227f28ca606b2307bfec87"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.SystemPrune (cognitive 36): ContainerEngine.SystemPrune has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (33 pts), loops 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/system.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5d8ed14c441f8353ff6a7570aeb838920609d1c4b34cbff5c5913ba45524f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerStart (cognitive 36): ContainerEngine.ContainerStart has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 20). Of this number, 32 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/domain/infra/tunnel/containers.go"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dc010d39121723b0de515b8d9fe6130fb809052f3601accac996184f69dd8d"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.envVarValue (cognitive 36): kube.envVarValue has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 1 (3 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/specgen/generate/kube/kube.go"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b360d9260046f0612cbfee924833a83acbd634a680d743f75e673979eaa67f2"}},{"ruleId":"D2","level":"warning","message":{"text":"trust.AddPolicyEntries (cognitive 36): trust.AddPolicyEntries has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 3 (6 pts), 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/trust/policy.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"87180413bc9fe8be596977675a8591a96e8ebaccf07da7ffee2f526c3da8e069"}},{"ruleId":"D2","level":"warning","message":{"text":"main.process (cognitive 35): main.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 3, loops 3, match/switch 1 (2 pts) (nesting depth added 10). Of this number, 34 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":"cmd/quadlet/main.go"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"941222e95f96f1b103e9549a9a120a7f541fb40a798b23d455c7743b6a48dd61"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.execStartAndAttach (cognitive 35): Container.execStartAndAttach has cognitive complexity 35 (threshold 15). Drivers by points: if/else 25 (34 pts), boolean chains 1 (nesting depth added 9). Of this number, 33 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":"libpod/container_exec.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cc090f5136a8839b4251dfcae13f23854527bc8b4ee2ead6e7b09cb8aa0191"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.NetworkConnect (cognitive 35): Container.NetworkConnect has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 3, loops 1 (nesting depth added 7). Of this number, 34 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/networking_common.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"a227623305b2d14928353a60ed8d8ed46994d704a89e7c344f1197ba3a7b9b14"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerRestore (cognitive 35): ContainerEngine.ContainerRestore has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/containers.go"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c20b7c5d087292b14626b23729da7477b5acb773891039475ba969f471a039"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.MakePod (cognitive 35): generate.MakePod has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 3 (nesting depth added 10). Of this number, 31 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/specgen/generate/pod_create.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f193697f31bd430858102308abda0c34d310bf3a2eda64fee45d58255bd23cf0"}},{"ruleId":"D2","level":"warning","message":{"text":"EventJournalD.Read (cognitive 35): EventJournalD.Read has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21 (33 pts), boolean chains 1, loops 1 (nesting depth added 12). Of this number, 19 points are the body\u0027s own statements and 16 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":"libpod/events/journal_linux.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"939d85306dca838f503d8f0d8e65afd315b80595f70f4881e32e949d28504ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"network.networkCreate (cognitive 34): network.networkCreate has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/networks/create.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80b98cf30ef5ec4ec0b7b515f4abb075407c3a0a054cef53f7ce03e9c0f005b"}},{"ruleId":"D2","level":"warning","message":{"text":"main.parent (cognitive 34): main.parent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (30 pts), match/switch 1 (2 pts), jumps 1, loops 1 (nesting depth added 8). Of this number, 30 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/rootlessport/main.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"384831f276282707518681712e464fa84dbff99166c9338d5e2a3e72d7b073ed"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.WaitForExit (cognitive 34): Container.WaitForExit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_api.go"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b32ca109685f6c99a2a815a48bf7667b4f9e434b043cd2134777f8b5d2126a7"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.Inspect (cognitive 34): Pod.Inspect has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (27 pts), loops 4 (7 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod_api.go"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"861acf7e33d46b9f218a6f5a64e51b072d471d64d80f6a187f9d258b5854eb74"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.addContainer (cognitive 34): SQLiteState.addContainer has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 3, loops 2, match/switch 1 (2 pts) (nesting depth added 10). Of this number, 31 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state_internal.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa286649c0776fec1b210a7eb3fb9a91b378aa50230fa722ba315d42c588413c"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.UpdateContainer (cognitive 34): compat.UpdateContainer has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27 (32 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6512f67701e2e1e3c5abd7cc1e4d93cfe36d04a63386ed01cadc6b7a8102d8"}},{"ruleId":"D2","level":"warning","message":{"text":"abi.getKubePods (cognitive 34): abi.getKubePods has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (31 pts), match/switch 1 (2 pts), loops 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/domain/infra/abi/generate.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"87272c17d6b7533c51613782dde30fe1e21658764b4b849a2e5d211cc588caed"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerUnmount (cognitive 34): ContainerEngine.ContainerUnmount has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 17). 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/domain/infra/abi/containers.go"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"d315de88f8de43a2c558668b82a032ebc0bd51727a7982e309e3f714f45b7351"}},{"ruleId":"D2","level":"warning","message":{"text":"listLocal.build (cognitive 34): listLocal.build has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (31 pts), loops 2 (3 pts) (nesting depth added 13). Of this number, 29 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into 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/farm/list_builder.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff077c8ab2abfa6a9299f1248bc9705adcb8d0c855effb4635124ba8c7dbfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"util.breakInsert (cognitive 34): util.breakInsert has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 4, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/utils.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"5958c18501ff29af34873f6db02b2792eef85080d0afdcf9b74a62d9259df5d2"}},{"ruleId":"D2","level":"warning","message":{"text":"common.DefineCreateFlags (cognitive 33): common.DefineCreateFlags has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 5 (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":"cmd/podman/common/create.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de69319d993dc070c337f8576f96f1fddaae5c06bd8607e95653ed290cd6947"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.systemd (cognitive 33): generate.systemd has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 2, loops 1 (2 pts), match/switch 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/generate/systemd.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"db66cc29d460670889257a9292404765b088964fafdd4b1caf880976aa15bf7e"}},{"ruleId":"D2","level":"warning","message":{"text":"logs.getTailLog (cognitive 33): logs.getTailLog has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/logs/log.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0fc3c2024ac817c2a182e60a5e84c8d94e55c27edfbe7a9a57b4e433f434e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.migrateDB (cognitive 33): Runtime.migrateDB has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 5 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_migrate.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45c4bf346fc7559a13120768cc0d0f0cdbc5213503afe999132e19d3bee17b0"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.AllContainers (cognitive 33): SQLiteState.AllContainers has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 3 (5 pts) (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":"libpod/sqlite_state.go"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86309b88063d16c29e98148bba16c35ed9c1f72985802efd61059609d62154a"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.GetEvents (cognitive 33): compat.GetEvents has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/events.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d405b147381d9d69f3527b566374036a4422fb37d1f179e9f3a4f93de9866701"}},{"ruleId":"D2","level":"warning","message":{"text":"images.build (cognitive 33): images.build has cognitive complexity 33 (threshold 15). Drivers by points: if/else 24 (32 pts), boolean chains 1 (nesting depth added 8). Of this number, 30 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/images/build.go"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f6212fe38e20b323a06e7fa8d043680fa58f11ec6121d6b8688780a7d8d8ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.List (cognitive 33): ImageEngine.List has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (31 pts), boolean chains 1, loops 1 (nesting depth added 17). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 34). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images_list.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a12a755b0bc5da4c5d8855a3bcefa3e0940f696c2c74f55fa29eaad07b6a234"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerRunlabel (cognitive 33): ContainerEngine.ContainerRunlabel has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/containers_runlabel.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc53ba1f40ee403babcce916c51bd9f1c0d4d3fef9c729478767ee2ab8149a8"}},{"ruleId":"D2","level":"warning","message":{"text":"ps.GetContainerLists (cognitive 33): ps.GetContainerLists has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (2 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/ps/ps.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b44b5d1d22f8bf741d6c53bd3e456a3cde39cb388cdd9345b376ca671da129"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.copyToContainer (cognitive 32): containers.copyToContainer has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 5 (nesting depth added 7). Of this number, 21 points are the body\u0027s own statements and 11 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":"cmd/podman/containers/cp.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31f943e19c6423cb37c4904d7586392090cb2b419eb3b0ca6eda0ab071cea1c"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.create (cognitive 32): containers.create has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (31 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":"cmd/podman/containers/create.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ab7437dc718f97c376321b1f4c63ee9364a89599e5bdc59816d19b07653f03"}},{"ruleId":"D2","level":"warning","message":{"text":"images.prepareContainerFiles (cognitive 32): images.prepareContainerFiles has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 2, loops 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/bindings/images/build.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"575e403b2807aa46c870a0fb8095c77c710f2c97dba7e8f7382e7c2ce919d2cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerClone (cognitive 32): ContainerEngine.ContainerClone has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (26 pts), loops 2 (4 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/domain/infra/abi/containers.go"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb881a90c20269e767cc713709333f9a02372a21dc5d30204cef43acfbfe3c57"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.PodClone (cognitive 32): ContainerEngine.PodClone has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 2 (4 pts), match/switch 1 (2 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/domain/infra/abi/pods.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f2f2c05beb663c4a51b69402ead187170e13edb608d6e3be4a1951b8667306"}},{"ruleId":"D2","level":"warning","message":{"text":"util.parseTriple (cognitive 32): util.parseTriple has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (21 pts), loops 3 (6 pts), boolean chains 5 (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/util/utils.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"928a9a1475576f2ac4261fa396b54c5d6cafc8081801b661d229ab44ed72b103"}},{"ruleId":"D2","level":"warning","message":{"text":"images.imagePush (cognitive 31): images.imagePush has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22 (31 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/push.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"40dd4980fd0955f997921d8fa003a06d28fef80516e6f44924015cd714331e9e"}},{"ruleId":"D2","level":"warning","message":{"text":"images.imageSearch (cognitive 31): images.imageSearch has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 3, match/switch 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/search.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bffb6daf46edde1ac616d864f3727db8b8d8236e390063930384840d5d8df02"}},{"ruleId":"D2","level":"warning","message":{"text":"manifest.add (cognitive 31): manifest.add has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 1 (2 pts), match/switch 1 (2 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":"cmd/podman/manifest/add.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fbbe1ce7868deb81ccd788fcd7a73c2b1904e4ce7431445d7b9d44c7d5e0fd"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.resultToBasicNetworkConfig (cognitive 31): libpod.resultToBasicNetworkConfig has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 3 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/networking_common.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"989e42445983632e9168db415463a6ef584f4c2a9c727f648a51ccbb5ee5e896"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.getLockManager (cognitive 31): libpod.getLockManager has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (26 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"54971298ab30f30435e90991faaaaa3bfb65de4d3b5030792aa7aff911e49dd7"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.execLightweight (cognitive 31): Container.execLightweight has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (28 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). Of this number, 28 points are the body\u0027s own statements and 3 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":"libpod/container_exec.go"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"74700f9f0ca57c9f8663dc974419c9529144bcf0453f72b45b4db04345c5ad5e"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.prepareProcessExec (cognitive 31): Container.prepareProcessExec has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (27 pts), loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"a694a11466d3bca3c231f4e839687c418081522d2a5b5653d7c24f69e274b5c3"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.canStopServiceContainer (cognitive 31): Container.canStopServiceContainer has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 2 (4 pts), match/switch 1 (2 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":"libpod/service.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfabd07da107dc0c0fdf114e8f2ecc6b9e35e8e4ae39bc7837b87c6b7d0c764"}},{"ruleId":"D2","level":"warning","message":{"text":"events.newEventFromJournalEntry (cognitive 31): events.newEventFromJournalEntry has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (30 pts), match/switch 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":"libpod/events/journal_linux.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e01073cdeef21157406bf91fa7428d587e8a8f3e0a7980c17186c68022cdf72"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.ListContainers (cognitive 31): compat.ListContainers has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). Of this number, 30 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/api/handlers/compat/containers.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7297a9af631e4b7be3d11187ca72b136ec468491463f1dc33d955ac06dbbefec"}},{"ruleId":"D2","level":"warning","message":{"text":"filters.GenerateVolumeFilters (cognitive 31): filters.GenerateVolumeFilters has cognitive complexity 31 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 4 (9 pts), match/switch 3 (7 pts), boolean chains 2 (nesting depth added 18). Most of this is not in the body itself: 6 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 63, 41). 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/domain/filters/volumes.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b8769e8c953c2a5a0a1016b60e99537f8c93ac320d653520250a620a6e68ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerRestore (cognitive 31): ContainerEngine.ContainerRestore has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 4 (6 pts), match/switch 1 (nesting depth added 17). Of this number, 27 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into 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/domain/infra/abi/containers.go"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7a46623f084353c8201cbf483b35893dd48fdba78078dd7023a164bd7a6aa7"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.addNetworks (cognitive 31): quadlet.addNetworks has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (29 pts), boolean chains 1, loops 1 (nesting depth added 20). 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/systemd/quadlet/quadlet.go"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f34efb6aa5cef0466f031f37039ed59bafe801db98c234cc7f4889ccdbdb35"}},{"ruleId":"D2","level":"warning","message":{"text":"util.getDevices (cognitive 31): util.getDevices has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/utils_linux.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"891ca1ed0ef9ed9f97a835c215addefc7c3740336a07bcb8d1db58e885793115"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.exec (cognitive 30): containers.exec has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (26 pts), loops 3, 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":"cmd/podman/containers/exec.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a78ea6498507693a6219514a03646f2bf9cb82bf79df4c07a9c304459eae77"}},{"ruleId":"D2","level":"warning","message":{"text":"farm.farmUpdate (cognitive 30): farm.farmUpdate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 12). Most of this is not in the body itself: 3 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 66). 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":"cmd/podman/farm/update.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"415f31c702212ccdca0e3b8d63573359fcc6e52a52aafcaddea3226f3c855402"}},{"ruleId":"D2","level":"warning","message":{"text":"manifest.push (cognitive 30): manifest.push has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (30 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/manifest/push.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"482020cf1d5257027e757740c94fbb85ff6aa9ea2f7d030f62fb70524e5a0605"}},{"ruleId":"D2","level":"warning","message":{"text":"localapi.CheckIfImageBuildPathsOnRunningMachine (cognitive 30): localapi.CheckIfImageBuildPathsOnRunningMachine has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/localapi/utils.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"786ede42d171d0d0effbd2556938fdd98600299db20dedcfebb4a969bfacf6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.generateKubeSecurityContext (cognitive 30): libpod.generateKubeSecurityContext has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (25 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 11). Of this number, 27 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/kube.go"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb6db99e9c72338a7dd1312b043475e9bdbbd13b6447a173dab4ac259ff7c98"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.cleanupStorage (cognitive 30): Container.cleanupStorage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 9). Of this number, 25 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c67c1998fa8d846072d01182a13d383132fa1631e2bb3457e184be1cd91a0c6"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.mergeDBConfig (cognitive 30): Runtime.mergeDBConfig has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 12 (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":"libpod/runtime.go"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c605425409e4fbcc3da041a201e1e948b0c7db5c0000a66b2602de1bd6677572"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.NewPod (cognitive 30): Runtime.NewPod has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 5, loops 2 (nesting depth added 8). Of this number, 27 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_pod_common.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1088dedafd3498e7f9ce523054ba64ab46d77f496642c3f073b5ce720d799729"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.CreateContainer (cognitive 30): compat.CreateContainer has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers_create.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a3a8685866c205ea9807dcd480350aba8e489d20195fe9b11e168de37ebae2"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.PushImage (cognitive 30): libpod.PushImage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (27 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). Of this number, 29 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/api/handlers/libpod/images_push.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3915d196cebc3a3c1cd7ed4621ccbe9370ed3654e072a67c859c2ad952c7a71c"}},{"ruleId":"D2","level":"warning","message":{"text":"artifacts.Extract (cognitive 30): artifacts.Extract has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/artifacts/extract.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c55d2aeab9a0121c9e4cf1bcb93ca2b39fca0728bf0cc75d4212977cf1ce89c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.ManifestAnnotate (cognitive 30): ImageEngine.ManifestAnnotate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (30 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/manifest.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0e3bffe3a3b3685d6af801d543c0ebee21f08aac3f5977e135d7e845a5cc8a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.containerStopImpl (cognitive 30): ContainerEngine.containerStopImpl has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 3, loops 2, match/switch 1 (2 pts) (nesting depth added 11). Most of this is not in the body itself: 6 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 322). 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/domain/infra/abi/containers.go"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"983c81a747b14d5d233adae7543f9334a537dcf75dbffd2ad87ce908d98438d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Farm.Build (cognitive 30): Farm.Build has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 4 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 11). Of this number, 15 points are the body\u0027s own statements and 15 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/farm/farm.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"2593acca5a9622f0c0bb1deca56941f755ace93c6f5a363083c6e061a84ee578"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.handleUserRemap (cognitive 30): quadlet.handleUserRemap has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 4 (10 pts), match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/quadlet/quadlet.go"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d655d83e113bd0ac0c83f3545aa393e9d15626287c0e2c0bbf4363b5bfa5a1"}},{"ruleId":"D2","level":"warning","message":{"text":"util.ParseIDMapping (cognitive 30): util.ParseIDMapping has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 8, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/util/utils.go"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a17357681a357b17d7109808e15873e102e9cd83ba78ad3ac0a6bbd93a636b0"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.copyFromContainer (cognitive 29): containers.copyFromContainer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 4 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/cp.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa3b787c346f1f38b0e860715ac0712876ebb6fcb63b144d0567d449f55a9d7"}},{"ruleId":"D2","level":"warning","message":{"text":"validate.CheckAllLatestAndIDFile (cognitive 29): validate.CheckAllLatestAndIDFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 8 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/validate/args.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"862801804914ff84d9611ce02a80ceed4c6fe754b5a770afa9c75a9c130a8921"}},{"ruleId":"D2","level":"warning","message":{"text":"main.loadUnitDropins (cognitive 29): main.loadUnitDropins has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 6 (8 pts) (nesting depth added 13). Of this number, 28 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":"cmd/quadlet/main.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b59d74a289cb4f27c8f774e32eb2e147eec1f52cf37450a31f2baae9080794a"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.detectCycles (cognitive 29): libpod.detectCycles has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 2, boolean chains 1 (nesting depth added 13). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 117). 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":"libpod/container_graph.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"89532876e4de74183e3a54bee567e4d5ec0acb2d4d5ba00cf0a90c3ae523213d"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.ExecHTTPStartAndAttach (cognitive 29): Container.ExecHTTPStartAndAttach has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22 (29 pts) (nesting depth added 7). Of this number, 27 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_exec.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06076db8494eaac72560554785b820ed5b16ef200431f25be5f80d174dd994f"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.exec (cognitive 29): Container.exec has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). Most of this is not in the body itself: 12 of the 29 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 838, 860). 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":"libpod/container_exec.go"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b796ed9e9fcfbaa3a065ec215d2d7de854d88dea34799048bfecb116e1c656d"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.getActiveExecSessions (cognitive 29): Container.getActiveExecSessions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_exec.go"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14af6cfd7a8023d92e9a5b1b76da8ee65d28885eb299a907cd4a11bc6c47d44"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.CommitContainer (cognitive 29): libpod.CommitContainer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). Of this number, 27 points are the body\u0027s own statements and 2 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/api/handlers/libpod/images.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa7cdb7233c9420fff5451f8445efc21064a7bf67cdeabe56a2c15a065a1a3c"}},{"ruleId":"D2","level":"warning","message":{"text":"updater.assembleTasks (cognitive 29): updater.assembleTasks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 2 (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/autoupdate/autoupdate.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8801fd14e6f6fb7109d2013b4a1ac7e56ef83dd565ac40069d6528b328f6cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"util.ToParams (cognitive 29): util.ToParams has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (7 pts), match/switch 1 (2 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/bindings/internal/util/util.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd6b92aec17f3b83c579e9a4bd373187350d083ced96b416a1c3f93a7fff122"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.GetDefaultNamespaceMode (cognitive 29): generate.GetDefaultNamespaceMode has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 7, match/switch 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/namespaces.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4e8f9d1061c3bf3b520a90761aa1737d7eb8c462070eeaf6c9bc6f658215fa"}},{"ruleId":"D2","level":"warning","message":{"text":"common.AutocompleteFormat (cognitive 28): common.AutocompleteFormat has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 12). None of this is in the body itself: all 28 points belong to one function literal inside it that branches (line 1360). 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":"cmd/podman/common/completion.go"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"815d6e0832b3a588bcabfd44deedeff73099844783e3ce6a3db28d901825ce19"}},{"ruleId":"D2","level":"warning","message":{"text":"ConmonOCIRuntime.StopContainer (cognitive 28): ConmonOCIRuntime.StopContainer has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 1, loops 1 (nesting depth added 10). Of this number, 17 points are the body\u0027s own statements and 11 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"133c45dd2743c82fba277f0287a6e8ca7bc3585eeca4c12237f4e1735f6cbc56"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.stopWithTimeout (cognitive 28): Pod.stopWithTimeout has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod_api.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd8a5b5b56bc85f4e9c7a018c80cff0f3ab667b33d768ec5346da54dfbcb419"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.RemoveStorageContainer (cognitive 28): Runtime.RemoveStorageContainer has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 2, 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":"libpod/runtime_cstorage.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61c95e46595bf1efe3590da101d467f52e5503bfb31432e8572ba418aaa3ac4"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.GetImages (cognitive 28): compat.GetImages has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a40d125d773174b35597631669e917a15cfa5c0606871e285c42e1fe335a77"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerCleanup (cognitive 28): ContainerEngine.ContainerCleanup has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 4, 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/domain/infra/abi/containers.go"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd639070c9fbeb23556979b7195a0f2dfe7b910cc0b2be7fe502a270464bfc26"}},{"ruleId":"D2","level":"warning","message":{"text":"tunnel.parseBuildOutput (cognitive 28): tunnel.parseBuildOutput has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/images.go"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c76c9a5fb9a02333d81887642be495e7b59123b2d11ea50ee148c55001f5e26"}},{"ruleId":"D2","level":"warning","message":{"text":"emulation.parseBinfmtMisc (cognitive 28): emulation.parseBinfmtMisc has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 1 (2 pts), boolean chains 1, 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/emulation/binfmtmisc_linux.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"445d3f07bf40a14b3b33bf4d65e26f90c5f07750a3ae522599646aa400a7c854"}},{"ruleId":"D2","level":"warning","message":{"text":"Farm.Schedule (cognitive 28): Farm.Schedule has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 4 (6 pts) (nesting depth added 12). Most of this is not in the body itself: 13 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 170). 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/farm/farm.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3544a72c69120c012521b5e06b60a95a0bcc4ed53de6ec48397b83261a558d85"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.MapSpec (cognitive 28): generate.MapSpec has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/specgen/generate/pod_create.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4ad5ebb5fcb917f4e283c9b8d51e7fabaf82884b5db8c9a00b593ac69a0a45"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.translateUnitDependencies (cognitive 28): quadlet.translateUnitDependencies has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (3 pts) (nesting depth added 17). 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/systemd/quadlet/quadlet.go"},"region":{"startLine":2398}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cedc937442be47b31c69b41f929726e0337bd482d19fb262912855d26469dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"images.sortImages (cognitive 27): images.sortImages has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 14). Of this number, 20 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/list.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fe91438eabdb95782c22f637d0958348286bb230714bec5418343155cfd96b"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.startNode (cognitive 27): libpod.startNode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_graph.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3584cc7bfa880eadfe7aa138a470574fb613fb804f447f33ae65af36ec99ee"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.ManifestPush (cognitive 27): libpod.ManifestPush has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (24 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/manifests.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ddb15159435f03bb2cbd27eb73be4212563151bf87684717b35481cc199381"}},{"ruleId":"D2","level":"warning","message":{"text":"updater.updateUnit (cognitive 27): updater.updateUnit has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 9). Of this number, 19 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/autoupdate/autoupdate.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f7bf78188ffcde06fb39da92ba9dd3202ee20ba41309c1779b0a1cd7d96511"}},{"ruleId":"D2","level":"warning","message":{"text":"infra.ParseIDMapping (cognitive 27): infra.ParseIDMapping has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/runtime_libpod.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72f9a4bbdbc648e2843e9ea8e49a8b8f70f4a9af5078c68151047f077f3e88d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.ArtifactAdd (cognitive 27): ImageEngine.ArtifactAdd has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), match/switch 1 (5 pts), loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/artifact.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f4a1d142a0fd619c21c847c3c76c420812a76b8fd821aa8c7473bb6625960a"}},{"ruleId":"D2","level":"warning","message":{"text":"vsock.loadHVSockRegistryEntries (cognitive 27): vsock.loadHVSockRegistryEntries has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 1, loops 1 (nesting depth added 11). Of this number, 24 points are the body\u0027s own statements and 3 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/machine/hyperv/vsock/vsock.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e343a8d6bbd8d94cfdc45a119d1b059b9e4c349eceee1d063d2b672976d253"}},{"ruleId":"D2","level":"warning","message":{"text":"images.imagePull (cognitive 26): images.imagePull has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (22 pts), loops 2 (3 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":"cmd/podman/images/pull.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"29718405c97a5477373693da081ec2120d9c06b9afe6db99080cfac9e0269608"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.httpAttachTerminalCopy (cognitive 26): libpod.httpAttachTerminalCopy has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 1 (3 pts), loops 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":"libpod/oci_conmon_common.go"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d8bc77d92fdbf98cc5719d3833f1216d835f2c2a2770126c3da21d8f771ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"Event.toHumanReadable (cognitive 26): Event.toHumanReadable has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 1 (3 pts), boolean chains 1, match/switch 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":"libpod/events/events.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91f1750dc93e59f40f5733a5692cfc0b33863f8cb50c5369f5ed1dcca82b5d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ConmonOCIRuntime.Attach (cognitive 26): ConmonOCIRuntime.Attach has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4 (nesting depth added 7). Of this number, 24 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":"libpod/oci_conmon_attach_common.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"899ef73efb1710bd52db0c51af25e858a33175d09ace6e6c230567b131115f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.refresh (cognitive 26): Runtime.refresh has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 3, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0246b3cf9fa18590d8fc642ba57c47e5e6abb610a162dc0e5a48074500c050a"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.RenameVolume (cognitive 26): SQLiteState.RenameVolume has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (26 pts) (nesting depth added 7). Of this number, 23 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c6994ed2fea1d7b93330f985375fda0376cebeac5050e4b0a2d01b50c5c029"}},{"ruleId":"D2","level":"warning","message":{"text":"Volume.mount (cognitive 26): Volume.mount has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/volume_internal_common.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"15df1819c1abc756f8654353a43b037bd00ece52fd3c9cb2b598d9bff6e095ed"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.inspectCandidate (cognitive 26): compat.inspectCandidate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/distribution.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7b8fefe6adbafdd67d3806eb1342f593bbcad32ffbbf342cd69aafbf979e1a"}},{"ruleId":"D2","level":"warning","message":{"text":"ps.ListContainerBatch (cognitive 26): ps.ListContainerBatch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 1 (nesting depth added 5). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 190). 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/ps/ps.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d256d95567670aed52b95929048686b50421762fbde349de20789f9bf4165b0c"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.ConvertKube (cognitive 26): quadlet.ConvertKube has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 4, loops 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/quadlet/quadlet.go"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fbb92f6143d61f57e6992858e4b73582590d28b2052d84706f1d9615d62e3a"}},{"ruleId":"D2","level":"warning","message":{"text":"common.getImages (cognitive 25): common.getImages has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (7 pts), boolean chains 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":"cmd/podman/common/completion.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c45d4802aadc771e60c1f466c74a24d8f2f4c047617f9fa7b8404b5d422535d"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.pullImage (cognitive 25): containers.pullImage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/create.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e1f107b1abfdf6cd64213e12c6995ecb86372ec4205b584751f1df322591cd"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.portsToString (cognitive 25): containers.portsToString has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 5 (8 pts), boolean chains 2 (nesting depth added 9). Of this number, 24 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":"cmd/podman/containers/ps.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"7306869d75e5f5b2c591314f84e192fcc3c2c7b4c22afe91d0166a470cb39545"}},{"ruleId":"D2","level":"warning","message":{"text":"inspector.inspectAll (cognitive 25): inspector.inspectAll has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (24 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":"cmd/podman/inspect/inspect.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bffba90689b0dddbeb20dc01ba8cb81b85ec7b600cd099083133c4dd8c4db7"}},{"ruleId":"D2","level":"warning","message":{"text":"BoltState.getContainerFromDB (cognitive 25): BoltState.getContainerFromDB has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 1 (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":"libpod/boltdb_state_internal.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37b94e6248b1da1b03bae06d59463671fb88f1ad58a26b24be339b15a5c45d7"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.redirectResponseToOutputStreams (cognitive 25): libpod.redirectResponseToOutputStreams has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (20 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_attach_common.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbf21c1443023704a83e1d86a6f85fa759c70c0a10462f786afe306c8d24bd4"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.NamespaceMode (cognitive 25): Container.NamespaceMode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 1 (2 pts), match/switch 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":"libpod/container.go"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"933866b0797320a520a388b9c24b60d00c88597b2b4f494a46d3e5b0c8ca2299"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.init (cognitive 25): Container.init has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 1, 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":"libpod/container_internal.go"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"e682d07196bed8bfdf8e458741956c68b134c82308b8fd6eb3ac34345201dc13"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.restartWithTimeout (cognitive 25): Container.restartWithTimeout has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 9). Of this number, 22 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45d5eab32a6030b44c8450e16aefcd77fb175b1f1c0cf737802f0800925ba11"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.setupOCIHooks (cognitive 25): Container.setupOCIHooks has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 1 (2 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":"libpod/container_internal.go"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c16bf932cd59160b53fe0ac5822ea99e60eb65c0f989295f7070b9b6793eaa"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.executeBuild (cognitive 25): compat.executeBuild has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (9 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 14). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images_build.go"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebeeb92b48eaf907932e7f3dec77a8a301f299ae0cb538732b1735eebb8b7cd5"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.Push (cognitive 25): ImageEngine.Push has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45ce2cf6daf98004f11b6d5edfc1130c520109bc610daa9b11da876313629d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.buildImageFromContainerfile (cognitive 25): ContainerEngine.buildImageFromContainerfile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (22 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/domain/infra/abi/play.go"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc94afb381e2d9542a1f3537dd667cc6e7ab886cc9d88b367b26d62ac5d36829"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.Attach (cognitive 24): Container.Attach has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 8). Of this number, 16 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":"libpod/container_api.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"af974fe0f8a6e716f91adb4ff2aae68f86904d7180ff3102f58d4c93767a4856"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.waitForHealthy (cognitive 24): Container.waitForHealthy has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 1384). 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":"libpod/container_internal.go"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edb451903c9550726ed1113dfe154599326c511e13624b851441dca146169e6"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.waitForConmonToExitAndSave (cognitive 24): Container.waitForConmonToExitAndSave has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (24 pts) (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":"libpod/container_internal.go"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5dec3a8266c37458d41ef6ced82b99d27d85733a7e298af8c9a9261646877a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConmonOCIRuntime.startExec (cognitive 24): ConmonOCIRuntime.startExec has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19 (20 pts), loops 3 (4 pts) (nesting depth added 2). Of this number, 22 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6b9990c5c1a9e8b2b3dc9cd19e1c8743dcd5968d04f9747b52bdac98b018f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.RemoveContainersForImageCallback (cognitive 24): Runtime.RemoveContainersForImageCallback has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2, boolean chains 1 (nesting depth added 10). None of this is in the body itself: all 24 points belong to one function literal inside it that branches (line 27). 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":"libpod/runtime_img.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e95f1a53b16695ce2012057ebbe49aaa4ed296435fbaf57a2c043e5a07a0d3b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.RemovePodContainers (cognitive 24): SQLiteState.RemovePodContainers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20 (23 pts), loops 1 (nesting depth added 3). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"960032bf3a756e3428bb21f9cd0630d8d2822e72ceed72e393d4eb69b2bfb69b"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.SearchImages (cognitive 24): compat.SearchImages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 1 (4 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images_search.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c4c43b1f677b75385c1d02052308a6e3e0742959a2be162df539b330aceaf8"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.getConfigCredentials (cognitive 24): auth.getConfigCredentials has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/auth/auth.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6a5386dd9bb8819d8b92e7dc32b39111f394da073a6ce356b3090f82d8daa4"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.Commit (cognitive 24): containers.Commit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 2 (4 pts), boolean chains 1, 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/bindings/containers/commit.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"85156db8e13a41e33ca2937abf8005eb3a0c0e28af4f98bb5398116ba634265e"}},{"ruleId":"D2","level":"warning","message":{"text":"abi.splitMultiDocYAML (cognitive 24): abi.splitMultiDocYAML has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (4 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/domain/infra/abi/play.go"},"region":{"startLine":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"857d98838b12d670cb7f6a7b14b6f93f826999a5ed692003a025d27f9d25f556"}},{"ruleId":"D2","level":"warning","message":{"text":"abi.stopLoadedTemplateInstances (cognitive 24): abi.stopLoadedTemplateInstances has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/quadlet_utils.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddece35ca73a159571472f9094fc2f2bd3580a1ff706a3ab925fb888091cb811"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.remoteManifestInspect (cognitive 24): ImageEngine.remoteManifestInspect has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 7). 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/domain/infra/abi/manifest.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"344b9dc35d19505297dad77c4d65d055c2deaa4c4175787cf0a7a867f726667e"}},{"ruleId":"D2","level":"warning","message":{"text":"tunnel.getPodsByContext (cognitive 24): tunnel.getPodsByContext has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/helpers.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb5e46f032754528e838e4b9a9383f74682c08d08557fbe8679211e4959f15c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.Build (cognitive 24): ImageEngine.Build has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 1 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/images.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd66a9edbc412c79165afc7d03628e4f9d36bd52867928ec0b06657e2ee426d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.handleBuildOutputs (cognitive 24): ImageEngine.handleBuildOutputs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (21 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/images.go"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"8060c01ea933b4085cbbb1e008c38a345182777fd4ab2afaa425aefb803e5082"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.applyHealthCheckOverrides (cognitive 24): generate.applyHealthCheckOverrides has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (23 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/specgen/generate/container.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c1f32a521eefd72dd41a44aeb60afcc16676d372c44060eaaecdac29f1f252"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.MakeHealthCheckFromCli (cognitive 24): specgenutil.MakeHealthCheckFromCli has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"230f97ebdc325b85c0a8e0fa4488d7ce91eff1f85a5e0a5d4804cf4bb9ff211e"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.checkpoint (cognitive 23): containers.checkpoint has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, match/switch 2 (4 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/checkpoint.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead746e82fc0e005b69f710adab939192c33c9c6b48ed192b0d280025c323da6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.exposePorts (cognitive 23): main.exposePorts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/rootlessport/main.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71d40712cd8c68d764a23f5b89f57eedd7a2adffe79f398931045c8f5edfbd3"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.waitForConmonExit (cognitive 23): libpod.waitForConmonExit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (6 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":"libpod/container_api.go"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"47703ebc81f4c3565502758ff1e2f480e1ca1ab6100e7faf76d0e333c1a4ef7b"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.parseOptionIDs (cognitive 23): libpod.parseOptionIDs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (4 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":"libpod/container_internal_common.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2383aa0d34257066682ce61860f6ffae2294afe58b572edf588df2c5a9bd1b73"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.getOverlayUpperAndWorkDir (cognitive 23): libpod.getOverlayUpperAndWorkDir has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd579cd3e3a9a5616525d23f2d24dbf200bfc79ed0ebd9de36f778b7906ac130"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.bindPort (cognitive 23): libpod.bindPort has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_util.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"50016a720998120b828464b7d6c9404ba26961c3c5eb25fa32177391937400d7"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.ExecRemove (cognitive 23): Container.ExecRemove has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (23 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_exec.go"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05e04073f0891d54c716787923c50c772283b9d74d65dce283d619b497dbeaf"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.postDeleteHooks (cognitive 23): Container.postDeleteHooks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 1 (3 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":"libpod/container_internal.go"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b73f2ac30e1a077947d379894d112b8d7f5452f794fc337cf9b153572d61e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.addResolvConf (cognitive 23): Container.addResolvConf has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 3 (6 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":"libpod/container_internal_common.go"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d33115dcddd8e3467f49cb5b500ba564d5a41c022139004e6bfc4d016324c83"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.Shutdown (cognitive 23): Runtime.Shutdown has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4643b3d1975124fe3a49d1c08a32877f6c798185a9d97d0a13abaf3e96cba2"}},{"ruleId":"D2","level":"warning","message":{"text":"Volume.unmount (cognitive 23): Volume.unmount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (23 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/volume_internal_common.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a4b982982e0eee030d243ea5a3fd87f1cda9e5af11aff4510ca604d8aa98a5"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.processSecrets (cognitive 23): compat.processSecrets has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (4 pts) (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/api/handlers/compat/images_build.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe5d64e0008fa78ec3cc75f6c985bbed80924d64bd8ddf084314e6d36b00dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.ManifestCreate (cognitive 23): libpod.ManifestCreate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/manifests.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5302ca38c09331b2ae3129e1c50af61d96977656abebd9bb7c7e330bd1ac5692"}},{"ruleId":"D2","level":"warning","message":{"text":"images.processBuildResponse (cognitive 23): images.processBuildResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (4 pts), boolean chains 1, 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/bindings/images/build.go"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a22376e6a06a88d311afb1c532d08bd4b52342d4aedf00352b2694bb3a6e1f"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerRm (cognitive 23): ContainerEngine.ContainerRm has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 3 (nesting depth added 8). Of this number, 22 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/domain/infra/abi/containers.go"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"658252391ebeeaf359d9ab3a77aaec5d3ce5248351456d2fc7a4a8740b4a3bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"tunnel.getContainersAndInputByContext (cognitive 23): tunnel.getContainersAndInputByContext has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (5 pts), boolean chains 4 (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/domain/infra/tunnel/helpers.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4164478e6fa8a7cce13e427ecf7c9d0d74b8fe2e411f74eecd8e5810c498b2fb"}},{"ruleId":"D2","level":"warning","message":{"text":"define.ParseUSBs (cognitive 23): define.ParseUSBs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), match/switch 1 (2 pts), 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/machine/define/usb.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d369f16e3f0381b56b1b89071689036cfefe55a5339824515bac05b7bc13fa"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.handleSetWorkingDirectory (cognitive 23): quadlet.handleSetWorkingDirectory has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/quadlet/quadlet.go"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"6957a559671de819327ee956810d25a66c1eff9814c863b23706a7259cc954bc"}},{"ruleId":"D2","level":"warning","message":{"text":"util.getAvailableIDRanges (cognitive 23): util.getAvailableIDRanges has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (3 pts), match/switch 1 (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/util/utils.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6137aec06294e2e9ddf09f1c7d9d812b62c88c59dec41446f56c03a2d1ca9c"}},{"ruleId":"D2","level":"warning","message":{"text":"util.ParseIDMap (cognitive 23): util.ParseIDMap has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/utils.go"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be1bd00c5f4a5276d4cb798b9070abf8fcce27dba9326c0dbdcbe21ac0a6cc1"}},{"ruleId":"D2","level":"warning","message":{"text":"EventJournalD.Write (cognitive 23): EventJournalD.Write has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (22 pts), 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":"libpod/events/journal_linux.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae83fa9a3347bcc458c2082c8347f048263e3f3f20f56b31f433d7877eff7d4"}},{"ruleId":"D2","level":"warning","message":{"text":"common.PrepareSigning (cognitive 22): common.PrepareSigning has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (22 pts) (nesting depth added 8). Of this number, 21 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":"cmd/podman/common/sign.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaf17b10e2d43cda31a47e0cef46b54e0fa604b9b40c270ac75f8e8ad6626e5"}},{"ruleId":"D2","level":"warning","message":{"text":"farm.rm (cognitive 22): farm.rm has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 6). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 49). 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":"cmd/podman/farm/remove.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5941587fb8865966e4bb0d9911bae707f33903c0a6542c9d6fdd6564bcb00343"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.podmanTopInner (cognitive 22): libpod.podmanTopInner has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_top_linux.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a581793094b9226344429f97e92e4d9b653d24a6c8a09b1a0f4c6a26bfc95252"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.prepare (cognitive 22): Container.prepare has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). Of this number, 15 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_linux.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea75690655d0bd55ce31892694a12777b7e9dbfac7cd4d34b84ad06ab9154e4"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.ResizeTTY (cognitive 22): compat.ResizeTTY has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2, match/switch 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/api/handlers/compat/resize.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff70ac5a9a91b8ef46f4d6a1912e4f20a7261d4fdb737e1c69b3e7e1b7afd15"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.InstallQuadlets (cognitive 22): libpod.InstallQuadlets has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), loops 3 (4 pts) (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/quadlets.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a811e14d9934d99040f499a6cda6f2a37855f29b2e0aad4d2f0edccd035bea1"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.ManifestPush (cognitive 22): ImageEngine.ManifestPush has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (19 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/manifest.go"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b7f4135f920db24b024fded7d7f4c6963e852842d9654c85a8f45f1bc0aab9"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.playKubePVC (cognitive 22): ContainerEngine.playKubePVC has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/play.go"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"617f3f74a66959cf668a5dd10a2bb6b8720c306781c7a6598eb536fb78e27b51"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.installQuadlet (cognitive 22): ContainerEngine.installQuadlet has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (21 pts), match/switch 1 (nesting depth added 6). Of this number, 20 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/domain/infra/abi/quadlet.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31a81ffb7d7e6c16ad4167de269e8b19d6e733f0f9ce64c2269f900ecabda69"}},{"ruleId":"D2","level":"warning","message":{"text":"tunnel.startAndAttach (cognitive 22): tunnel.startAndAttach has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 10). Of this number, 20 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/domain/infra/tunnel/containers.go"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d51a600deefd828282f1100f3821cd1b6ddc4f2864c1dd8bc06d20990cb7e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerWait (cognitive 22): ContainerEngine.ContainerWait has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 8). Of this number, 12 points are the body\u0027s own statements and 10 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/domain/infra/tunnel/containers.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b23a0aaf623dddae4846a75520befefc6a466dc7dbb53113309a843a9a7db73"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerRun (cognitive 22): ContainerEngine.ContainerRun has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 1, loops 1 (nesting depth added 7). Of this number, 18 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/domain/infra/tunnel/containers.go"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb73e4ce4a648d34a32f1288d4eb03bad72289f3104b253ed459ce865d42ed0a"}},{"ruleId":"D2","level":"warning","message":{"text":"sparseWriter.Write (cognitive 22): sparseWriter.Write has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 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/machine/compression/sparse_file_writer.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"448ae70fc6c3b19d7f1696cb778768a458c9ed0c6a605da18938dc87f281d11e"}},{"ruleId":"D2","level":"warning","message":{"text":"specgen.SetupUserNS (cognitive 22): specgen.SetupUserNS has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/namespaces.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e3a7b0bff58f8e4dddb025808045d0ed2c59241855bd0599b26268102069d5"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.VolumeFromConfigMap (cognitive 22): kube.VolumeFromConfigMap has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 4 (6 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/specgen/generate/kube/volume.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae76796079b40cd0427cd5fea93e57b111232e46a997913a68a29d5be0b0947"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.getIOLimits (cognitive 22): specgenutil.getIOLimits has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (22 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/specgenutil/specgen.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef98f8acd4949437d4e12be3dfbc63970d4248979ae97cd072ef8d9634113ae"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.getImageVolume (cognitive 22): specgenutil.getImageVolume has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 2 (5 pts), 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/specgenutil/volumes.go"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"66438056de9df41e0133f426b71351a56e847b12e26b03c6f0bfa4f33179713a"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.getArtifactVolume (cognitive 22): specgenutil.getArtifactVolume has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 1 (2 pts), 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/specgenutil/volumes.go"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"708e14feb0542a5663647e725eac74c1704dd41d2b11c0dba32b9ce0d5442366"}},{"ruleId":"D2","level":"warning","message":{"text":"systemd.IsSystemdSessionValid (cognitive 22): systemd.IsSystemdSessionValid has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/dbus.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"75eb2c331429671253318bc2145602b1b9d43e53e7e726ebfd26316077c3869d"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.PodUnits (cognitive 22): generate.PodUnits has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/generate/pods.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5372aef5d569e7be04d2004871582cf7a974e4b422964e4cfdaffd2958f3b506"}},{"ruleId":"D2","level":"warning","message":{"text":"util.parseAutoTriple (cognitive 22): util.parseAutoTriple has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 3 (5 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/util/utils.go"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"0047ad98885d3c2375f12afa1015d679aa4ed700b20d5bef1ff012fe4ed8a09d"}},{"ruleId":"D2","level":"warning","message":{"text":"HyperVStubber.CreateVM (cognitive 22): HyperVStubber.CreateVM has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 2 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 3 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/machine/hyperv/stubber.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f1f11c3b218ff73909b411728e263142bafda9ea46046c3b8b3f0800f7e530"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.list (cognitive 21): artifact.list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/list.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f78c4bd2514c7cc33461550e2ec209bf46a70c4df5465bce5c1f76b16c7c122"}},{"ruleId":"D2","level":"warning","message":{"text":"common.AutocompleteCpCommand (cognitive 21): common.AutocompleteCpCommand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (2 pts) (nesting depth added 12). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3807e809f8131593690634e28adedc7b0739ba9125163a94cd0d6db957408e0"}},{"ruleId":"D2","level":"warning","message":{"text":"common.getStructFields (cognitive 21): common.getStructFields has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (4 pts), boolean chains 1, jumps 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e6a7851b08a9026d3211b60682e5c1c1b72cfa7bb44cfb9817fa309782e10f"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.update (cognitive 21): containers.update has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (21 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/update.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa96bcf2c5c4a9ca185bb669699ac5b42e545e04acb3be40490bbb3a8acf70c"}},{"ruleId":"D2","level":"warning","message":{"text":"system.printSystemCheckResults (cognitive 21): system.printSystemCheckResults has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 9 (nesting depth added 5). Of this number, 19 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":"cmd/podman/system/check.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbec038a3d19790563e7e44c80e4f1e470697d81f53e38abe4c3411ff166aa70"}},{"ruleId":"D2","level":"warning","message":{"text":"system.resetMachine (cognitive 21): system.resetMachine has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/reset_machine.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf3236af683d645893207f90ca9b8f320e731c0065d351a076b72816d5c8b94"}},{"ruleId":"D2","level":"warning","message":{"text":"main.transformSwagger (cognitive 21): main.transformSwagger has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hack/swagger-version-paths/main.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9ad8d6298b2af8a3b589e276a930534b1646b0c9effd84e5f5f48842033a06"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.bindPorts (cognitive 21): libpod.bindPorts has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 3 (10 pts) (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_util.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"837ce0f69c6fafdcd6966be5b18c4e9238ade95e091c36bb3c412fe4d1106934"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.finalizeCtrSqlite (cognitive 21): libpod.finalizeCtrSqlite has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 1 (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":"libpod/sqlite_state_internal.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff3f81a101c88b1f8dd4767fabe3b75d23409a4b5211e8a16a419949d8bbcd0"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.stopInternal (cognitive 21): Container.stopInternal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (20 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":"libpod/container_internal.go"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac387a26fd4de0e524eeca5a6c111b29789e8477b7f92933f4d516c89921e68"}},{"ruleId":"D2","level":"warning","message":{"text":"events.GetNextEntry (cognitive 21): events.GetNextEntry has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/events/journal_linux.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a3cf922710095aa21cf1c4edc21f213d403b72effcd4f5590b88bda52b6c52"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.RenumberLocks (cognitive 21): Runtime.RenumberLocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 3 (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":"libpod/runtime_renumber.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc48687b8f32abb63d8532e894ca5bbac109521528ae8048f0c384b51f2fcecd"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.KillContainer (cognitive 21): compat.KillContainer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4 (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/api/handlers/compat/containers.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ef22bdeb8cde53cd6c42ddb08771f6c9fd114ec68e217f87720cd72b48c0bf"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.ExecStartHandler (cognitive 21): compat.ExecStartHandler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/exec.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec4b328b544c61b07a0ff0ac718603ce42472242c86d733fc3d4d371dc574fe"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.Connect (cognitive 21): compat.Connect has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/networks.go"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdfe30cc376d73b2381a51a5f1d42d58d46dbde59a622b5040acf97035c4af9"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.KubePlay (cognitive 21): libpod.KubePlay has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (18 pts), loops 2, boolean chains 1 (nesting depth added 3). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/kube.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f28d715b0795989973fa0bbe01d9b317c65d1c218dfe477bb48e09c27a6571"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.PodStats (cognitive 21): libpod.PodStats has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/pods.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"122fa1046f29ce28797e02691bb3196edb08c5acfa0d5b5582ac81a4bf64edee"}},{"ruleId":"D2","level":"warning","message":{"text":"Connection.DoRequest (cognitive 21): Connection.DoRequest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/connection.go"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c4177a09ac219767944bed4d704427d6154004d4027ba8737325bd558caf5e"}},{"ruleId":"D2","level":"warning","message":{"text":"images.Pull (cognitive 21): images.Pull has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 2 (4 pts), jumps 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/bindings/images/pull.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc3176bfaa416b1c4270235db3a8f37933e20cf212765e68715783597e386fa"}},{"ruleId":"D2","level":"warning","message":{"text":"images.Push (cognitive 21): images.Push has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 2 (4 pts), jumps 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/bindings/images/push.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ed78775c061dc3e305b318329af0bf4ba1bd7d14d9eb27b022e66dc82718ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.Prune (cognitive 21): ImageEngine.Prune has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24b783f53aac3ecc95415cd3f28f13ca09679f961a93d55dea3099892c21c46"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.KubeApply (cognitive 21): ContainerEngine.KubeApply has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/apply.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"19194aee752abde1b2399aacd3a59a738998745755a3e74b6565035ad60ad0b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.GenerateSpec (cognitive 21): ContainerEngine.GenerateSpec has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (20 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/domain/infra/abi/generate.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb1a75044f37691d94122d733ecadeec7762861e35ca14575d22c3bf0018b42"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.VolumeInspect (cognitive 21): ContainerEngine.VolumeInspect has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (3 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/domain/infra/abi/volumes.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b29520c0443711287423d2b15ba201fe97230f4159b7db1a76d578f58fd175"}},{"ruleId":"D2","level":"warning","message":{"text":"emulation.registeredBinfmtMisc (cognitive 21): emulation.registeredBinfmtMisc has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 6). 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 26). 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/emulation/binfmtmisc_linux.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b72bd3829cde80a47a63f4ec4659eea5ea0c80373cba957d3030c6f369bd83"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.getPodPorts (cognitive 21): kube.getPodPorts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (16 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/specgen/generate/kube/kube.go"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f88848779607be244463a170cb3695bd2acfaf6a6c1936cd5454fa5e76777"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.CreatePortBindings (cognitive 21): specgenutil.CreatePortBindings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 3 (6 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/specgenutil/util.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"675d9b6fc0773e673d778865487ca022cc379f93baeff398bb148acbabddf1fe"}},{"ruleId":"D2","level":"warning","message":{"text":"trust.loadAndMergeConfig (cognitive 21): trust.loadAndMergeConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/trust/registries.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd96546164bd6b35efb9dde68638d8157b17758d9b31832600c8acc1f6f7f67"}},{"ruleId":"D2","level":"warning","message":{"text":"HyperVStubber.SetProviderAttrs (cognitive 21): HyperVStubber.SetProviderAttrs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 2 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/hyperv/stubber.go"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c189987cb7d68b391b1c9d6305a626bc605ace79295231974de9f1e7914cad"}},{"ruleId":"D2","level":"warning","message":{"text":"images.load (cognitive 20): images.load has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/load.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0aa368a5e4856bfd2e0494ca514ec458d614c37429485995b417ed043339f17"}},{"ruleId":"D2","level":"warning","message":{"text":"images.save (cognitive 20): images.save has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2 (nesting depth added 8). Of this number, 12 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":"cmd/podman/images/save.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"34aaf623df21e8e08d3965b9a5d4524b61fd2fe70999d1083ca885f84a489ab4"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.printPlayReport (cognitive 20): kube.printPlayReport has cognitive complexity 20 (threshold 15). Drivers by points: loops 8 (11 pts), if/else 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/kube/play.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd769a0bfad34adf152209505d2ecb38fa5556e14a55d79838a72c854848247"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.ssh (cognitive 20): machine.ssh has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/ssh.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"143d613ba36a7ae12295a185a6c90ecdb5f3b4b78ae1c3b8b21e4ea0fb76bc1d"}},{"ruleId":"D2","level":"warning","message":{"text":"system.eventsCmd (cognitive 20): system.eventsCmd has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (2 pts), boolean chains 1, 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":"cmd/podman/system/events.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4706e5b768e1968bdb3e5ba1ab6432c3f9c19b8b6a6ce03f9c659a9ac7241810"}},{"ruleId":"D2","level":"warning","message":{"text":"system.prune (cognitive 20): system.prune has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/prune.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"419433e12bdc8251245237afb6712f4d504c36128d2eec1f4889ca45420e76e2"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.newConmonOCIRuntime (cognitive 20): libpod.newConmonOCIRuntime has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 2 (3 pts) (nesting depth added 6). Of this number, 18 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":"libpod/oci_conmon_common.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b491045d03cdbe16809c90c645df94a3322bd2fe74f1e728c4292925d81d43"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.generateInspectContainerConfig (cognitive 20): Container.generateInspectContainerConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 6 (9 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_inspect.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"6036add1f7e62a85397bcfacdbb7faf1e96163057e2c71ce9494605cb06417bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.handleRestartPolicy (cognitive 20): Container.handleRestartPolicy has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (20 pts) (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fca7537b8980f7c2b78bd08fcca258b8fa7604bbd51711d5abf8b10fbd7f06"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.resetHealthCheckTimers (cognitive 20): Container.resetHealthCheckTimers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 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":"libpod/container_internal.go"},"region":{"startLine":2960}}}],"partialFingerprints":{"codehealthFindingId/v1":"17964949e807406bf3db47f4b394cd84f322230d0293e4a923ec2d95d0050076"}},{"ruleId":"D2","level":"warning","message":{"text":"ConmonOCIRuntime.sharedConmonArgs (cognitive 20): ConmonOCIRuntime.sharedConmonArgs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f971959614066374f5e3b9dc758f04d03dc413827876f33f4206e310a7fc4555"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.GetPodPidInformation (cognitive 20): Pod.GetPodPidInformation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod_top_linux.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07f72d31e7ca9244030b18aeb8031bbf0aca6c2f8e4775738a30d897346b67b"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.PruneVolumes (cognitive 20): Runtime.PruneVolumes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, 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":"libpod/runtime_volume.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ada5ade534de5d97cdf1021f82bff4455b2801f9b31559b647450ea87c0d58"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.ExecCreateHandler (cognitive 20): compat.ExecCreateHandler has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/exec.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4604f1eb2e16def4ce499885fd8062a5b311ea7e84cd7f4fc7afa7699d7a46f"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.CreateVolume (cognitive 20): compat.CreateVolume has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/volumes.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba91b158b3862524c4efa95dd0bf9daca5d64d37053e9a2bed7e69d857e4f506"}},{"ruleId":"D2","level":"warning","message":{"text":"crutils.CRCreateRootFsDiffTar (cognitive 20): crutils.CRCreateRootFsDiffTar has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 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/checkpoint/crutils/checkpoint_restore_utils.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"373ee61fd96e60007816c30475232e531c1c23440ebd35ebb96eee5259f4a0c4"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerCheckpoint (cognitive 20): ContainerEngine.ContainerCheckpoint has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/containers.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f78d2186aae6777ccad82391a8f4596f07cfa11f965614248a7dcc773a2eb39"}},{"ruleId":"D2","level":"warning","message":{"text":"shim.Remove (cognitive 20): shim.Remove has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (20 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/shim/host.go"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0bcf607588f5d1f82bc72f9a1d24a79ec98d5ce55921cf835168106ce0380b"}},{"ruleId":"D2","level":"warning","message":{"text":"MachineConfig.Remove (cognitive 20): MachineConfig.Remove has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18 (20 pts) (nesting depth added 2). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 186). 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/machine/vmconfigs/machine.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b0521a811d325f20b10165b24114ad3dbccbee9aacd4b46795eed69a897902"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.GetResources (cognitive 20): specgenutil.GetResources has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a1a90f047ad6509abe4b3bcc79d2d4d0afffef06de5f1af9653642af39e49e"}},{"ruleId":"D2","level":"warning","message":{"text":"specgenutil.parseSplitPort (cognitive 20): specgenutil.parseSplitPort has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (20 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/util.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8659a63b0d2ed718d34c2f26a3c9654660481b2432cfaa37669a682e480e66b6"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitFile.Parse (cognitive 20): UnitFile.Parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/parser/unitfile.go"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"345396ac6313813ee5b70937b1229095cdc842e8a8f6c2cb8f4c770bb069dd74"}},{"ruleId":"D2","level":"warning","message":{"text":"util.GetAutoOptions (cognitive 20): util.GetAutoOptions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 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/util/utils.go"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1653bf70d823fd2217eb34bcd10d003490b771dd5462fe306af0b3e5313302"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.stop (cognitive 19): containers.stop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/stop.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e57534c72aca40d77c217761212050e246ed84522412394695394b116ed2a41"}},{"ruleId":"D2","level":"warning","message":{"text":"farm.build (cognitive 19): farm.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (18 pts), loops 1 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/farm/build.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4387752896193d4080e63a0b87f3ad0feac0e9cb323b7711c5a5a13ddc3ce7c"}},{"ruleId":"D2","level":"warning","message":{"text":"images.build (cognitive 19): images.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 pts) (nesting depth added 7). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/build.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"db79666a89990992a2b064d4c16645403098e9b58c13f01bbe733120e7dcd4ec"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.inspect (cognitive 19): machine.inspect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/inspect.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f31d4884d980a4f66b4debe78878b45abeb2bb9de56e2db86323ca30be0fde"}},{"ruleId":"D2","level":"warning","message":{"text":"manifest.annotate (cognitive 19): manifest.annotate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), 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":"cmd/podman/manifest/annotate.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce6c2f68e9496077f073e1937959e7c515ea24c064db8591a1fe963c21743aa"}},{"ruleId":"D2","level":"warning","message":{"text":"connection.inspect (cognitive 19): connection.inspect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/connection/list.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0647d9a3f249487550085ed4372ed657cb4ee7f55bc49fd178fefdfa63b08457"}},{"ruleId":"D2","level":"warning","message":{"text":"volumes.rm (cognitive 19): volumes.rm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/volumes/rm.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2cf8ded423fc7c28e0180692d80bf6949ecf8a9bccf860da1ec3a476d6b099"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.refresh (cognitive 19): Container.refresh has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49d805d78add810185f76f7200ba8d9a50ef475af3ae110dc99eccd13a67bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.prepareToStart (cognitive 19): Container.prepareToStart has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (19 pts) (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4d5f505392358226dbe2d374afdccd56ffd69602a446ef01123f17b60f0805"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.GenerateForKube (cognitive 19): Pod.GenerateForKube has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 1 (2 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":"libpod/kube.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff389564539a4ad53558c16f09138b138f375c33ad37a0a2ccdafdf7bc564848"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.PruneBuildContainers (cognitive 19): Runtime.PruneBuildContainers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a294272b4ee6d0a045aec79d323cc909b2b7f85ed837c5321e59ebe9670a700"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.AddPod (cognitive 19): SQLiteState.AddPod has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (19 pts) (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd67ed00ab2023ef0b1b9539b54fcb0b08d9fdf3bf6dcccea0370710b11845e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.RemovePod (cognitive 19): SQLiteState.RemovePod has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17 (19 pts) (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dd8933555aa66c342b54ae6afa56a7705dea12c66822d2088ec4ae766ef777"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerInspect (cognitive 19): ContainerEngine.ContainerInspect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/containers.go"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"5343d58fee2ea269f690d5e74a95504852240f850a0e74ed91d2b648174dafe0"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.NetworkInspect (cognitive 19): ContainerEngine.NetworkInspect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/network.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"47adc7ed9ab213abc04280ba7f560869b9a6b7d04e4910234ae194ed0e46d391"}},{"ruleId":"D2","level":"warning","message":{"text":"GvProxyNotifier.handleConnection (cognitive 19): GvProxyNotifier.handleConnection has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 3 (7 pts), loops 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/gvproxy_notify.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"390037212d2ac006d6ed543ad19b2d98f83cc8e00543fe2d86d75a98c8ce7b56"}},{"ruleId":"D2","level":"warning","message":{"text":"ocipull.GetDiskArtifactReference (cognitive 19): ocipull.GetDiskArtifactReference has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/ocipull/source.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bf9e43325f05d233b4cd571cab9c79bed6751eef8e74aa7e6862b80853213b"}},{"ruleId":"D2","level":"warning","message":{"text":"specgen.parseBridgeNetworkOptions (cognitive 19): specgen.parseBridgeNetworkOptions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/namespaces.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edc8ee01da804786a51cdc358d211e2a415780105e69c2efcc1809fb817ab8e"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.getSeccompConfig (cognitive 19): generate.getSeccompConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/config_linux_seccomp.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e4f03132d3f37ee4cec0328690105e7ad7f6119b757ca9d55e46636f4c5268"}},{"ruleId":"D2","level":"warning","message":{"text":"common.getPathCompletion (cognitive 18): common.getPathCompletion has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefb14dbf5f1ddd64113e1711246977ee947d067ceb78bb36cb29c1f640351f0"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.removeContainers (cognitive 18): containers.removeContainers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/rm.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a765c787461fd901177a9540adbb6062135b921c33244d3aa32fbfdbf312ea0"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.validateStart (cognitive 18): containers.validateStart has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/start.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c112aad3c21d5ba3d97fa981535abf8515700dc5151862b0d51e2253ec853e"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.parseEnvOrLabel (cognitive 18): parse.parseEnvOrLabel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (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":"cmd/podman/parse/net.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2e0ffd8e15c3f77390461c3bbf97a26578ab6e572b77f89c3037d774cfabf5"}},{"ruleId":"D2","level":"warning","message":{"text":"registry.NewContainerEngine (cognitive 18): registry.NewContainerEngine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/registry/registry.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7433e657294939a4d4cabc72dcba2012fabb11485d54d89575a3564e0fce4fd5"}},{"ruleId":"D2","level":"warning","message":{"text":"secrets.inspect (cognitive 18): secrets.inspect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/secrets/inspect.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f457d4cdc124fd3d266d9679bf1b7db55371e73cc7408b0384c5d073b1d9a3b"}},{"ruleId":"D2","level":"warning","message":{"text":"localapi.FindMachineByPort (cognitive 18): localapi.FindMachineByPort has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/localapi/utils.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33c9e34fbdfefcd7837032ef8a50bc06877f22f01a12758337654adefb82b33"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.WithStorageConfig (cognitive 18): libpod.WithStorageConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (18 pts) (nesting depth added 4). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 41). 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":"libpod/options.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d385a70ee46915f3cf86bd67e52c2ba50b597065196accfa9f8323c3ccf19f14"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.NetworkMode (cognitive 18): Container.NetworkMode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container.go"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"12994b20bb85cf749daab44a8db33dba6618b9d41ad2b4e7c11a649c8e56f505"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.setupStorageMapping (cognitive 18): Container.setupStorageMapping has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaaffad1ac1dc246820ba60ff23883ee14e71db5d5fb8430c52477d3e550e41d"}},{"ruleId":"D2","level":"warning","message":{"text":"storageService.CreateContainerStorage (cognitive 18): storageService.CreateContainerStorage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 pts) (nesting depth added 5). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/storage.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfb40e8fef6f9b61cceca4250317c9f44cd412d1a49feef5cf3270abffbfd57"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.Restore (cognitive 18): libpod.Restore has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (18 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/api/handlers/libpod/containers.go"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e541ec82645ee398f04f5fdf5839cb3b8ae620ead74e20d67280b364c60ebe84"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.processMultipartQuadlets (cognitive 18): libpod.processMultipartQuadlets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1, loops 1 (nesting depth added 7). Of this number, 14 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/api/handlers/libpod/quadlets.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e159cbabc2edb6c98fdfdb99488e4e2398517938a303d8f181a7ffe94b7a3659"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.Logs (cognitive 18): containers.Logs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/logs.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"703ca5afd458a1736e56556181110c9942664c7de2240f45cbdd7deacbb1e56e"}},{"ruleId":"D2","level":"warning","message":{"text":"manifests.Push (cognitive 18): manifests.Push has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/manifests/manifests.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0742779e65e60c2e941ee0677cc3291b8d5dc3085d9a39b2d5f7c25862e6a830"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.digestFromDigestOrManifestListMember (cognitive 18): ImageEngine.digestFromDigestOrManifestListMember has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, 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/domain/infra/abi/manifest.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a9013305e4fb59d26bb335c03807f97e6386e9554d0b5ee32fa42c436cf24d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.SecretRm (cognitive 18): ContainerEngine.SecretRm has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/secrets.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f0bff50f1e38eb23ffa0bf793b63d67769051fef45d47ed574656cd75f3a92"}},{"ruleId":"D2","level":"warning","message":{"text":"QEMUStubber.stopLocked (cognitive 18): QEMUStubber.stopLocked has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 1 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/qemu/machine.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f5a8dc753a1489f5d7242caad83f3621fbf6474284d8f83a6ca4526df81978"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.BlockAccessToKernelFilesystems (cognitive 18): generate.BlockAccessToKernelFilesystems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/config_linux.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8051c323c7ffcaa18efb4f92b2a83192187328b83d1328cfd1a718e2d13970"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.CheckName (cognitive 18): generate.CheckName has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/container.go"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d58becc7c0d3266ddb3e26f5b43c4b31b038d7b8fdb1738e7849af2d5dfc2cb"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.envVarsFrom (cognitive 18): kube.envVarsFrom has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/kube/kube.go"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"da36ebecdd5ba683395f149f4f6beaa84867518b607a82c8674f678373c0ca9b"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.ConvertBuild (cognitive 18): quadlet.ConvertBuild has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/quadlet/quadlet.go"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60afd79a50fe2b207b8c3064f189ced3585af00f9a72e429b5349a5a70c61fe"}},{"ruleId":"D2","level":"warning","message":{"text":"WSLStubber.SetProviderAttrs (cognitive 18): WSLStubber.SetProviderAttrs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/wsl/stubber.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec5e46b487498b91d3bee2dabdcf035a3ed88b39b6e4b7532f32dba3eaf7510"}},{"ruleId":"D2","level":"warning","message":{"text":"main.parseCommands (cognitive 17): main.parseCommands has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 1 (4 pts), boolean chains 1, 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":"cmd/podman/main.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0483f5043e9bf1f6c2d4ff75c7521a7918c91e83e6f569ac4a668cc2c19564bd"}},{"ruleId":"D2","level":"warning","message":{"text":"network.networkRm (cognitive 17): network.networkRm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/networks/rm.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13b604d47d9b0f98056ca013823dec88d54d147645ed1ea0d8e87866ebdceb6"}},{"ruleId":"D2","level":"warning","message":{"text":"registry.setXdgDirs (cognitive 17): registry.setXdgDirs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 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":"cmd/podman/registry/config.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f491403da1eafab124a4a825c10c5bffb5dbe0097776118a7ce4d5070bfdfc"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.Update (cognitive 17): Container.Update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_api.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fc6dec778c25d918ffc5d08435f4829775280631cbf4cc3a22a97d6d22e508"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.Unmount (cognitive 17): Container.Unmount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (17 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_api.go"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"660b3307f1ec034401571f99df31f9aa5e4d6d589d05f030aa816b84426d9137"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.removeAllExecSessions (cognitive 17): Container.removeAllExecSessions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 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":"libpod/container_exec.go"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"912dffc319bab05ba71287944520664b407eabd64534e2beae2ccea06533623c"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.resolveWorkDir (cognitive 17): Container.resolveWorkDir has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7af8655953c98af0b09d2a55a3bd5324e2dfbc4ef85abad40647dd88e6dfe8"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.Top (cognitive 17): Container.Top has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_top_linux.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb54a211e118a67fb284c5449a489add72e43f9c2d0a8cae7d6fe8561251af2f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConmonOCIRuntime.ExecStopContainer (cognitive 17): ConmonOCIRuntime.ExecStopContainer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61927aa9fbc4e8db53b1c30c70f7140e77b2b6fba3c238c6b5a767df33790d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.maybeStopServiceContainer (cognitive 17): Pod.maybeStopServiceContainer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 160). 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":"libpod/service.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49c652cc8fab1a39e8794f0f7d5dadbf5baa20b4aa28db5023b99b09dd205b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.AddVolume (cognitive 17): SQLiteState.AddVolume has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (17 pts) (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: 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":"libpod/sqlite_state.go"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57a2d367155e4d380170b68d7a55b817ac9c43c198f82a30285bef6be6ca5e1"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.ListVolumes (cognitive 17): compat.ListVolumes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (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/api/handlers/compat/volumes.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0365351d2f0e2f94c76e9817d8c21136c9e06e56defc1d2a51686f9418adaa0"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.CreateContainer (cognitive 17): libpod.CreateContainer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/containers_create.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa97e2de4a83c3fc9624deb2201d91c02aee0573fddebead46a7f52c1aa4f35"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.WaitContainerLibpod (cognitive 17): utils.WaitContainerLibpod has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/utils/containers.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ed547c43baf27ffb6821f2000a10e417d8fb22d5887b87fab2a2cf0bd1006d"}},{"ruleId":"D2","level":"warning","message":{"text":"bindings.tcpClient (cognitive 17): bindings.tcpClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/connection.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84cf4481bb1429d45bba3f156c791dfe271416d2399a615ef2f35c8c1ed037f"}},{"ruleId":"D2","level":"warning","message":{"text":"abi.setUpClusterClient (cognitive 17): abi.setUpClusterClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/apply.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23291eab10880293b1165698b37f5f29daef82a4bb0c7c3109dfbf9d287865e"}},{"ruleId":"D2","level":"warning","message":{"text":"abi.parseMultiQuadletFile (cognitive 17): abi.parseMultiQuadletFile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 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/domain/infra/abi/quadlet.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86072dd467efb35bd2f3f34b5dfb6b6817900512c5f55eac00e8279708a7771"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.ContainerStats (cognitive 17): ContainerEngine.ContainerStats has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, match/switch 2, jumps 1, loops 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1679, 1660). 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/domain/infra/abi/containers.go"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"274e19d4e518be40884102cb4e9a5edca420bc24e005684de5fc167114cf702f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.Save (cognitive 17): ImageEngine.Save has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/images.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f3e2688fe585b17ba877cc325fbceaf9ee00412e13ec9608a2759e52c1da48"}},{"ruleId":"D2","level":"warning","message":{"text":"env.parseEnv (cognitive 17): env.parseEnv has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/env/env.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95af45ba62263caf3488b088fbe4c6b06a4e10651ef5f97fe5bac9bceefc802"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.WaitAPIAndPrintInfo (cognitive 17): machine.WaitAPIAndPrintInfo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/machine_common.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0e0ca9e4ca46107428a3d786015ad9eddbda76d6f28e7715dd43ab2de85ffb"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIgnition.GenerateIgnitionConfig (cognitive 17): DynamicIgnition.GenerateIgnitionConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/ignition/ignition.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2646b8b3fd1d2a8321d0299a4013cfa04a2ae8571433dc6d416c4c2539e9b429"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.createPodOptions (cognitive 17): generate.createPodOptions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/pod_create.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"587b8e617753c5df496abe51d6e6492d36ac14d50fac47cd70b0d3578e66c8fa"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.VolumeFromSecret (cognitive 17): kube.VolumeFromSecret has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/kube/volume.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"748775167a48da7cbd212f4abb8cdb2636dfdcf0e12a6a6f8b7762d067f714b9"}},{"ruleId":"D2","level":"warning","message":{"text":"quadlet.ConvertNetwork (cognitive 17): quadlet.ConvertNetwork has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 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/systemd/quadlet/quadlet.go"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"c543fabea83c847f94a21a303caa56cf082a5cc827a8b2dad905a6c00dc7dd79"}},{"ruleId":"D2","level":"warning","message":{"text":"trust.parseUids (cognitive 17): trust.parseUids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/trust/policy.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a640d0453fcc2d7b4e18ee0908afdbe3f3a56d431072c9e40cfb91d8cb5d13"}},{"ruleId":"D2","level":"warning","message":{"text":"util.FiltersFromRequest (cognitive 17): util.FiltersFromRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (8 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/filters.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ffabba031999da6314e7105f7bbdc4fef49625ee1936821aaeb38c4c3e4ebb"}},{"ruleId":"D2","level":"warning","message":{"text":"wutil.matchOutputLine (cognitive 17): wutil.matchOutputLine has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/wsl/wutil/wutil.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f590769fb87bceb5153fcbec703e8ce8cfca27c2f6669e9d7ae795409c70f7a5"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.artifactPush (cognitive 16): artifact.artifactPush has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/push.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a998d3fd4e0b509461a30a1759cd9e02924e8ac3a4f61889ef2965243c5d09"}},{"ruleId":"D2","level":"warning","message":{"text":"common.GetHealthCheckOverrideConfig (cognitive 16): common.GetHealthCheckOverrideConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/create.go"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"048ed1e2ca25a8e894e6b2330b00c8c54825ebeb17c4526e334256b46fcf3a2f"}},{"ruleId":"D2","level":"warning","message":{"text":"containers.copyContainerToContainer (cognitive 16): containers.copyContainerToContainer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 4. Of this number, 9 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/cp.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0c07424ac6c0c5d1b182396b863eae6deea90fd878e41be7cf216f5c5ec456"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.teardown (cognitive 16): kube.teardown has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 4, loops 4 (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/kube/play.go"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2501a82440fe8dbe170c4e1d343f4d4f3e12e2ad1d13a3a33748f1ddbfbb152"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.hostInfo (cognitive 16): machine.hostInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/info.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"744cdefaa3f4d355a0d9869e22f468cfb9d6564bed593b3602baf420a2271a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"system.reset (cognitive 16): system.reset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 1 (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":"cmd/podman/system/reset.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6517593f1741dba73ee8609be3204f56fcb50c7499ac37c9ea61dc6b8afc98"}},{"ruleId":"D2","level":"warning","message":{"text":"main.loadUnitsFromDir (cognitive 16): main.loadUnitsFromDir has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/quadlet/main.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d93e58f28327d3dec0cbba6828a5522ef4d1c1f639a8081c123344c19287de4"}},{"ruleId":"D2","level":"warning","message":{"text":"registry.StartWithOptions (cognitive 16): registry.StartWithOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hack/podman-registry-go/registry.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da6efa6a9bd087534fbc23617940af30673321988a31c0533e40c54239257ec"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.parseIDMapMountOption (cognitive 16): libpod.parseIDMapMountOption has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (4 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b32cd58a6d2edc7d6e78f45bf5e5f6776ce1687fc9f7cf00d2109bad8d07889"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.readStdio (cognitive 16): libpod.readStdio has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_attach_common.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a82d4873dedf591c4c257aca94d834a9fda6b2c610d26f969c991475e1e7f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.moveToConmonCgroup (cognitive 16): Container.moveToConmonCgroup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/conmon_cgroup_linux.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"930f507b20f5d31b6a6056a6d165c3c8590acea04fc22b8039d605b5e67bb0f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.cGroupPath (cognitive 16): Container.cGroupPath has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container.go"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"291e1b89d204e36fb88e0fd52e410d96e6c9cf04353774b7b67eb4d642db242b"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.syncContainer (cognitive 16): Container.syncContainer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3 (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":"libpod/container_internal.go"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8960a0dc5d0dfbf7a4af509d79034c12851574fa5a35508eb7675c64731556f"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.setupSystemd (cognitive 16): Container.setupSystemd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_linux.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bcabe9f4186bdc3241ad4683cdca1189d578e908a85c47acd3899b19ca95cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.newContainerEventWithInspectData (cognitive 16): Container.newContainerEventWithInspectData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 pts) (nesting depth added 7). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/events.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"af344c7ec372e031451849a76e6b64e0daa7465937dbf725d67eafd9f68232c3"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.maybeRemoveServiceContainer (cognitive 16): Pod.maybeRemoveServiceContainer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (nesting depth added 4). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 273). 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":"libpod/service.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffad744a0d889a17ed91792a545d6dcd9e581c4faa3392b80413ba90042c528"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.RemoveVolume (cognitive 16): SQLiteState.RemoveVolume has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 1 (nesting depth added 2). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: 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":"libpod/sqlite_state.go"},"region":{"startLine":2116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d437da45ea35d0a2f121fc435e9638e4c6db0dccda9265f4049e786de0aa24ba"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.removeContainerWithTx (cognitive 16): SQLiteState.removeContainerWithTx has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 528). 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":"libpod/sqlite_state_internal.go"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bba581a3551da8665ad44cb545df4d8569236fbf124f9b5b2d5f03e0dfece3"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteState.networkModify (cognitive 16): SQLiteState.networkModify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 6, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state_internal.go"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"54381d154b01e20f0bd4d24d8aa261093edac970491bf3ca3b76c16e1b8df13f"}},{"ruleId":"D2","level":"warning","message":{"text":"compat.StopContainer (cognitive 16): compat.StopContainer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers_stop.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45818a6488a2acf9ab2d34416d9b4b54439650a661c186219c325ee1bc63b28"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.PullArtifact (cognitive 16): libpod.PullArtifact has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/artifacts.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2084ec98f9e24d68cd040fc87d12830bf2718319add381d1a681af58e6aaacc3"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.ExportImageRootfs (cognitive 16): libpod.ExportImageRootfs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). Of this number, 11 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/images.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"29712214a9e14e72932684ed78ec4b88fffb1fd63b6a122401356883be585d9f"}},{"ruleId":"D2","level":"warning","message":{"text":"libpod.ExportImages (cognitive 16): libpod.ExportImages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/images.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d888f95013a9ff9898d06710f6a3dca3a4e69661202ec7a9058fdc58e57830af"}},{"ruleId":"D2","level":"warning","message":{"text":"kube.PlayWithBody (cognitive 16): kube.PlayWithBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/kube/kube.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fade2acdfb6237c5eca18fac668a29f93d268ff93aad6f4b65a0d0219b7c89a6"}},{"ruleId":"D2","level":"warning","message":{"text":"entities.ToPodSpecGen (cognitive 16): entities.ToPodSpecGen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/entities/pods.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b12b5c2b74238b972949bb19050f6f21109b92acee2c7685405734462b3bbb"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEngine.ArtifactRm (cognitive 16): ImageEngine.ArtifactRm 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/domain/infra/abi/artifact.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e0fe285a9683c6bc8d724e06d1965875735f209203d69da73d1169577448f7"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.PodPs (cognitive 16): ContainerEngine.PodPs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, 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/domain/infra/abi/pods.go"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"611248343f756932953131acc38006a428f69287eb83fba36955106245ff9a92"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerEngine.PodInspect (cognitive 16): ContainerEngine.PodInspect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/pods.go"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac68b473dde32cf68ac4cb446bb0b6bbd6afb104a4ed95766a57ad14f68e0be0"}},{"ruleId":"D2","level":"warning","message":{"text":"OSTree.Upgrade (cognitive 16): OSTree.Upgrade has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/os/ostree.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dcbcd85d1a432bd5c82e423511ea673bd707fb61f9cb9007cf3c6019c85294"}},{"ruleId":"D2","level":"warning","message":{"text":"QEMUStubber.StartVM (cognitive 16): QEMUStubber.StartVM has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 2 (nesting depth added 3). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, 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/machine/qemu/stubber.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b8861c967f5893c4156656d5fe0a4f70d8ece0b18b48c581c09dcaff4970ce"}},{"ruleId":"D2","level":"warning","message":{"text":"UsernsMode.GetKeepIDOptions (cognitive 16): UsernsMode.GetKeepIDOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/namespaces/namespaces.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"77465d6568d967394d0274fff243f3cc1e21f413de22e8ba22d119e1afcb92c8"}},{"ruleId":"D2","level":"warning","message":{"text":"trust.descriptionsOfPolicyRequirements (cognitive 16): trust.descriptionsOfPolicyRequirements has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/trust/trust.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcdf7f7f3132b0ee252116be7c9d540e58ff89804ae2645dc494cdb1d406e17"}},{"ruleId":"D2","level":"warning","message":{"text":"util.fillIDMap (cognitive 16): util.fillIDMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 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/util/utils.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c154293c1bc4aef52b1f628fec68e3ce3f5d468fbaa169de995da1635509109"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Container: TooManyMethods \u2014 405 methods, declared across 35 files: libpod/container.go (104), libpod/container_internal.go (74), libpod/container_internal_common.go (51), libpod/container_api.go (34), \u002B31 more file(s). The bar is 30 methods; this is 375 over it, 13.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5692e155a39f2b564615d00af257e908d73fa92ba8a01e169c6f4c6405436cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: common.DefineCreateFlags: FunctionTooLong \u2014 DefineCreateFlags runs 779 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 679 over it, 7.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/create.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4646259736570d832cfdb3097e115db90daaec76935e8b1fad760687699deb82"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Runtime: TooManyMethods \u2014 145 methods, declared across 27 files: libpod/runtime.go (36), libpod/runtime_ctr.go (28), libpod/runtime_pod.go (9), libpod/runtime_volume.go (8), \u002B23 more file(s). The bar is 30 methods; this is 115 over it, 4.83\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceeb18de02e53c49cf8a8d748ee0871a946da530ab1be30e2c463ef92bfa9259"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ContainerCreateOptions: TooManyFields \u2014 138 stored fields. The bar is 30 stored fields; this is 108 over it, 4.60\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/domain/entities/pods.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"845cc45dd4e90d00b2e9afb3e98400a768c49052ca41584132c14f6fd34ea33f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContainerEngine: TooManyMethods \u2014 134 methods, declared across 18 files: abi/containers.go (41), abi/pods.go (17), abi/play.go (15), abi/volumes.go (14), \u002B14 more file(s). The bar is 30 methods; this is 104 over it, 4.47\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. Most of these members implement entities.ContainerEngine (111 of 134 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/runtime.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dc58ca1c6ee1689fc839a455028b486e0072226d2d8916d8f05f42f01b5524"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: specgenutil.FillOutSpecGen: FunctionTooLong \u2014 FillOutSpecGen runs 414 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 314 over it, 4.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"d420a86adf1714b6e4fbda13c39d1595f1cd06de0b1a0d972a4eea42fc9e0f23"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.generateSpec: MethodTooLong \u2014 generateSpec runs 403 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 303 over it, 4.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea2f9cbf89b85667c6a9a52ef568f5585507ad79848d627c927c507f3fa324c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContainerEngine.playKubePod: MethodTooLong \u2014 playKubePod runs 390 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 290 over it, 3.90\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/domain/infra/abi/play.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c493e04b1b13985fce805e595fbbf6903c9c215aef991c282e4d92a197220b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/container_internal_common.go: FileTooLong \u2014 1943 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: Container (51 blocks, 185-3389). The bar is 500 significant lines; this is 1443 over it, 3.89\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":"libpod/container_internal_common.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ac632d11a29cef35bdb8c2d5f9dcf6b112ee353e8d6bf614798d414428439b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContainerEngine: TooManyMethods \u2014 111 methods, declared across 11 files: tunnel/containers.go (42), tunnel/pods.go (16), tunnel/volumes.go (13), tunnel/system.go (11), \u002B7 more file(s). The bar is 30 methods; this is 81 over it, 3.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. Most of these members implement entities.ContainerEngine (111 of 111 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/runtime.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6701a87874569ad630753df1ac3b3b3a136de17a9a26c4f908466f27cf29aa61"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compat.createBuildOptions: FunctionTooLong \u2014 createBuildOptions runs 339 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 239 over it, 3.39\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/api/handlers/compat/images_build.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f24aeeda007104aecdae3569bde9a49b3c7e6b77d50c233cb72ef3625de8308"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quadlet/quadlet.go: FileTooLong \u2014 1667 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1167 over it, 3.33\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/systemd/quadlet/quadlet.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e1caa8f0d947df8ce91ad8bed45d8859bd17dca950d4ba79f5edefc4e8f35d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: BuildQuery: TooManyFields \u2014 98 stored fields. The bar is 30 stored fields; this is 68 over it, 3.27\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/api/handlers/compat/images_build.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"198252e54f695a474b0148b9e5fe5dd653960eb0b5d79dd9eb3f4135c80411f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/container_internal.go: FileTooLong \u2014 1621 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Container (74 blocks, 71-3080). The bar is 500 significant lines; this is 1121 over it, 3.24\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":"libpod/container_internal.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a531418a93c05050e937bcf8abfbd93f31a36baee2779d4cfef8fc17ec69a74d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SQLiteState: ClassTooLong \u2014 1283 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods, 58 blocks, lines 27-2468. The bar is 400 significant lines; this is 883 over it, 3.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":"libpod/sqlite_state.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ce294d8639a5c70fcf2744fce969f307b68e0419698180da3ff8f5104f73ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: common.buildFlagsWrapperToOptions: FunctionTooLong \u2014 buildFlagsWrapperToOptions runs 307 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 207 over it, 3.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/build.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf951cd0afe2fcc5187da1c0efb1ad2c38bae6daee1c5935a55bd821fad81ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: kube.ToSpecGen: FunctionTooLong \u2014 ToSpecGen runs 301 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 201 over it, 3.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/kube/kube.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ac345e1e37696b83f32e61607965036fc07a0a5200330a2db43e02e6ac2775"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compat.cliOpts: FunctionTooLong \u2014 cliOpts runs 297 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 197 over it, 2.97\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/api/handlers/compat/containers_create.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c372e071525edcc6fa71827b4c49cf4a33874cd6840cf0a232913c290d8f32f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: images.prepareParams: FunctionTooLong \u2014 prepareParams runs 281 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 181 over it, 2.81\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/bindings/images/build.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4915212eb8c6e05cbb6ae25e924b8d4dbc41602d6acb4b8a96598ee4c3895e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/sqlite_state.go: FileTooLong \u2014 1342 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SQLiteState (58 blocks, 27-2468). The bar is 500 significant lines; this is 842 over it, 2.68\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":"libpod/sqlite_state.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ec2ffc88e906115a08a7ffdcce1deeac6e8f03bdb3a3bfccb72fbb56b60881"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: abi/play.go: FileTooLong \u2014 1325 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: ContainerEngine (15 blocks, 67-2094). The bar is 500 significant lines; this is 825 over it, 2.65\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/domain/infra/abi/play.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ddfcb81b19758042d861bb35bb43984f0d9915f9d24e6574a1905d29d512e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.createContainerOptions: FunctionTooLong \u2014 createContainerOptions runs 258 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 158 over it, 2.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/container_create.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9b57427b246297a96c3c7d04ca08ce514a510db1ef4c8b6b85a973a930647c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Pod: TooManyMethods \u2014 75 methods, declared across 10 files: libpod/pod.go (45), libpod/pod_api.go (13), libpod/service.go (6), libpod/kube.go (3), \u002B6 more file(s). The bar is 30 methods; this is 45 over it, 2.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1c0a0b9744fc0a56c90ef761b4fcaf70c609b9e084cea61de4261e05fe0e67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: abi/containers.go: FileTooLong \u2014 1226 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: ContainerEngine (41 blocks, 164-1880). The bar is 500 significant lines; this is 726 over it, 2.45\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/domain/infra/abi/containers.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6da3885a5b0aedd16a98bece2adb7b699bb5429078d9f224c45f4b6028a4878"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: InspectContainerHostConfig: TooManyFields \u2014 73 stored fields. The bar is 30 stored fields; this is 43 over it, 2.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/define/container_inspect.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"77232712a892686ce93768b20ce564e4706ad99545ecb4b186bad44a539f76a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.restore: MethodTooLong \u2014 restore runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\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":"libpod/container_internal_common.go"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e9bda03a1157eebf41b16b707c7b92aaba03edaf7b7bf1b707adaf7ed3f522"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/completion.go: FileTooLong \u2014 1173 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 673 over it, 2.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"695a101b9b3f49a43bd799a29682acea3d86a3e421f44578e7a5addd9f8e1c60"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContainerEngine.PlayKube: MethodTooLong \u2014 PlayKube runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/play.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18a2196d4265b2c84edfd0eb170b613b9be279fc835b1729b9e80aa568127eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.setupContainer: MethodTooLong \u2014 setupContainer runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\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":"libpod/runtime_ctr.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"df70420344b14d29116231454380e231f1992beb01aea1d00096c92e37ea4cc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/options.go: FileTooLong \u2014 1121 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 621 over it, 2.24\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":"libpod/options.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"955ddb012715448e8d86d4fe119cfe6d343809956e060763f89f302d737269e9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLiteState: TooManyMethods \u2014 64 methods, declared across 2 files: libpod/sqlite_state.go (57), libpod/sqlite_state_internal.go (7). The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. Most of these members implement libpod.State (56 of 64 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cc7bee48904b6775f57d8d4fb8f68cfce8572791d0f0d1b790c91bdba9aae1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: quadlet.ConvertContainer: FunctionTooLong \u2014 ConvertContainer runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\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/systemd/quadlet/quadlet.go"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d7cc55be4617c73e61175e18b53113ecb434ebfa63d9b9086e134720eefaee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: filters.GenerateContainerFilterFuncs: FunctionTooLong \u2014 GenerateContainerFilterFuncs runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/filters/containers.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"56473f90ec9740d506c7c2495813dc1515b85e4ea97d9be8b8e0a1adee06ea4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.namespaceOptions: FunctionTooLong \u2014 namespaceOptions runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/namespaces.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d63b0b3e0ab448f2093ae7d6fcc441621115d1ace43a3062a67de4df2d4064"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/oci_conmon_common.go: FileTooLong \u2014 984 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: ConmonOCIRuntime (34 blocks, 54-1573). The bar is 500 significant lines; this is 484 over it, 1.97\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f1528436fe837a065cb4d7966c39c7335d2eba98f9d5eb5ca8961299be4cc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.MakeContainer: FunctionTooLong \u2014 MakeContainer runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\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/specgen/generate/container_create.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"583869dc10baeacba6d0a7ddd25fe43cbd93085fdc192902ad2d63f533813d01"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.removeContainer: MethodTooLong \u2014 removeContainer runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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":"libpod/runtime_ctr.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"8460c5e61f177bbd94cccf32d880a6bf010a3a22ac24e24bfc8c939854f22b34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.platformInspectContainerHostConfig: MethodTooLong \u2014 platformInspectContainerHostConfig runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\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":"libpod/container_inspect_linux.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2997aee6aeb6248eb1fe6b58e4fc537f39cdb334d95affb2eab8c51a10409b7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/kube.go: FileTooLong \u2014 904 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 404 over it, 1.81\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":"libpod/kube.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ee3c27915d0208e35ebc09181eec6bb0cbca70d3c574d1b8d9b8a16f656f8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.makeRuntime: FunctionTooLong \u2014 makeRuntime runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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":"libpod/runtime.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf4c28f61c968c730a69ca0fa27428b4aab6e248f41d7f6546b9a07715258a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compat/images_build.go: FileTooLong \u2014 897 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 397 over it, 1.79\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/api/handlers/compat/images_build.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4de9d88680db39db6abdd00f15bd8dbb8695e7cc00eaad6a89d704884e1efd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compat.PushImage: FunctionTooLong \u2014 PushImage runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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/api/handlers/compat/images_push.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"548eccf0247cd2c4a73ab39fb7596ca4a0f11861d6ab213eb2b642009e3e61f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: specgenutil/specgen.go: FileTooLong \u2014 892 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 392 over it, 1.78\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/specgenutil/specgen.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b3cbc5f06bdf6f8b1128b1eefb3c11045e66138ca2658248245967893d174e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kube/kube.go: FileTooLong \u2014 878 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 378 over it, 1.76\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/specgen/generate/kube/kube.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"762829445ed5f03754c748927e48324e8b0f4c065109f4b8ac8de490fc0dbee2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.ImagesPull: FunctionTooLong \u2014 ImagesPull runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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/api/handlers/libpod/images_pull.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c05f972116d868a91e8ca41daaf3cf021611fa15e17271713b1bf1e51a6995e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.ManifestModify: FunctionTooLong \u2014 ManifestModify 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/api/handlers/libpod/manifests.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"32424e7da992adcc507de5bac664ed2ed00c9542a976a1ee085e151ffcf68c63"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compat.LibpodToContainerJSON: FunctionTooLong \u2014 LibpodToContainerJSON runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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/api/handlers/compat/containers.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"e335a668e2d779f6c51382f90662c932e8335dd4f03e159df4218157ee64357f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.SpecGenToOCI: FunctionTooLong \u2014 SpecGenToOCI runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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/specgen/generate/oci_linux.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f388f39c2bac370ab4df64fbe0fb587e450e0251427001aad310ab0c448119b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConmonOCIRuntime: ClassTooLong \u2014 668 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods, 34 blocks, lines 54-1573. The bar is 400 significant lines; this is 268 over it, 1.67\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":"libpod/oci_conmon_common.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f0d458074e57296540d034b64a42c4e920fd93db881f44533d86826c3cfb24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/create.go: FileTooLong \u2014 824 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: DefineCreateFlags (33-1091). The bar is 500 significant lines; this is 324 over it, 1.65\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/create.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8c2db1d5e127d6da7d21ee21245edc87dd46024b59f8b0a4c1a4f30aa71a0a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImageEngine: TooManyMethods \u2014 49 methods, declared across 6 files: abi/images.go (21), abi/manifest.go (12), abi/artifact.go (9), abi/farm.go (4), \u002B2 more file(s). The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. Most of these members implement entities.ImageEngine (46 of 49 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/runtime.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7452cd70f78cbbdd229a7bfec9781b8aa954c7819756fa39b456666df1bde71c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ContainerMiscConfig: TooManyFields \u2014 49 stored fields. The bar is 30 stored fields; this is 19 over it, 1.63\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":"libpod/container_config.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ad8adce192b8ae6e1be0f95754c7c2c6bad4fd51224c7075695c0fe19b6103"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: images/build.go: FileTooLong \u2014 809 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 309 over it, 1.62\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/bindings/images/build.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1245dde26c42bac925b5c7a223584babb743b0e571a3f83387307decd271dd8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/runtime.go: FileTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 305 over it, 1.61\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":"libpod/runtime.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65770f1ec2b884d881f01d46b5b87830c58b4f408345dffcfd2276af1f8de31e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImageEngine: TooManyMethods \u2014 48 methods, declared across 5 files: tunnel/images.go (23), tunnel/manifest.go (10), tunnel/artifact.go (9), tunnel/farm.go (4), \u002B1 more file(s). The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. Most of these members implement entities.ImageEngine (46 of 48 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/runtime.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1734f79880f33756d666312ce4cf8801d289d74b24340a17a3d2e880b129f6e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConmonOCIRuntime.createOCIContainer: MethodTooLong \u2014 createOCIContainer runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25d4a56966203e0aca877ab4015df23d92830cd8b45758f778814d57d21c925"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/runtime_ctr.go: FileTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: Runtime (28 blocks, 48-1473). The bar is 500 significant lines; this is 295 over it, 1.59\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":"libpod/runtime_ctr.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40771c7976e30869be1d5de405cfa7f6d8941e7e45c8328f936df68983ef0654"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.ConfigToSpec: FunctionTooLong \u2014 ConfigToSpec runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\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/specgen/generate/container.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6863f0d180242541be42c892ec33ba73d5a533659eaf26c08af572c81fe80f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: util.processOptionsInternal: FunctionTooLong \u2014 processOptionsInternal runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\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/util/mount_opts.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"539ab358798050bfc096fe7b46d2b998f4daa36eb9ff082bbf4266f04aef116e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConmonOCIRuntime: TooManyMethods \u2014 45 methods, declared across 4 files: libpod/oci_conmon_common.go (33), libpod/oci_conmon_exec_common.go (8), libpod/oci_conmon_linux.go (3), libpod/oci_conmon_attach_common.go (1). The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. Most of these members implement libpod.OCIRuntime (33 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3e911a53145f455225b8c6f7b3ff59bd0e036cd6dc84360e244657440c3581"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: specgenutil.parseMountOptions: FunctionTooLong \u2014 parseMountOptions runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\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/specgenutil/volumes.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6177eb207652d734217803056841ec718c190d2b98f8f3587db1e851147c6376"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tunnel/containers.go: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: ContainerEngine (42 blocks, 30-1103). The bar is 500 significant lines; this is 237 over it, 1.47\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/containers.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc89722d3f06d416192ed2e3d26b15536f481987d103d606de02d65093dd48f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: InspectContainerData: TooManyFields \u2014 44 stored fields. The bar is 30 stored fields; this is 14 over it, 1.47\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":"libpod/define/container_inspect.go"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"5133662fbb0a7e093b4296077022580e7321a13536a2fb46141ab2787c500d89"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Container: ClassTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), 405 methods, 105 blocks, lines 96-1585. The bar is 400 significant lines; this is 182 over it, 1.46\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":"libpod/container.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77f145dfab588c695b9e6b6f70c4e1eae61b14d48b1f1179d89520976405d84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/container.go: FileTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: Container (105 blocks, 96-1585). The bar is 500 significant lines; this is 219 over it, 1.44\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":"libpod/container.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc99cd2d97c61b93994cdcc14e42711f996d9a3e3ac646ff10470b2165e3667"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ContainerBasicConfig: TooManyFields \u2014 43 stored fields. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/specgen.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"104678af20855b989fd9d8986c8b7eac462a9e778a968024e0f64a0dae51e9e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/utils.go: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43\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/utils.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6c13c2c3e8b42bea310208cb76bbd750e2702600ffd58cf13460a62fbd82c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: utils.ExecuteTransfer: FunctionTooLong \u2014 ExecuteTransfer runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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/domain/utils/scp.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"475efbee739397341b395cddbf61b04b5fb3e1b0fee08836778249288647b4d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shim.startLocked: FunctionTooLong \u2014 startLocked runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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/machine/shim/host.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"531670d374480f34e7b5d08e849c89e526dc8dab3b8c5c5c8546a455888ee499"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: abi/images.go: FileTooLong \u2014 701 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: ImageEngine (21 blocks, 51-810). The bar is 500 significant lines; this is 201 over it, 1.40\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/domain/infra/abi/images.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bae1151599f123f2f81968728207eaae7838466a073bd89b3c560f81e0fc9ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shim.Init: FunctionTooLong \u2014 Init runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.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/machine/shim/host.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3361f0c3161f43873af786787b1bc661a5bc4bd16dcae188ff16f13470556ffd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: filters.GenerateExternalContainerFilterFuncs: FunctionTooLong \u2014 GenerateExternalContainerFilterFuncs runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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/domain/filters/containers.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20e773200c7cc8de7f840666af9287c87daf72a68fb93bfee1339e927e73bc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.executeContainerTemplate: FunctionTooLong \u2014 executeContainerTemplate runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/generate/containers.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"631c9b73e926a2df200bed806d2ee7d35e26d0c9423814d5beb636a93456df00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/container_exec.go: FileTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: Container (30 blocks, 162-1299). The bar is 500 significant lines; this is 166 over it, 1.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_exec.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb383f679bc42843a5f195b7849adac959cd44adea9a58ed1d289c091a7fa367"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.getContainerInspectData: MethodTooLong \u2014 getContainerInspectData 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":"libpod/container_inspect.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c33d4522b0bcdfea433e811f2e25e7b7ad41c1377b1089754b05ff8fb0cdaf6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.ParsePortMapping: FunctionTooLong \u2014 ParsePortMapping runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/ports.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79dc9633bfc122c966e9052307fc602d33890389985a2ec8b6f6e13e9ad2a8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConmonOCIRuntime.HTTPAttach: MethodTooLong \u2014 HTTPAttach runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"libpod/oci_conmon_common.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2f799090ec7e52e3211b22a39479c62e3a80d22ee88861d7baeefc7f88ea31"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compat.LibpodToContainer: FunctionTooLong \u2014 LibpodToContainer runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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/api/handlers/compat/containers.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e021226265bba2e89eecee0a9892d3426d17f3b062431ec05033838b0ffa685"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.rootFlags: FunctionTooLong \u2014 rootFlags runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/root.go"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de3f973aa9bba39fb802a43e0f20d16327a28bc7cc4c17558c803068e771651"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.CompleteSpec: FunctionTooLong \u2014 CompleteSpec 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/specgen/generate/container.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a10492b57fa5d44feb790b3789d836d9e1039eb7b4278cd314023e3c2dda837"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compat/containers.go: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 139 over it, 1.28\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/api/handlers/compat/containers.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a199a714904914b4b48b89819aef6657a3b8af54fe0bd76eb737c473edfcd9df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnitFile: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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/systemd/parser/unitfile.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53ddba327eb13ab91ef14c2f59a3d7cccf5d1567c7bf4967c86a6bf54017ffe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: InspectContainerConfig: TooManyFields \u2014 38 stored fields beside 2 methods. The bar is 30 stored fields; this is 8 over it, 1.27\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":"libpod/define/container_inspect.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bbb516ba60e2721f410f26a99fd1007c3a0d93612c885395f5b846fcd8b9a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: HostInfo: TooManyFields \u2014 38 stored fields. The bar is 30 stored fields; this is 8 over it, 1.27\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":"libpod/define/info.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e596866c4d1e56b04a3728c4d0de0a1325cfa02212484242b04b6dcfe3ec714c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PodmanConfig: TooManyFields \u2014 38 stored fields. The bar is 30 stored fields; this is 8 over it, 1.27\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/domain/entities/engine.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28976df4e1a8e83b916e12dbf616c1f3c41dc7e5c227d457f8adf27c7157d48"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/container_api.go: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: Container (34 blocks, 32-1281). The bar is 500 significant lines; this is 129 over it, 1.26\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":"libpod/container_api.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc584207cd11c83aeea1b87d1de85b33be08685b4a907eab5aa73262c37410c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PlayKubeOptions: TooManyFields \u2014 37 stored fields. The bar is 30 stored fields; this is 7 over it, 1.23\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/entities/play.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b94fdf2b13d0fb5ba3aa91fff2e6137578511f7f2147722e05a041b412f1fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Pod.Inspect: MethodTooLong \u2014 Inspect runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod_api.go"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4421e252888d37ba9b16b7cd0c8ea40ff6c3bd31860daff9078b512f5404ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/images.go: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 104 over it, 1.21\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/api/handlers/libpod/images.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"083c73662a29d2ad4b3bc76c773342cf15b56f32d939d62bd7166d60edd2ed3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shim/host.go: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 100 over it, 1.20\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/machine/shim/host.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ce21c549a8c2a1ebf25a04c94ca6672d93a47e4deb5b25cde8ab07b50584fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: common.NetFlagsToNetOptions: FunctionTooLong \u2014 NetFlagsToNetOptions runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/netflags.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c8e15f324068d39413c236fecf92b1da4a2db889d90788348ac61b45635be0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.newVolume: MethodTooLong \u2014 newVolume runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"libpod/runtime_volume_common.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b5743c73b6b74ec822b3d2ba8708ad58407016384d9155b006aa3af983415f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: images.nTar: FunctionTooLong \u2014 nTar runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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/bindings/images/build.go"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0f6cb8345abe65d347a7967dd00a9a738b4764a14a98968944fee14fd1398d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: containers.Attach: FunctionTooLong \u2014 Attach 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/bindings/containers/attach.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85c8036dda4878ca07ebfd8d879cd76b4490bfe4ef5fc3120a52fca84bf7e5e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: InspectPodData: TooManyFields \u2014 35 stored fields. The bar is 30 stored fields; this is 5 over it, 1.17\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":"libpod/define/pod_inspect.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"940bcdb0ef1945c461ebab1607ac233be38fc791392bdc131eff7048f24fa16a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: containerInfo: TooManyFields \u2014 35 stored fields. The bar is 30 stored fields; this is 5 over it, 1.17\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/systemd/generate/containers.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cd10cff1df2140ed85c921f452dd2d2c384389c8af7619cddc2ad1284113e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.copyFromArchive: MethodTooLong \u2014 copyFromArchive runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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":"libpod/container_copy_common.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"97325694f3d89ca936ca530071276377c0c9e7722e486633f4192156c4c258c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.KubePlay: FunctionTooLong \u2014 KubePlay runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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/api/handlers/libpod/kube.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf78aeef6088248f9f67dfb002f4bdfcc14665823033265f335b4723a875cda"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: filters.GeneratePodFilterFunc: FunctionTooLong \u2014 GeneratePodFilterFunc runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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/domain/filters/pods.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb45bd84194ce68da7677b308c8141c52a3024d1f0072dc885b002887de30a6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.mountStorage: MethodTooLong \u2014 mountStorage runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"740905b97b56bb33f051016c1a3d097c9a640015754e2b37dbf3b8e3295cc626"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.makeBindMounts: MethodTooLong \u2014 makeBindMounts runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb58f97f5cf4412341f26538b2994b4aa042702a736a06572a96b1012208065"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MissingRuntime: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. Most of these members implement libpod.OCIRuntime (33 of 34 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_missing.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca597915cfebd7aeb3f403dead192ee756b4f4e99d228790b2f74732a0b0878"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Volume: TooManyMethods \u2014 34 methods, declared across 6 files: libpod/volume.go (24), libpod/volume_internal.go (5), libpod/volume_internal_common.go (2), libpod/events.go (1), \u002B2 more file(s). The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/volume.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbc55b299a1565219b90f3c7f68b923bbe11df20f374aa387382625d08b3e74"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ContainerState: TooManyFields \u2014 34 stored fields. The bar is 30 stored fields; this is 4 over it, 1.13\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":"libpod/container.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d7b453e63b37cbafbfb04c2b2c5de3e5a42b04a45281dad74cf19a7b71c61e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ps.ListContainerBatch: FunctionTooLong \u2014 ListContainerBatch runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/ps/ps.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"908377d8ec471762826f72f71caefe7ebf9c6cf810b4a14408ff91c387ca06fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.CommitContainer: FunctionTooLong \u2014 CommitContainer runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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/api/handlers/libpod/images.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f950b68149b767239aa01d33e7ed7af70fb23812a2c1e7a512a97f004630e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/unitfile.go: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 58 over it, 1.12\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/systemd/parser/unitfile.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0103a0ec3e3ab16492eb17ecb61544e39dd7957c07d1a34f332e3203f84bd71a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: images.prepareRemoteRequestBody: FunctionTooLong \u2014 prepareRemoteRequestBody runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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/bindings/images/build.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3df51445ee78f5ef75021aebbd6807fd2658ae043b5ee4780422ef81dfd7cc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Farm.Build: MethodTooLong \u2014 Build runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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/farm/farm.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1650a84150bbc3c954cb123cc51cd58b87f72c2fa9615991417a1416da8546"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: APIServer: TooManyMethods \u2014 33 methods, declared across 28 files: server/server.go (4), server/handler_api.go (3), server/register_archive.go (1), server/register_artifacts.go (1), \u002B24 more file(s). The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/server/server.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda5e39206de7bd0ca3ddadf2f3cd4a727406e651aa60ad3c703973c487b7183"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: parser.extractFirstWord: FunctionTooLong \u2014 extractFirstWord runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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/systemd/parser/split.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"881530b83a577ce5f5cbcce40e0c5eae2f8b5e442ec0b7606d79bc2b830823fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContainerEngine.GenerateKube: MethodTooLong \u2014 GenerateKube runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/generate.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"514ceac50cc0b4b98cf9c4aeab7735742e393c93d6c7b821d85e98fea19057be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContainerEngine.PlayKubeDown: MethodTooLong \u2014 PlayKubeDown runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/play.go"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"5255ac5368b0d1f8c5f919c2c78294faeefc2ebe8a85cc0b5280f73471123990"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.finalizeMounts: FunctionTooLong \u2014 finalizeMounts runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/storage.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7cfbcad828f63ded6600912466520970b9c7b46815f754bb1cd5a87899b239"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: specgenutil/volumes.go: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 40 over it, 1.08\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/specgenutil/volumes.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e09b4e822536df85b1596c7f4c629960afcabda2b1532eda35ad861d489419"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.parent: FunctionTooLong \u2014 parent runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/rootlessport/main.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cef527d3896fce6006cb941483a99bd25843750b1be09cca71ec871ac6d63f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.PushImage: FunctionTooLong \u2014 PushImage runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/images_push.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf41770106b257aad915399d2f0256d25c81c4f0cd76c6dafbede9080dd4abc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ContainerStorageConfig: TooManyFields \u2014 32 stored fields. The bar is 30 stored fields; this is 2 over it, 1.07\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/specgen/specgen.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0e3e8538bcf07373d2187ea3ba312bdaac17a7018d5131c3aef7e709482497"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libpod/manifests.go: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07\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/api/handlers/libpod/manifests.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d784aaaeaac569476fad2f41a2bca3dba042e81e56344e4d8d3ede0cc0b11c1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Runtime: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 145 methods, 37 blocks, lines 67-1533. The bar is 400 significant lines; this is 24 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaf951e17066d6785c9c910581bdbbf04954c5d3d9942d6f630974ca0e33956"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Container.WaitForConditionWithInterval: MethodTooLong \u2014 WaitForConditionWithInterval runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.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":"libpod/container_api.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"340432dd48b826b2e1023b024bfe68a843fe6088a1f89190dc0dd4357787b753"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate.securityConfigureGenerator: FunctionTooLong \u2014 securityConfigureGenerator runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.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/specgen/generate/security_linux.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5f64009dda50e387c80fb10322565287468dcbcade581cca268416a49d6ad7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/build.go: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 28 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/build.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47599b31c9ddbc720b6e822866fcb07b49f53bb624ee1448d323933e865cf50a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.Reset: MethodTooLong \u2014 Reset 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":"libpod/reset.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"347e2bed6fba34ae7b5e9657df372eebafd9ff72452ed5d82e9b24ed4c7fff5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: generate/container_create.go: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/container_create.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fe2bc6b14cad5ebba0347c2812f7d3c3dd787144abf675234b4f7a20a5ab2d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PlayOptions: TooManyFields \u2014 31 stored fields. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/kube/types.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4369b5e8f96bfb456dd5ffc65c566e2f798b7124b554140b1e146dc71431f51b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compat.LogsFromContainer: FunctionTooLong \u2014 LogsFromContainer runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers_logs.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f994ae582fba41cf544581eb0513c18abc86ae86bd0708b901e172d32947fa0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.containerToV1Container: FunctionTooLong \u2014 containerToV1Container runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/kube.go"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc1308160a4c2fb334da0c6ae3885930e4a2669171614ca6711fdd524718bc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rootless.becomeRootInUserNS: FunctionTooLong \u2014 becomeRootInUserNS runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/rootless/rootless_linux.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a85702df1dc1dbe948607e855b420b583dab7d58f9be37b21358b2d278c577"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: libpod.ManifestPush: FunctionTooLong \u2014 ManifestPush runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/manifests.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c49b17ce72d7b791ac5548dd80f268a91f171487263a178f6303dc9e2216c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: manifests.Modify: FunctionTooLong \u2014 Modify runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/manifests/manifests.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2494961d354da617de2bfeef7b6c3f69127ef3e2ac54ed89368e870a06fd955"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: infra.getRuntime: FunctionTooLong \u2014 getRuntime runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/runtime_libpod.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"30489c8c9d973f2d4353fd1723caf28c83229082248cba58b85872156ccf08c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 30 shared lines): libpod/pod_api.go:276-323 | libpod/pod_api.go:337-379 | libpod/pod_api.go:393-435 | libpod/pod_api.go:506-555 \u2014 These 4 members are variants of one another: a block of 30 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":"libpod/pod_api.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72c1f49883c24553a6a00782bc51904da6e2e4bf2ab112c90cce3666a5dbcdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (61 shared lines): pkg/specgen/generate/oci_freebsd.go:20-170 | pkg/specgen/generate/oci_linux.go:103-375 \u2014 These two members are variants of one another: 61 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/oci_freebsd.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e00be8451d0c139fbcaa137f51dd520be00dac04fbd6cfeab18999e11d9c676"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): libpod/container_exec.go:323-467 | libpod/container_exec.go:473-612 \u2014 These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_exec.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"816bfe6dca902c7ea387993ba2750e3c6633b64cca370beee774efc7069f5405"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): pkg/domain/infra/runtime_libpod.go:220-294 | pkg/util/utils.go:961-1047 \u2014 These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/runtime_libpod.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c7fde25a2c93a36b73f528dc1d17076dcccd4133f5a2422eae297b77e1ead6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (34 shared lines): pkg/api/handlers/libpod/images_push.go:25-179 | pkg/api/handlers/libpod/manifests.go:351-491 \u2014 These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/images_push.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fad704c867bf67b1fbfc669ecd96131d97dd0246bd65be0728dd959fbdab7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): pkg/util/utils.go:357-433 | pkg/util/utils.go:819-884 \u2014 These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/utils.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e38c563a5e8199213074feda2ce5d3d71143fecb25b6e7a9fbd4648a083ffc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): libpod/sqlite_state.go:881-954 | libpod/sqlite_state.go:1647-1700 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"635d3aa9a2af5caa4ef6c558b2f4eca4add24fcb2494908f0afdc88330cc6a84"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): pkg/api/handlers/compat/containers.go:755-784 | pkg/api/handlers/compat/exec.go:237-277 | pkg/api/handlers/compat/images.go:256-323 | pkg/api/handlers/compat/images.go:437-517 | pkg/api/handlers/compat/images.go:519-573 | pkg/api/handlers/libpod/autoupdate.go:22-89 | pkg/api/handlers/libpod/containers.go:461-533 | pkg/api/handlers/libpod/pods.go:476-542 | pkg/api/handlers/libpod/system.go:20-59 | pkg/api/handlers/libpod/volumes.go:276-313 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df9b0030d188462ef12bb95efb2fc7e8872b6177a5f5b5e1a8d09e7462118c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): pkg/api/handlers/compat/containers_prune.go:20-69 | pkg/api/handlers/compat/images_prune.go:21-75 | pkg/api/handlers/compat/networks.go:258-293 | pkg/api/handlers/compat/secrets.go:21-52 | pkg/api/handlers/compat/volumes.go:25-93 | pkg/api/handlers/libpod/networks.go:77-101 | pkg/api/handlers/libpod/volumes.go:118-135 \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/api/handlers/compat/containers_prune.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bef6f486575b186db570c866b1cb4e64eb102a24ab8b0df4f8a0663aa6dde47"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): cmd/podman/containers/init.go:66-84 | cmd/podman/containers/kill.go:83-122 | cmd/podman/containers/pause.go:88-124 | cmd/podman/containers/restart.go:95-136 | cmd/podman/containers/stop.go:103-158 | cmd/podman/containers/unpause.go:86-123 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/init.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bf0496cd0635e1aa807c07a18baa88163ba4233678e527425813ccd7d0814b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): pkg/domain/infra/abi/pods.go:61-90 | pkg/domain/infra/abi/pods.go:132-156 | pkg/domain/infra/abi/pods.go:158-190 | pkg/domain/infra/abi/pods.go:192-219 | pkg/domain/infra/abi/pods.go:221-245 | pkg/domain/infra/abi/pods.go:247-275 \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/domain/infra/abi/pods.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5517ea90483d47fbbe0d04186766f79573c41622a5f6311c20559d9e1436aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): cmd/podman/containers/pause.go:88-124 | cmd/podman/containers/restart.go:95-136 | cmd/podman/containers/rm.go:103-140 | cmd/podman/containers/stop.go:103-158 | cmd/podman/containers/unpause.go:86-123 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/pause.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d457bd8742b3c9f3ff2206976c0c11f2f11b868fcfe917113231f002990beeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): pkg/api/handlers/compat/containers.go:242-309 | pkg/api/handlers/compat/secrets.go:54-97 | pkg/api/handlers/libpod/containers_stats.go:19-83 | pkg/api/handlers/libpod/kube.go:262-286 | pkg/api/handlers/libpod/system.go:74-116 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62d99106a6f5992748d612a8fe511451446cf0b7300406a384acb6653a9eb63"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): pkg/api/handlers/libpod/networks.go:21-54 | pkg/api/handlers/libpod/networks.go:103-146 | pkg/api/handlers/libpod/networks.go:149-171 | pkg/api/handlers/libpod/networks.go:205-225 | pkg/api/handlers/libpod/networks.go:228-255 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/networks.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f839fe964000ce5da9953878bd620a87a3d74c15269719371eadc72f8b255129"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): pkg/api/handlers/libpod/pods.go:110-128 | pkg/api/handlers/libpod/pods.go:196-238 | pkg/api/handlers/libpod/pods.go:284-308 | pkg/api/handlers/libpod/pods.go:335-359 | pkg/api/handlers/libpod/pods.go:361-385 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/pods.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb1d5711fe9f6ea6a8a87783a13a76ae9876f75fa697c4cebbf905a6ebaaa81"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): pkg/bindings/containers/containers.go:105-125 | pkg/bindings/containers/diff.go:12-33 | pkg/bindings/generate/generate.go:13-34 | pkg/bindings/images/images.go:85-105 | pkg/bindings/secrets/secrets.go:33-52 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5978dc10efd9be8928400576e9a8f7ee18955f0b66f94ed6651a173081c61474"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): pkg/bindings/containers/containers.go:130-149 | pkg/bindings/containers/containers.go:174-193 | pkg/bindings/containers/containers.go:198-217 | pkg/bindings/containers/rename.go:11-30 | pkg/bindings/volumes/rename.go:11-30 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db0aaf37382bab24410b1d375ef7c718a5f9dc30902b03f789319dbc5cecabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): cmd/podman/common/completion.go:179-199 | cmd/podman/common/completion.go:201-222 | cmd/podman/common/completion.go:358-379 | cmd/podman/machine/machine.go:116-137 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e6cec55cf36acdafb6aad321bf7bcbec14f0cca5e0b655a6d3cc6cf7796a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): libpod/container_api.go:44-78 | libpod/container_internal.go:805-850 | libpod/container_internal.go:1191-1240 | libpod/container_internal.go:1682-1743 \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":"libpod/container_api.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"18979e3ca0b90e1964e2abe9f130b64dc902ebea01bfb1fe6e58b3de5cf415ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): libpod/container_exec.go:616-650 | libpod/container_exec.go:654-717 | libpod/container_exec.go:721-761 | libpod/container_exec.go:765-814 \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":"libpod/container_exec.go"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"66119f5a59380b931fc37f12d3eec6c71115e92a52243c54818bf8188404cfa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): pkg/api/handlers/libpod/artifacts.go:79-164 | pkg/api/handlers/libpod/artifacts.go:246-267 | pkg/api/handlers/libpod/artifacts.go:269-307 | pkg/api/handlers/libpod/images.go:452-494 \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/api/handlers/libpod/artifacts.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9231155d9ca208c79815d6372573f2df4ec241905a0a96cd0be4efd78cf0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): pkg/specgen/generate/config_freebsd.go:20-95 | pkg/specgen/generate/config_linux.go:27-97 \u2014 These two members are one piece of code written twice and then edited apart: 71 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/specgen/generate/config_freebsd.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc96992dcfae35a187c2c5d6baec1c9c1c2b15603db0a89a636d0275cf08dd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): pkg/api/handlers/libpod/images.go:179-256 | pkg/api/handlers/libpod/images.go:328-421 \u2014 These two members are one piece of code written twice and then edited apart: 78 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/api/handlers/libpod/images.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bae8191d52ed6e51ba157789c7a923cb6e5f75b4cbf599e1053b727d0f05eca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (98 corresponding lines): libpod/container_internal_freebsd.go:36-133 | libpod/container_internal_linux.go:61-174 \u2014 These two members are one piece of code written twice and then edited apart: 98 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":"libpod/container_internal_freebsd.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dd52f90825427372dfaaaa8289b4d720865f5f15bbfd4e8cb96643f765eaba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): libpod/sqlite_state.go:1703-1769 | libpod/sqlite_state.go:2047-2113 \u2014 These two members are one piece of code written twice and then edited apart: 67 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":"libpod/sqlite_state.go"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee49942eba6f72b1425ddaab60a60b2fdbb36c0f9119f217e87a256ed1fcd95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): pkg/bindings/images/push.go:24-101 | pkg/bindings/manifests/manifests.go:240-313 \u2014 These two members are one piece of code written twice and then edited apart: 74 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/bindings/images/push.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d15291ade3874aa87d35245401362b4d031af954e23babcbb9fbaa3d12d81e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): pkg/api/handlers/compat/containers_restart.go:18-69 | pkg/api/handlers/compat/containers_stop.go:19-85 \u2014 These two members are one piece of code written twice and then edited apart: 52 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/api/handlers/compat/containers_restart.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c670b4000239407555f6c87c7a4bc3077a09a1c9b371724cc00656ff7a39fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): pkg/api/handlers/libpod/artifacts.go:185-233 | pkg/api/handlers/libpod/quadlets.go:340-396 \u2014 These two members are one piece of code written twice and then edited apart: 49 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/api/handlers/libpod/artifacts.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"03681dd67b3cb01a74a02ac11f0b649f36bd73ee24eb31b94c7612b3c3af8f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): pkg/domain/infra/abi/manifest.go:196-251 | pkg/domain/infra/abi/manifest.go:344-399 \u2014 These two members are one piece of code written twice and then edited apart: 56 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/domain/infra/abi/manifest.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9003e7b7dcbcae63bf7f673f6e8d77cd5424dd6520a0bbc19797b4d6fa9043"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): pkg/api/handlers/libpod/images.go:780-818 | pkg/api/handlers/libpod/manifests.go:751-791 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/images.go"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31b9f1f0464306c0756ab3b779f54d7ef600fe13bbeb761f62964ab95aee4f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): libpod/sqlite_state.go:644-699 | libpod/sqlite_state.go:2336-2386 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4810dbf01ac53cd5c77dd2f93ea0e7d9177abaeb8a6cebc0a3d48e6defcf6e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): pkg/domain/infra/tunnel/manifest.go:56-94 | pkg/domain/infra/tunnel/manifest.go:97-130 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/manifest.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca5737f65f8d62a846c1ad9c241f04c94df509533ec78bf89063b6c6b0fbe3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): pkg/specgenutil/volumes.go:671-721 | pkg/specgenutil/volumes.go:725-770 \u2014 These two members are one piece of code written twice and then edited apart: 46 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/specgenutil/volumes.go"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"754722b18623858dca395fac3b5b9878032b820fc92286962807e4e3f8b71bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 52\u002B corresponding lines): libpod/boltdb_state.go:135-186 | libpod/boltdb_state.go:437-489 | libpod/boltdb_state.go:545-598 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 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":"libpod/boltdb_state.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58efc71ebf3c2ae309fff682b82663301ea41701b57b11c6291beb6249de178"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): pkg/domain/infra/abi/containers.go:563-614 | pkg/domain/infra/abi/pods.go:525-570 \u2014 These two members are one piece of code written twice and then edited apart: 46 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/domain/infra/abi/containers.go"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"94583cfad9cdae06429bbf54e62d5afc09e1d719e82dc9c7008410ef105d0956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): libpod/boltdb_state_internal.go:192-248 | libpod/sqlite_state_internal.go:278-323 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"libpod/boltdb_state_internal.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"061ba537081c6fbb724b17a15135edc9bcdff8b23c3a8199d4d275c6dbe83d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 37\u002B corresponding lines): libpod/sqlite_state.go:773-817 | libpod/sqlite_state.go:1310-1354 | libpod/sqlite_state.go:1359-1403 | libpod/sqlite_state.go:1966-2010 | libpod/sqlite_state.go:2211-2255 | libpod/sqlite_state_internal.go:366-402 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe905e56a1889ba744000c8d58b981185564511f47614fc4c3c7b6b17c1c2eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): pkg/api/handlers/libpod/pods.go:240-282 | pkg/api/handlers/libpod/volumes.go:179-211 \u2014 These two members are one piece of code written twice and then edited apart: 33 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/api/handlers/libpod/pods.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff151858290514cc4cba1b21debbcdc02d95f2246ba62877237f37b6cad99b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): pkg/namespaces/namespaces.go:64-105 | pkg/util/utils.go:909-958 \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/namespaces/namespaces.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d772f1023b60a37f9418de937d8d685373a5f1a44a41ad0a6c1229db3d72309"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): libpod/pod_api.go:75-120 | libpod/pod_api.go:450-493 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"libpod/pod_api.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df3d7ad395d2c169d28812a87225edfb3f24343393901fbadee4e6123142c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): cmd/podman/containers/mount.go:82-127 | cmd/podman/images/mount.go:61-99 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/mount.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d22326245c1bb8910a5e3b52a850f3b4e40af1c45cebe23b4f30506564108c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): libpod/kube.go:123-176 | libpod/kube.go:180-235 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/kube.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d0471be32c9e69067fac8509192c9653599258ede388ab1e8ad2b18a151512"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): libpod/boltdb_state.go:384-434 | libpod/boltdb_state.go:492-542 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/boltdb_state.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54a8753f90d2575703ed03823974d9d9c0b2a8c11f1f049a03751ddf26b614e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): pkg/systemd/quadlet/quadlet.go:1394-1445 | pkg/systemd/quadlet/quadlet.go:2498-2540 \u2014 These two members are one piece of code written twice and then edited apart: 43 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/systemd/quadlet/quadlet.go"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa7d7b1ec6a171cab60275f58614a086de8be4a03381a715c1b66d5ad13fc4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): cmd/podman/networks/rm.go:52-82 | cmd/podman/volumes/rm.go:52-84 \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":"cmd/podman/networks/rm.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc373d8928855f4d4e2ab6e6db10894f18976cea6f234809662dc9b05a7b2e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): pkg/api/handlers/compat/containers.go:208-240 | pkg/api/handlers/libpod/containers.go:127-157 \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/api/handlers/compat/containers.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd8bd0f1b23b16f67d6777e79e6e8ecc3a823da35640c4d26657093454bc509"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): libpod/sqlite_state.go:602-640 | libpod/sqlite_state.go:1518-1560 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb1913eb181049ed9bb5597bea46a224fad8ecefffcabfe816e4e5c6c9f7619"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): pkg/api/handlers/libpod/images.go:78-103 | pkg/api/handlers/libpod/kube.go:235-256 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/images.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"defd3264584bb3e0c8d5ac86eb657356af6923a6e2c6184d20084323c6c19062"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): cmd/podman/machine/info.go:53-93 | cmd/podman/system/info.go:77-120 \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":"cmd/podman/machine/info.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9caaf82c100d91a6e9b2640f7fa8f934896a0db770e04d951c6cf6fdb3335699"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): pkg/domain/infra/tunnel/containers.go:92-115 | pkg/domain/infra/tunnel/containers.go:117-140 | pkg/domain/infra/tunnel/containers.go:189-213 | pkg/domain/infra/tunnel/containers.go:987-1013 \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/domain/infra/tunnel/containers.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a098f42811d7bd3410fdcab37f4c028ceb2e589ee177ea6cba43e2bf32f855c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): cmd/podman/common/completion.go:144-177 | cmd/podman/common/completion.go:291-317 | cmd/podman/common/completion.go:328-356 \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":"cmd/podman/common/completion.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41cecc97e434ba33e0eb58de7fa2355f9d0c47eeacebddcec829dad595d25b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): libpod/sqlite_state.go:1130-1160 | libpod/sqlite_state.go:1258-1288 \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":"libpod/sqlite_state.go"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d1cac09c6172791aa8581e4fee759449a918e347126f18a67ffdad3373d739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): pkg/bindings/auto-update/auto-update.go:16-54 | pkg/bindings/manifests/manifests.go:80-112 | pkg/bindings/manifests/manifests.go:117-149 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/auto-update/auto-update.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42af9372a3513cc332c1b7037fd02928851cca49dc330aec136c9842feb2616"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): pkg/bindings/artifacts/pull.go:13-52 | pkg/bindings/artifacts/push.go:13-45 | pkg/bindings/images/images.go:288-325 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/artifacts/pull.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70cd9b3707a4a8bda74ebb9b4538a16607dad6f15daf365d974ff0b76343eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): cmd/podman/registry/config.go:181-219 | libpod/runtime.go:134-171 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/registry/config.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f5b2e81e575f6d612e27a4ca2c981ef534faabf31e2322eacd5a86720cfa35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): pkg/api/handlers/compat/networks.go:530-554 | pkg/api/handlers/libpod/networks.go:174-202 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/networks.go"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e0f643b2a61ddf9e31289d17fd778fbaaa2fc7f8a7db0188019141498501a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): pkg/domain/infra/abi/containers.go:943-970 | pkg/domain/infra/abi/containers.go:972-1000 \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/domain/infra/abi/containers.go"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"189a7479e96b127892d86ea94571f56ad81c32ab24e4889b816681e931a33dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): cmd/podman/containers/pause.go:17-53 | cmd/podman/containers/stop.go:18-56 | cmd/podman/containers/unpause.go:17-51 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/pause.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee883493a17eeedc1bee4162ee61c2a16d81e2ca2a177ae57699dc8da7b367c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/domain/infra/tunnel/images.go:40-65 | pkg/domain/infra/tunnel/images.go:102-118 \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/domain/infra/tunnel/images.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d0bb4ecf983ea7336f3eeff45bc50b9738717ebee4ca859bccb7edbc9ce795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): libpod/plugin/volume_api.go:287-315 | libpod/plugin/volume_api.go:318-350 | libpod/plugin/volume_api.go:374-406 | libpod/plugin/volume_api.go:411-443 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 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":"libpod/plugin/volume_api.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"947f6f8ffc083cba32d62fcace7c07f4c2822287710444f7555ca5a4f4b443e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): pkg/domain/infra/abi/terminal/sigproxy_commn.go:19-49 | pkg/domain/infra/abi/terminal/sigproxy_commn.go:52-86 \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/domain/infra/abi/terminal/sigproxy_commn.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"006f177aedd70033c0400abf8dbab43b9b4240aa8ab7f05f93c6d0906da0335f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): libpod/sqlite_state.go:1226-1254 | libpod/sqlite_state.go:1606-1644 | libpod/sqlite_state.go:2418-2446 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"libpod/sqlite_state.go"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"150e03a3a667678407036c93f39270e210b08aef155169d29317c25016f9ef89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): pkg/domain/infra/tunnel/images.go:150-172 | pkg/domain/infra/tunnel/images.go:174-203 \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/domain/infra/tunnel/images.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4f270fa081144d90947742d0ad2afea5195c9aa821e5f06ee8cec6f03f7f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): cmd/podman/artifact/list.go:195-225 | cmd/podman/machine/list.go:107-139 | cmd/podman/secrets/list.go:101-128 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"cmd/podman/artifact/list.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"617efb4446ea971b3dc2a1159173dffd3ab5b52b6c9a116062542a10e5267f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): cmd/podman/parse/net.go:102-134 | pkg/env/env.go:91-119 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/parse/net.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbd5e71c6ad82cad86e9d72c00638f80f6d155fb45e83c6ff84812977174519"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): pkg/lookup/lookup.go:111-137 | pkg/lookup/lookup.go:144-172 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/lookup/lookup.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d5bb383564c41b33df239c569365b373ed13d1148eb2de091774e41d294960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): pkg/domain/infra/abi/containers.go:254-273 | pkg/domain/infra/abi/containers.go:275-294 | pkg/domain/infra/abi/containers.go:409-433 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/containers.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"202b0ffd37c3f03b0ed6182178b6a6778a74444dd56e711d2cf4a37249fe9d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): pkg/systemd/parser/unitfile.go:704-734 | pkg/systemd/parser/unitfile.go:737-767 \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/systemd/parser/unitfile.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c5ccd487900661343edec02ccc9ca2678a1801f2e8057ccb16ceb5b803328b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): libpod/sqlite_state.go:742-770 | libpod/sqlite_state.go:1935-1963 | libpod/sqlite_state.go:2180-2208 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"libpod/sqlite_state.go"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"644926483c3470fc8c59581614603b6c3e03cc678c820cb6238c69884e681994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): cmd/podman/containers/restart.go:17-53 | cmd/podman/containers/rm.go:21-59 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/restart.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"652bd3afc49ee080cc059333679470296fb069ea8909d354800b77e76ab7bc4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): cmd/winpath/main.go:85-127 | cmd/winpath/main.go:130-168 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/winpath/main.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf808f4e612c49a96d48065deafb03395ee9251aa737c91e4738900aa6b490ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): pkg/machine/hyperv/hutil.go:61-93 | pkg/machine/hyperv/hutil.go:96-127 \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/machine/hyperv/hutil.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f63482a15f2a6684583a56be901bb512cff46d508fc96266f8d823653985f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): pkg/domain/infra/abi/play.go:665-687 | pkg/domain/infra/abi/play.go:713-735 \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/domain/infra/abi/play.go"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"9572f6622d7ceea4410d7a76c97008abb3229f59ec4f0e9efe592e6ba396d6b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): cmd/podman/containers/prune.go:48-75 | cmd/podman/networks/prune.go:54-78 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/prune.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d49974bee5578f703198075b697094480eecda96c6b3d4b61b61825cfbbaedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): pkg/specgenutil/specgen.go:1108-1132 | pkg/specgenutil/specgen.go:1134-1154 | pkg/specgenutil/specgen.go:1156-1173 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0000d73ac6edf58c5cd09901ceedd08b6810be6ad45c96f504e47f1e8c55b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): libpod/lock/shm/shm_lock.go:42-66 | libpod/lock/shm/shm_lock.go:71-93 \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":"libpod/lock/shm/shm_lock.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3ad82f8164b75409a8a9ff741d544f032e88264a23a9b29309944ba2178c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): libpod/runtime.go:763-784 | libpod/runtime.go:797-818 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8319dc83f2d7b05b114b211dfbfe352f65682baa256107ebb9125ef3bfd8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): cmd/podman/artifact/list.go:164-193 | cmd/podman/images/list.go:161-192 \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":"cmd/podman/artifact/list.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc2fc5181dcad37858ee7e45b7bd00a4dd9cc70d783fcc10464403b8de871f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 20\u002B corresponding lines): pkg/domain/infra/tunnel/pods.go:20-45 | pkg/domain/infra/tunnel/pods.go:57-76 | pkg/domain/infra/tunnel/pods.go:78-101 | pkg/domain/infra/tunnel/pods.go:103-128 | pkg/domain/infra/tunnel/pods.go:130-149 | pkg/domain/infra/tunnel/pods.go:151-171 | pkg/domain/infra/tunnel/pods.go:173-196 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/pods.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e996b250b21dd89410b9d5061e144123e8ba8a6b8817538ece254cd31777ca7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): pkg/specgen/namespaces.go:152-186 | pkg/specgen/namespaces.go:201-226 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/namespaces.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d260e05408abe8a667d352490f2abcb8a8a7f04128a2722b70f2038e3dc0b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): libpod/container_inspect.go:652-676 | libpod/container_inspect.go:678-700 \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":"libpod/container_inspect.go"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a129dc76ec930ac456b438e4c1123b58b8d17512890bcbf72a70fd7e8a381c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): cmd/podman/containers/mount.go:129-151 | cmd/podman/images/mount.go:101-124 \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":"cmd/podman/containers/mount.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da608c2f9922b5e9591fcfd733ec204afd75aff9b9b718f6869a5731fceac71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): libpod/sqlite_state.go:1578-1603 | libpod/sqlite_state.go:2390-2413 \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":"libpod/sqlite_state.go"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"479119164b604d1654ef4244de6427fb0432c001ab17cb7df56ec8be7b9409a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 20\u002B corresponding lines): pkg/domain/infra/tunnel/containers.go:324-346 | pkg/domain/infra/tunnel/images.go:205-225 | pkg/domain/infra/tunnel/network.go:25-47 | pkg/domain/infra/tunnel/pods.go:230-249 | pkg/domain/infra/tunnel/secrets.go:29-51 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/containers.go"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ba9a153ac70ca7e0defb8c234194d52d7f41deaca7428696f03b3178516e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): cmd/podman/images/unmount.go:51-71 | cmd/podman/secrets/rm.go:34-51 \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":"cmd/podman/images/unmount.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bd11776af8c4fa0c921ca0ba2cdf00502df161e67fc61a371f420b1a7ff5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/api/handlers/libpod/artifacts.go:27-46 | pkg/api/handlers/libpod/artifacts.go:166-183 \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/api/handlers/libpod/artifacts.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec0b5530ebd17385479a902c4d77799863f9dee15b172823986535780f62a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): pkg/bindings/containers/containers.go:26-46 | pkg/bindings/network/network.go:114-134 \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/bindings/containers/containers.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce3fb7ba27463da7b0ed18397552ca188370a5cd31a75cfc7f3bd047d12da63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): pkg/bindings/containers/create.go:14-36 | pkg/bindings/network/network.go:137-168 | pkg/bindings/network/network.go:171-197 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/create.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53c22192ff20d9671a71ee144197b7b673fad73c64f73dab557f34ea70aebab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): cmd/podman/containers/pause.go:55-71 | cmd/podman/containers/unpause.go:53-69 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/pause.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc45b70a1c68206ebec54e9464d113a0200a93b9dfe10431d003d82bcf47ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): pkg/bindings/containers/clone.go:15-38 | pkg/bindings/containers/exec.go:56-80 \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/bindings/containers/clone.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd0340974e99038a3d4dd5a7c93ce33a67e2b109767355e59390e2da2a7eb4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): cmd/podman/machine/restart.go:43-67 | cmd/podman/machine/start.go:47-70 | cmd/podman/machine/stop.go:33-53 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"cmd/podman/machine/restart.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef6190b1a984adebeb3c32e7c4fdc489bfc8b9fd97e1f57b64824eb1a7deaa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): pkg/api/handlers/libpod/artifacts.go:48-63 | pkg/api/handlers/libpod/images.go:61-76 | pkg/api/handlers/libpod/manifests.go:150-165 | pkg/api/handlers/libpod/quadlets.go:71-87 | pkg/api/handlers/libpod/secrets.go:55-70 | pkg/api/handlers/libpod/volumes.go:214-229 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/artifacts.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f8eb29ef57ad71477ebc421a8615a3db8198a21738401c37d506d8df024931"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/bindings/images/images.go:349-365 | pkg/bindings/volumes/volumes.go:138-155 \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/bindings/images/images.go"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbdb1321697a52c941e3109728f23052389028e047dacbc8d448f00520098e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): libpod/events.go:99-118 | libpod/events.go:121-137 \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":"libpod/events.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be80d74005a034a44b918151ebe31619fc02a1584416892e63b3df3eff37720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/api/handlers/libpod/volumes.go:232-248 | pkg/api/handlers/libpod/volumes.go:251-273 \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/api/handlers/libpod/volumes.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41352b55600e404b6d3febf59bedb79e11b40c8b8b90a3ced382a496588f06f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): pkg/machine/ports/ports.go:120-136 | utils/ports.go:10-25 \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/machine/ports/ports.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9efec7b09788504a329f7692378e7c7343637603660d61c272aa4afd7b03cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): libpod/sqlite_state.go:1073-1095 | libpod/sqlite_state.go:1496-1515 \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":"libpod/sqlite_state.go"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb21f73dc501b28da4170730b890f08c62900aac8dfb8812f6b985d8488315b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): libpod/boltdb_state.go:107-131 | libpod/boltdb_state.go:351-381 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/boltdb_state.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3d9dc3fc095ebcffacbf2a4bcce0f55e521b49511de2e0e2a092f5edff56c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): pkg/checkpoint/crutils/checkpoint_restore_utils.go:25-44 | pkg/checkpoint/crutils/checkpoint_restore_utils.go:49-74 \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/checkpoint/crutils/checkpoint_restore_utils.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cd8279be39ed0dbfb61bdefe8ae89a5aa5d6e25c16fe9a836985a031303fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): pkg/machine/ports/ports_unix.go:10-28 | pkg/machine/ports/ports_windows.go:10-28 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/ports/ports_unix.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db50b6f89834eb5ad121c68ce9e9be1f6edb0ae7f3726994bd2a172e6e9d44f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/domain/infra/tunnel/containers.go:348-361 | pkg/domain/infra/tunnel/pods.go:210-223 \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/domain/infra/tunnel/containers.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b74781c4fbd0935e99d66a839030985c740f970f5a423336cd8f808e85d3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): libpod/runtime_ctr.go:1312-1330 | libpod/runtime_pod.go:113-131 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_ctr.go"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6447fbab5c7debed0870fe5dba72e3f316c78499ce9bed79136d83789c67447d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): pkg/bindings/containers/containers.go:389-411 | pkg/bindings/containers/containers.go:415-436 | pkg/bindings/containers/containers.go:441-460 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed2dc22e4691c748df8e110dd02f883d91b35b65464b46f3a4e6fdfd20bae02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): libpod/plugin/volume_api.go:266-284 | libpod/plugin/volume_api.go:353-371 | libpod/plugin/volume_api.go:447-465 \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":"libpod/plugin/volume_api.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"710c5081d66cc4e235d9fd8c34f2644d8afa945f22b6a1200fc3164c477b3400"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): pkg/bindings/artifacts/add.go:47-65 | pkg/bindings/artifacts/inspect.go:11-29 | pkg/bindings/artifacts/remove.go:12-35 \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/bindings/artifacts/add.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"75db271f4053a5f6df843b09ed63fff51bdf28f2c139ffbbe4cf5a6d84f83c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): pkg/bindings/containers/attach.go:279-300 | pkg/bindings/kube/kube.go:146-168 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/attach.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5f3ce9571f89e14f52bea7939c8336fbec725fe4dbe63c9a8f725d127eed2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): pkg/machine/provider/platform_unix.go:18-34 | pkg/machine/provider/platform_windows.go:17-32 \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/machine/provider/platform_unix.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be8320a20b48605d3ce986b3f6e6d2db3cfc1d674431232aa55692521771047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): pkg/bindings/containers/containers.go:52-72 | pkg/bindings/network/network.go:91-111 | pkg/bindings/network/network.go:215-236 | pkg/bindings/secrets/secrets.go:71-90 | pkg/bindings/volumes/volumes.go:83-100 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aa823f32ade23c24339641deb9d800058d660665176fb3687cb5625724f2c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): pkg/domain/infra/abi/containers.go:616-636 | pkg/domain/infra/abi/pods.go:407-427 \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/domain/infra/abi/containers.go"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f06523d6b8eef348bf85a2feb35db474d275538f227b16e2f81222bc5228fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): libpod/container_internal_freebsd.go:136-161 | libpod/container_internal_linux.go:177-208 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_freebsd.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f4065abf90c2971f25c56114a27025c5a1e15fb14d2435d3589f6fa0ac2faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): pkg/bindings/containers/healthcheck.go:13-30 | pkg/bindings/containers/mount.go:52-69 | pkg/bindings/system/system.go:153-170 | pkg/bindings/volumes/volumes.go:17-39 | pkg/bindings/volumes/volumes.go:42-59 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/healthcheck.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ec5312b0528dd8b47284086ea5e729fe38bab7b792a3df65189a0ecee69a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/domain/infra/abi/volumes.go:220-234 | pkg/domain/infra/abi/volumes.go:236-250 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/volumes.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2a221bc7621d8d1ab4f40e4f577a9fc380eef842b68629144bd01cf98d7db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): cmd/podman/containers/cleanup.go:17-38 | cmd/podman/networks/reload.go:15-32 \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":"cmd/podman/containers/cleanup.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50b5c258bdebd49c4ccd57f912a5f7eb4c3990c9016606ac0dd72932b1e70a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): libpod/container_path_resolution.go:207-224 | libpod/container_path_resolution.go:244-261 \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":"libpod/container_path_resolution.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2107cdf787428c6481d070ff1dacb84e58e9e1e8138e7126ebff9cc4d0daa201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): libpod/runtime_ctr.go:1396-1409 | libpod/runtime_ctr.go:1425-1443 \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":"libpod/runtime_ctr.go"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23d7ed61ff90c0d5032fe8ccb94479d468349240c7e051fb920e61ad3cebad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): pkg/bindings/containers/containers.go:79-99 | pkg/bindings/containers/mount.go:12-29 | pkg/bindings/images/images.go:108-125 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab59bfd2628582b4f1434e7a88858057eb2c3d729457198f28efdc48d305d675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): libpod/sqlite_state.go:525-546 | libpod/sqlite_state.go:550-571 | libpod/sqlite_state.go:1164-1184 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"libpod/sqlite_state.go"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae42d176e3c36efdbb26f667f96c42bfb7ed63fc22660f95d3e7977f8048e700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): pkg/machine/provider/platform.go:10-29 | pkg/machine/shim/host.go:398-416 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/provider/platform.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1a35ef0734c95259553110b29e0786c4990fb8ef868a81b41787898bf32039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 15\u002B corresponding lines): pkg/api/handlers/compat/containers_export.go:14-32 | pkg/api/handlers/compat/containers_pause.go:13-31 | pkg/api/handlers/compat/containers_unpause.go:13-31 | pkg/api/handlers/libpod/containers.go:163-178 | pkg/api/handlers/libpod/containers.go:180-194 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 15 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/api/handlers/compat/containers_export.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df4a84c401316523e91d1eff53351a3de43350eb43604a04c649466091da6b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): libpod/container_api.go:539-557 | libpod/container_api.go:560-575 | libpod/container_api.go:579-595 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_api.go"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6690497352d77faac1186343b0800b09849630fa033ed89920c56dfc1a197a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): libpod/lock/shm/shm_lock.go:171-187 | libpod/lock/shm/shm_lock.go:212-232 | libpod/lock/shm/shm_lock.go:240-263 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/lock/shm/shm_lock.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1a8dd67eba4784f7964a0bddf3ce3fba4d3b4a9b3babf8a70df483646bc105"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): pkg/bindings/containers/containers.go:153-169 | pkg/bindings/containers/containers.go:320-336 | pkg/bindings/containers/mount.go:33-49 | pkg/bindings/images/images.go:216-235 | pkg/bindings/images/images.go:238-257 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9761964887dd61dd2d2aaf4daaba969d132ac19e7fc19b2dfd9b9b343b3e63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/domain/infra/abi/artifact.go:267-284 | pkg/domain/infra/abi/artifact.go:286-304 \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/domain/infra/abi/artifact.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5f1afb8d773033060f0e1a93160390863c1da33ff639330a269d2c9bf5e9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): cmd/podman/artifact/inspect.go:28-47 | cmd/podman/containers/inspect.go:27-41 | cmd/podman/images/inspect.go:27-38 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/inspect.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3c62cf66574deb4da7cb8b18ab0513c0308c3a710d466e479e751b5e209111"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): libpod/container.go:968-984 | libpod/container.go:1446-1468 \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":"libpod/container.go"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c8fa08ffcb972026921c61ebf3533d5ad5b00498a8d92df2ebe32b6e729f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): cmd/podman/containers/rm.go:178-188 | cmd/podman/networks/rm.go:84-90 | cmd/podman/volumes/rm.go:86-92 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/rm.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed96fc117e43b68d791e51a97569524e947836372337780e5da6863f49ebf029"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): pkg/domain/infra/abi/farm.go:47-58 | pkg/domain/infra/tunnel/farm.go:38-48 \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/domain/infra/abi/farm.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"166c7bee768f8a1773dc049ee34482a3053e254104ab64be173ddef7fe0a867b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): cmd/podman/containers/unmount.go:77-92 | cmd/podman/volumes/mount.go:37-51 | cmd/podman/volumes/unmount.go:33-47 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"cmd/podman/containers/unmount.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"040e60a54c6adbeb1e18e5b7a0981db3c1436002dcaa6bf509b6c807338493fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): libpod/sqlite_state.go:2450-2468 | libpod/sqlite_state_internal.go:637-649 | libpod/sqlite_state_internal.go:656-668 \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":"libpod/sqlite_state.go"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"62954cb10d926da726c4aea2c020aed8386de9953faccad78d17bf0134eb2506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/api/handlers/libpod/pods.go:319-333 | pkg/domain/infra/abi/pods.go:299-312 \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/api/handlers/libpod/pods.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b65f69063d629fd3416f4f82da37568d33925707f206177ce55f1065df8c1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): cmd/podman/common/format.go:10-21 | libpod/sqlite_state_internal.go:670-684 \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":"cmd/podman/common/format.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f3e9d448b9425acbac1cabef56cead3f13cec9ca89353a7539828e0343ed2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): cmd/podman/containers/diff.go:30-44 | cmd/podman/diff.go:33-44 \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":"cmd/podman/containers/diff.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"635d54a5c6e4dd581efe48a59f3731db0e2d53c7cf38d02eae3fb0b89b89b640"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): libpod/container_internal_common.go:2506-2523 | libpod/container_internal_common.go:2527-2544 \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":"libpod/container_internal_common.go"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e138b8d0878b7234860a81208d2bc6aa48930f7e8eabb25f2c71a63a724d27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): pkg/api/handlers/libpod/info.go:14-23 | pkg/api/handlers/libpod/system.go:61-72 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/info.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e612ab204cf1680f171ec433bf3f99f07b458d3313027c2f6665230537ee4b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/machine/env/dir.go:16-27 | pkg/machine/env/dir.go:110-121 \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/machine/env/dir.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c9fcb3a7adb6aa1bdaec13e55baabb75ff0705444d1b2d39381358aaa20840"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): libpod/oci_conmon_common.go:431-438 | libpod/oci_conmon_common.go:441-448 | libpod/oci_conmon_common.go:451-458 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"362ee91c282a400a4ad31fa2a139e01d524930eefa914df99d21dbcb21709512"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): libpod/runtime.go:1211-1229 | pkg/specgen/generate/oci_linux.go:29-46 \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":"libpod/runtime.go"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d08ca336460378d322db0743c9a557a8f1c4ecf95378f8a7627d164b993783"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): libpod/container_api.go:470-487 | libpod/container_api.go:1036-1051 \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":"libpod/container_api.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6306921a5d7f7f2b88e384ab3d87d507b7b97b2bf89e4079fdcd507f679dc552"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): cmd/podman/common/completion.go:1015-1031 | cmd/podman/common/completion.go:1034-1052 | cmd/podman/common/completion.go:1914-1925 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a5a32845a397eedc46d9772626467bc0cb0220b740330b2f5b5382789a377d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): pkg/bindings/artifacts/exists.go:11-29 | pkg/bindings/images/images.go:22-34 | pkg/bindings/manifests/manifests.go:65-77 | pkg/bindings/network/network.go:200-212 | pkg/bindings/secrets/secrets.go:92-104 | pkg/bindings/volumes/volumes.go:123-135 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/artifacts/exists.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a485356bf62d9612adfc3944dcf0cfb182ee036f80469903dab14834e0310013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libpod/oci_conmon_common.go:718-731 | libpod/oci_conmon_exec_common.go:195-207 \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":"libpod/oci_conmon_common.go"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"51febabb436073f1f01b662186695925f1fe68edc9d9c61d234f6686b94eaaa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): pkg/systemd/generate/containers.go:26-120 | pkg/systemd/generate/pods.go:25-129 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/generate/containers.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9352204104ec3163ba081450d5d0f715d9b66cc8d6c8eeba38b87a383461bd6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): pkg/bindings/artifacts/list.go:12-30 | pkg/bindings/images/images.go:127-140 | pkg/bindings/system/info.go:12-25 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/artifacts/list.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c02db187fc0cddbbae28a1ade3152cdb3808ba3fdafb64470a559a3d4c473ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): libpod/util_linux.go:58-76 | libpod/util_linux.go:79-98 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/util_linux.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a2af41d203db2b73229de604224a9a43f20efe879bd63c86cac781b5a369c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): pkg/machine/wsl/machine.go:422-431 | pkg/machine/wsl/machine.go:433-445 | pkg/machine/wsl/machine.go:447-456 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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/machine/wsl/machine.go"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e59383d4358cf5d8973ab5133ec46b7fb0556a62e977295d7a2d3e75a25edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): libpod/container_internal_freebsd.go:304-311 | libpod/container_internal_linux.go:589-596 \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":"libpod/container_internal_freebsd.go"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75e6161038a4e529b83b612ab249016a7cd8e717f91017c44595b75a03ee09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): libpod/options.go:1393-1409 | libpod/options.go:1412-1429 \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":"libpod/options.go"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"156939a237f216d0150354e6a44765cf1d254647250b7eeb6cfc2361b3edce17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): libpod/healthcheck.go:448-463 | pkg/trust/policy.go:127-137 \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":"libpod/healthcheck.go"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcee450a79cd6d762c8d2aa7423a7eb051c53e139a2dfdb1c826050a0450418"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/auth/auth.go:307-320 | pkg/copy/fileinfo.go:41-54 \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/auth/auth.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"659c390a404ece13bbad0c1cabc88049b81ab030f11c63a4868293c124d1b69c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/autoupdate/autoupdate.go:81-97 | pkg/seccomp/seccomp.go:37-53 \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/autoupdate/autoupdate.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5854b057b9c4ee26875ff6e5dc4aed5085551e1c242ddba45705fc18504b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): pkg/bindings/network/network.go:54-70 | pkg/bindings/volumes/volumes.go:104-120 | pkg/bindings/volumes/volumes.go:158-171 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/network/network.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a51eb416dc472c65c67f04836b94aaff3fc94020b6efeb708b9ff6f36d9721f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/systemd/parser/unitfile.go:911-923 | pkg/systemd/parser/unitfile.go:925-937 \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/systemd/parser/unitfile.go"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8cc7743108e6c712968d3273f980d69a1f68b78f78de13841925e87ce4b294"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): internal/domain/infra/abi/testing.go:191-200 | internal/domain/infra/abi/testing.go:202-211 | internal/domain/infra/abi/testing.go:213-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/domain/infra/abi/testing.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dacfc2306ccb2727544e11670c561ffb78a84c6bf6b6850ae2e13a128c1107e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): libpod/pod.go:217-227 | libpod/pod.go:230-240 \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":"libpod/pod.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce0364ce2e7ced76174f8041f647142d0800c6108cfcd199c3aa282606278b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/machine/wsl/usermodenet.go:247-259 | pkg/machine/wsl/usermodenet.go:261-273 \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/machine/wsl/usermodenet.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe345d50eb2b4533f638dabb144761e2bce5d60189fb1531ac8543c9f877cc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): libpod/runtime_ctr.go:1263-1281 | libpod/runtime_pod.go:83-101 | pkg/ps/ps.go:152-167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_ctr.go"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e32a1ce074a77b349e8c18f6157cba57e1d2909813b26a53191a3d989d201db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/domain/filters/containers.go:353-364 | pkg/domain/filters/volumes.go:135-146 \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/domain/filters/containers.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"5745c4379a946ddff583f54ce2da573fa444eee71c1e5a45140867d7518446a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): pkg/machine/wsl/machine.go:551-558 | pkg/machine/wsl/machine.go:560-567 \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/machine/wsl/machine.go"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"3369ed192d514c6d6d7c53568e0e59e1d9aa10201a25827e83e1cb97c1f46cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 10\u002B corresponding lines): libpod/container.go:885-894 | libpod/container.go:897-906 | libpod/container.go:912-921 | libpod/container.go:924-933 | libpod/container.go:1094-1104 | libpod/container.go:1132-1141 | libpod/container.go:1236-1245 | libpod/container.go:1248-1257 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 10 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container.go"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"163a721420e5c633bcc28d69de079affa8f086bbbdd5ff082c9d7f85b828c497"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): libpod/options.go:1244-1254 | libpod/options.go:1261-1271 \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":"libpod/options.go"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"634414e3de7a91a290ecf2e073fe87dad785646913c2e3eb44bbfcc2466f8531"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): cmd/podman/common/completion.go:765-776 | cmd/podman/common/completion.go:862-874 \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":"cmd/podman/common/completion.go"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc51de0651a02d23c8bdf440d94d0d976b6dc6617a9e5cf57a047315d0eeeb81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): cmd/podman/utils/utils.go:35-48 | cmd/podman/utils/utils.go:50-62 | cmd/podman/utils/utils.go:64-77 \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":"cmd/podman/utils/utils.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b45febbecd8964f3c2bc74dceb19dc66f3f5a64cb5548cf6487dd2cdb272d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): libpod/events.go:153-162 | libpod/events.go:165-174 | libpod/events.go:187-195 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"libpod/events.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d7fb53f05262f0846fecebbd29e200ea09eaf3f6ceab09397ec2d8de6aecdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libpod/container.go:1019-1031 | libpod/runtime.go:730-744 \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":"libpod/container.go"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7e1dcffb34dc017b76aee3f32282be84de507c9213da197baae2f37bc96e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): pkg/domain/infra/runtime_abi.go:14-24 | pkg/domain/infra/runtime_tunnel.go:36-45 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/runtime_abi.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adbe8224cf9b67f10c6b20e03b3c5036d0025d80eab8ec2358eaed2a09bc8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): cmd/podman/parse/filters.go:9-19 | pkg/domain/utils/utils.go:46-56 | pkg/specgen/generate/container.go:130-140 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/parse/filters.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c542c3e575bc1c3c7de3a5f1d532de1d61f8678241d432a4d9e1787ef139815f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/machine/lock/lock.go:25-36 | pkg/machine/ports/ports.go:138-151 \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/machine/lock/lock.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"096f6c7b75a13f599c0ceeb022d0d8b9449f19d062dd286d855edd0f96460821"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libpod/container_internal_linux.go:744-756 | libpod/container_internal_freebsd.go:417-431 \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":"libpod/container_internal_linux.go"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7e0c143846d4249cf1ced3da2cbcde6305cd6b7a55a289b43cc0bc473f817f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/domain/entities/reports/prune.go:32-46 | pkg/domain/entities/types/secrets.go:57-69 \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/domain/entities/reports/prune.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6384a9ad4dae5607304d6fc0197578a0b0434add497596c5c77dfd30326a0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): pkg/env/env_windows.go:5-25 | pkg/env/env_unix.go:7-15 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/env/env_windows.go"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c216fe5bb3a508475f4e7128e523c0055790e5b5c7b409b111e4e2499599dfac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): libpod/container.go:1520-1530 | libpod/container_api.go:1223-1234 | libpod/container_inspect.go:41-52 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container.go"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd54d8e2c15ccf65c25c8118a7ab243d57fa6997e2f3c1ea9b6ca8c9c4cbb7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): libpod/info.go:199-208 | pkg/api/handlers/compat/info.go:149-158 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/info.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd7493a9ee472d7d65a3be1ea4aea7ee93d6a20891dc30436e34318d168a894"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): pkg/domain/infra/abi/generate.go:368-380 | pkg/specgenutil/util.go:30-40 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/generate.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e98b9ad7bb465946ab1493bcaa50b221ed5b03c7b7fdefa9ab815677a4ab93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libpod/stats_freebsd.go:117-128 | libpod/stats_linux.go:100-111 \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":"libpod/stats_freebsd.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9271e0acfbf9cc576b7f1d3fd628ce1661f02b54c592526c30de9bd9c775a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): pkg/domain/infra/abi/pods.go:53-59 | pkg/domain/infra/abi/quadlet.go:532-538 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/pods.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eee8da0999b0188083d4a846a451d95d28f42609a7abf8d3eb0d1477299c040"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): cmd/podman/system/connection.go:11-19 | cmd/podman/system/context.go:11-20 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/connection.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0774af1cc0415043cedba6378d62a254a7580707bcd2c2f082bcc3ec42b352"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): cmd/podman/images/exists.go:9-18 | cmd/podman/manifest/exists.go:9-17 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/exists.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc201d69bb44ae8297ec923201d86e2299f7f693fe3d6521eaa16ee2386db5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libpod/runtime_ctr.go:1247-1260 | libpod/runtime_volume.go:37-48 \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":"libpod/runtime_ctr.go"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab2bd58bcfe5848aa6d85a7df9c4721a6330cae54e261f03b82aa100a57b313"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): libpod/events.go:177-184 | libpod/runtime_img.go:107-114 \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":"libpod/events.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"119b11d7d3a489ac3b352d4445dc3ddedf170f0152bf94e39cea2c948191090d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libpod/runtime_ctr.go:1334-1345 | libpod/runtime_volume.go:51-62 \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":"libpod/runtime_ctr.go"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc382c157d201e5bb20a2d7b8e7856287c8d60d6f0b25f458c78bee79e02b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): libpod/pod.go:359-366 | libpod/service.go:41-48 \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":"libpod/pod.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cceebeefad5671119c9e3b35fb8b1584917cddb388977f2ee27c030b33d9b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): pkg/api/server/handler_api.go:79-86 | pkg/api/server/handler_logging.go:41-47 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/server/handler_api.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a129cb81c268ca0c0871d99c1b77fdf3f67133719bad6ebeb0e39ed6585979b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): pkg/domain/entities/reports/prune.go:21-30 | pkg/domain/entities/types/secrets.go:49-55 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/entities/reports/prune.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65f39532f2a198debaef803fd703db914f17373317854f119fb6afe5250d226"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): pkg/domain/infra/abi/images.go:51-57 | pkg/domain/infra/abi/volumes.go:196-202 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e369e35b672801fa377bae6cf080fa30090636f8fd686a1ed9dca84b9ad3e4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): cmd/podman/images/tag.go:47-49 | cmd/podman/images/untag.go:46-48 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/tag.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e698bba3cab72116e7c69927f409481ef899449c96f2e689fc5b5c74fb06d1a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): pkg/machine/env/dir.go:99-106 | pkg/machine/windows/util_windows.go:227-233 | pkg/util/utils_windows.go:33-40 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/env/dir.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbcd3bb30b407e8651d4c579991a08668505995c43bac5a7a0b8aa820fa8da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): pkg/domain/infra/tunnel/images.go:30-33 | pkg/domain/infra/tunnel/pods.go:15-18 \u2014 These two members are one piece of code written twice and then edited apart: 4 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/domain/infra/tunnel/images.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7a9a43a4d8b2360ea596883395c43afe88af1ab27349138264d27478b52c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74 lines \u00D7 2): pkg/signal/signal_unix.go:15-88 | pkg/signal/signal_unsupported.go:15-88 \u2014 before extracting anything, compare \u0060pkg/signal/signal_unix.go\u0060 and \u0060pkg/signal/signal_unsupported.go\u0060 as WHOLE FILES: 92% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/signal/signal_unix.go:15\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/signal/signal_unix.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fb41b90e101d5c2e95354339c9986ae848ba1733aa4a7500b3184a2b825221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): cmd/podman/artifact/push.go:133-185 | cmd/podman/images/push.go:166-218 \u2014 \u0060cmd/podman/artifact/push.go\u0060 and \u0060cmd/podman/images/push.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 71 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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/push.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b748c71c16120fbe01a2da6b0c5799faeae4b9decb07952fb5743b7457a9cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50\u201351 lines \u00D7 2): libpod/container_internal_freebsd.go:51-100 | libpod/container_internal_linux.go:87-137 \u2014 before extracting anything, compare \u0060libpod/container_internal_freebsd.go\u0060 and \u0060libpod/container_internal_linux.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 80 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 \u0060libpod/container_internal_freebsd.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. 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":"libpod/container_internal_freebsd.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"416b6e64fcaf8a2a83ea501cc5fbddf736d5779d9f778f8121616835b05a0cf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): pkg/specgen/generate/config_freebsd.go:55-95 | pkg/specgen/generate/config_linux.go:57-97 \u2014 before extracting anything, compare \u0060pkg/specgen/generate/config_freebsd.go\u0060 and \u0060pkg/specgen/generate/config_linux.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 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/specgen/generate/config_freebsd.go:55\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/specgen/generate/config_freebsd.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5090951bdd093a5e289f06c38d35bbf6b5f007988d7f03c77531b002189150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): pkg/specgen/generate/namespaces_freebsd.go:19-51 | pkg/specgen/generate/namespaces_linux.go:76-108 \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/specgen/generate/namespaces_freebsd.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"968bf96efb40bffdaefa49daf8d282dee2f2d6881c87961abfa6e79f43c90191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): libpod/container_exec.go:368-398 | libpod/container_exec.go:552-581 \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":"libpod/container_exec.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d22f34fcb865e6b630ece89bdc3997d6795a90069236823d009d1a56634c0d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): pkg/bindings/manifests/manifests.go:81-108 | pkg/bindings/manifests/manifests.go:118-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/manifests/manifests.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b3d9d0d6c84acde887177e3222e2476d3e160108f7c0af793f3e2093a047ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): cmd/podman/machine/info.go:67-93 | cmd/podman/system/info.go:94-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/machine/info.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. 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":"cmd/podman/machine/info.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0649db11e7077fe8eb0d6196f5622a65de269d6c906622b490ae1dff129e91de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201327 lines \u00D7 2): pkg/api/handlers/compat/volumes.go:230-256 | pkg/api/handlers/libpod/volumes.go:183-197 \u2014 \u0060pkg/api/handlers/compat/volumes.go\u0060 and \u0060pkg/api/handlers/libpod/volumes.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 7 separate duplicated blocks between them, totalling at least 89 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/api/handlers/compat/volumes.go:230\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/api/handlers/compat/volumes.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"433df04162322218c5a7f3eacd5828951700751bac2a59d0cdbd6a5855c5221a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201322 lines \u00D7 3): pkg/api/handlers/compat/volumes.go:234-255 | pkg/api/handlers/libpod/networks.go:114-122 | pkg/api/handlers/libpod/volumes.go:187-196 \u2014 \u0060pkg/api/handlers/compat/volumes.go\u0060 and \u0060pkg/api/handlers/libpod/volumes.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 7 separate duplicated blocks between them, totalling at least 89 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/api/handlers/compat/volumes.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/api/handlers/compat/volumes.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c60c826d1d6f534eca4f5057492a5717b3dd5d2e3eff19a651694b128c956b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): libpod/oci_conmon_common.go:670-690 | libpod/oci_conmon_exec_common.go:645-665 \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 \u0060libpod/oci_conmon_common.go:670\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":"libpod/oci_conmon_common.go"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f50c9c9487b210a4bdb488b468d09a3f8e3500eda5cec07525af6294581646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): pkg/domain/infra/abi/manifest.go:224-244 | pkg/domain/infra/abi/manifest.go:274-292 \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/domain/infra/abi/manifest.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f269c286e1f276630f06a4284820bef76c927abee991a3cc02e182d67c75aafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libpod/oci_conmon_common.go:641-660 | libpod/oci_conmon_exec_common.go:624-643 \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":"libpod/oci_conmon_common.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ad4065af3ebc9350532f2e9076e48459a63c07cde48976c0945bfb42876a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): libpod/oci_conmon_common.go:1601-1619 | libpod/oci_conmon_common.go:1687-1706 \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 \u0060libpod/oci_conmon_common.go:1601\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":"libpod/oci_conmon_common.go"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa89d12e15ae6f9cc329235aeff34070c1691d84158abfc367bc77c5d801fb48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libpod/sqlite_state.go:925-944 | libpod/sqlite_state.go:1672-1691 \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":"libpod/sqlite_state.go"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"3614bd3423285edc9fb6325b9a232d8d0436cd6765781d5c278ff70d2984e572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): pkg/domain/infra/abi/containers.go:1444-1462 | pkg/domain/infra/abi/images.go:163-182 \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/domain/infra/abi/containers.go"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7da21f709a83c893ae98be4dd62a14373a98883a030e11a2277324522c81e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): libpod/boltdb_state_internal.go:208-242 | libpod/sqlite_state_internal.go:284-318 \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":"libpod/boltdb_state_internal.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc41888a4f6617ac7450ec328e33bbb83c1f81dd2463eb19184eb8284e31d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libpod/container_internal_freebsd.go:237-255 | libpod/container_internal_linux.go:439-457 \u2014 before extracting anything, compare \u0060libpod/container_internal_freebsd.go\u0060 and \u0060libpod/container_internal_linux.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 80 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":"libpod/container_internal_freebsd.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba9de435b7fa36d9e9549c3452e874c2f1d0146d9be291ece45fb8b56f842a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): libpod/oci_conmon_exec_common.go:51-69 | libpod/oci_conmon_exec_common.go:116-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060error\u0060 to \u0060chan\u0060 in one and \u0060cancel \u003C-chan bool, hijackDone chan\u003C- bool, holdConnOpen \u003C-chan bool, newSize *resize.TerminalSize, ) (int, chan error,\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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ec8e771159403e4a19db98f2267719d73930e8e6142bb5736d54ca6aa6c2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): pkg/api/handlers/libpod/artifacts.go:281-299 | pkg/api/handlers/libpod/images.go:466-484 \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/api/handlers/libpod/artifacts.go:281\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/api/handlers/libpod/artifacts.go"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ba6d626b0ea03d4b78e2a641b6ca645b3f344241bc2cb5a662e74223612fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): libpod/container_internal_common.go:476-490 | libpod/container_internal_common.go:1932-1949 \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 \u0060libpod/container_internal_common.go:476\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libpod/container_internal_common.go:490\u0060 calls \u0060AddMount\u0060, \u0060Infof\u0060 and \u0060libpod/container_internal_common.go:1949\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":"libpod/container_internal_common.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"154fd6f520a35e63a2f123c16604d66e0960613cd8b447d4dfe9f5f9a740ceda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/api/handlers/compat/containers_restart.go:52-69 | pkg/api/handlers/compat/containers_stop.go:68-85 \u2014 before extracting anything, compare \u0060pkg/api/handlers/compat/containers_restart.go\u0060 and \u0060pkg/api/handlers/compat/containers_stop.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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/api/handlers/compat/containers_restart.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/api/handlers/compat/containers_restart.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb51268f63d25853c59fa5a3b3cde91558db1f49f9c4a841acb48e6d9c365183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/domain/filters/containers.go:420-437 | pkg/domain/filters/containers.go:441-458 \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/domain/filters/containers.go:420\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/domain/filters/containers.go"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f698f69397af89cbfd881cdb94fdffeaf7aeb7d357678082be3ba90b34a961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/domain/infra/abi/containers.go:944-961 | pkg/domain/infra/abi/containers.go:973-990 \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/domain/infra/abi/containers.go"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"deabbf1ce72ed030c71e15a38e872abef70899bf937b1e349ee397fa37b6b2b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/domain/infra/runtime_libpod.go:258-275 | pkg/util/utils.go:998-1015 \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/domain/infra/runtime_libpod.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5febcffab14efa4e03d91da8c63d037cefbe9653a36a72b5592e940503b406a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): libpod/pod_api.go:277-293 | libpod/pod_api.go:338-354 | libpod/pod_api.go:394-410 | libpod/pod_api.go:507-523 \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 \u0060libpod/pod_api.go:277\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":"libpod/pod_api.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a95c9471f549a0f654d8b97ca22eb547895d54bee71ff8ecc94cf5ad371736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): cmd/podman/artifact/pull.go:63-79 | cmd/podman/images/pull.go:117-133 \u2014 \u0060cmd/podman/artifact/pull.go\u0060 and \u0060cmd/podman/images/pull.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 43 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 \u0060cmd/podman/artifact/pull.go:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/pull.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4f61f0cfcd3e6a04c7104db5951b29e7f6d3e5a626a20b4d544ca0755349ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libpod/container_api.go:49-65 | libpod/container_internal.go:816-832 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also 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":"libpod/container_api.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"013af68702004607137795e3c336595f7c5e390915e573f0edfc4cbe138031cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): libpod/container_exec.go:279-296 | libpod/container_exec.go:333-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/container_exec.go:279\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":"libpod/container_exec.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"d880a56dd354fd7bc2e71cd9aea7a9cfdc8cd36adba8eac05b1a3195ab1fc70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): libpod/container_internal_common.go:383-397 | libpod/container_internal_common.go:538-554 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/container_internal_common.go:383\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97aa5a9fe1cbb5423217b167db8285e44ab4c303c68357152d6e60fd8dcc010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/domain/infra/abi/play.go:370-386 | pkg/domain/infra/abi/play.go:498-514 \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/domain/infra/abi/play.go"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59ab5e2854cc78a93f758046ce1375ea46a4ab1519e8d349ac8faf96744de10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/specgen/generate/config_freebsd.go:33-49 | pkg/specgen/generate/config_linux.go:40-56 \u2014 before extracting anything, compare \u0060pkg/specgen/generate/config_freebsd.go\u0060 and \u0060pkg/specgen/generate/config_linux.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 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/specgen/generate/config_freebsd.go:33\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/specgen/generate/config_freebsd.go:51\u0060 calls \u0060addDevice\u0060 and \u0060pkg/specgen/generate/config_linux.go:57\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/specgen/generate/config_freebsd.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2087d7312f30da9c03c852605df68cd4c1c267815adf1560fd087a3b9bf2eed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/systemd/parser/unitfile.go:705-721 | pkg/systemd/parser/unitfile.go:738-754 \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/systemd/parser/unitfile.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb99fc7f7c97a1ad643e8220909c1129019892bb9639e2dfcb576a133cc9cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 6): cmd/podman/containers/init.go:70-84 | cmd/podman/containers/kill.go:108-122 | cmd/podman/containers/pause.go:110-124 | cmd/podman/containers/restart.go:122-136 | cmd/podman/containers/stop.go:144-158 | cmd/podman/containers/unpause.go:108-123 \u2014 before extracting anything, compare \u0060cmd/podman/containers/pause.go\u0060 and \u0060cmd/podman/containers/unpause.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 \u0060cmd/podman/containers/init.go:70\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":"cmd/podman/containers/init.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"112601f146442014d1ef96d1f4063a234a085ca9b80c009c4d245d959dfaa578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): pkg/api/handlers/compat/containers.go:113-126 | pkg/api/handlers/libpod/containers.go:78-91 | pkg/api/handlers/libpod/images.go:129-144 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/containers.go:113\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/api/handlers/compat/containers.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d812ec54257fa01c9d71bb31fce83a662d0378e87900b8763dbe21f204f2426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): cmd/podman/artifact/pull.go:118-133 | cmd/podman/images/pull.go:194-209 \u2014 \u0060cmd/podman/artifact/pull.go\u0060 and \u0060cmd/podman/images/pull.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 43 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 \u0060cmd/podman/artifact/pull.go:118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/pull.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da83f31a93f03bcb8a50d0110c6bdaf466a489b6aebcaad81fe9cbcdee340e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libpod/container_exec.go:452-467 | libpod/container_exec.go:597-612 \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 \u0060libpod/container_exec.go:452\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":"libpod/container_exec.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf5afdb94726a099dda495b74e84ca98d33c585019793f9cedb619de3b40759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libpod/container_graph.go:489-504 | libpod/container_graph.go:564-579 \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":"libpod/container_graph.go"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8bdcb810836be289cd67355f8f24f6c259c56439c0c44ceee1e15c48159200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libpod/sqlite_state.go:1607-1622 | libpod/sqlite_state.go:1648-1663 \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":"libpod/sqlite_state.go"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"c278f6ce6a794ad279e6d214c5d87b996d24e1a7eb5915cc5e150e5268df9934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/api/handlers/compat/networks.go:260-275 | pkg/api/handlers/libpod/networks.go:84-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/networks.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d46a4aa18411d6424002fb405379ffcffb09947d13d7727c020a71ab574218a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/api/handlers/libpod/manifests.go:221-236 | pkg/api/handlers/libpod/manifests.go:638-653 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/manifests.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"3308309b72f0911c07eda0be77cf6b27fb219eafa8ac88dd314e66b56cc04f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/bindings/containers/attach.go:189-204 | pkg/bindings/containers/attach.go:521-536 \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/bindings/containers/attach.go:189\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/bindings/containers/attach.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad165e749f066bc415f85d38e97cb0313912856776040e2d22100404d88567a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/domain/infra/abi/manifest.go:254-269 | pkg/domain/infra/tunnel/manifest.go:161-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/manifest.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc00a0fb61e964fb9348c2e3d288afd16d4710e5c4143d336401a6be47113216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/domain/infra/abi/play.go:270-285 | pkg/domain/infra/abi/play.go:1876-1891 \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/domain/infra/abi/play.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b3240dbfae7c97045a30607bf462f09c15f78e57f283d5f7d2e2b6e69abf27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/specgen/generate/oci_freebsd.go:53-68 | pkg/specgen/generate/oci_linux.go:308-323 \u2014 before extracting anything, compare \u0060pkg/specgen/generate/oci_freebsd.go\u0060 and \u0060pkg/specgen/generate/oci_linux.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/oci_freebsd.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a400fb1d006cd517401dee9affced6b53beb554c01c4319d6b4f7fa40720d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/specgen/generate/oci_freebsd.go:119-134 | pkg/specgen/generate/oci_linux.go:278-293 \u2014 before extracting anything, compare \u0060pkg/specgen/generate/oci_freebsd.go\u0060 and \u0060pkg/specgen/generate/oci_linux.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/specgen/generate/oci_freebsd.go:117\u0060 calls \u0060IsPrivileged\u0060 and \u0060pkg/specgen/generate/oci_linux.go:276\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/specgen/generate/oci_freebsd.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9a3d8308318fa902875a8dda8dfa5fbecf39be2c71e6711b991f5c9090230e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/specgenutil/volumes.go:674-689 | pkg/specgenutil/volumes.go:728-743 \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/specgenutil/volumes.go:674\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/specgenutil/volumes.go"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a23f438f544727d1e3d037c7a172920a255fbb39ae57c934ca08a629504d7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/systemd/generate/containers.go:288-303 | pkg/systemd/generate/pods.go:273-288 \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/systemd/generate/containers.go:288\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/systemd/generate/containers.go"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a60ace6f02d5f8f312d9e68e958c9fc345aa832a8edb5df599079daf4d94b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): pkg/api/handlers/compat/images_push.go:101-114 | pkg/api/handlers/libpod/images_push.go:67-81 | pkg/api/handlers/libpod/manifests.go:216-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/images_push.go:101\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/api/handlers/compat/images_push.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"563566b19e7429304e0f1cc6a5d8a43f35238ace105ca4816431a3a25fbaa774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libpod/container_api.go:194-208 | libpod/container_internal.go:1254-1268 \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 \u0060libpod/container_api.go:194\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":"libpod/container_api.go"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed93fa2c5955ddb2ee68ec1722345274b3e94d1dab2782471dae1f329c8df97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libpod/networking_freebsd.go:69-83 | libpod/networking_linux.go:53-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060libpod/networking_linux.go:50\u0060 calls \u0060IsPasta\u0060, \u0060setupPasta\u0060 and \u0060libpod/networking_freebsd.go:68\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":"libpod/networking_freebsd.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6525feed1b752e9ea9d62251555050282569e0e228c9817ae0dd9c8d8a2b9c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libpod/service.go:146-160 | libpod/service.go:259-273 \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 \u0060libpod/service.go:146\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":"libpod/service.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8093c59b5c9c302e36184fd18b1b76d2040c85e1a689de0ba01220bb872373cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libpod/sqlite_state.go:2319-2333 | libpod/sqlite_state.go:2372-2386 \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 \u0060libpod/sqlite_state.go:2319\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":"libpod/sqlite_state.go"},"region":{"startLine":2319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc445f31527a24b13debb54b1e8d60d78bea02753c1bcf6f7d6b7cdb21ad26c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/api/handlers/libpod/images.go:804-818 | pkg/api/handlers/libpod/manifests.go:777-791 \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/api/handlers/libpod/images.go:804\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/api/handlers/libpod/images.go"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fa1ac4f4038b370ab41b3726cb9aad12bfe4efba22f68c9f8cf8a019364c8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/api/handlers/libpod/images_push.go:139-153 | pkg/api/handlers/libpod/manifests.go:452-466 \u2014 before extracting anything, compare \u0060pkg/api/handlers/libpod/images_push.go\u0060 and \u0060pkg/api/handlers/libpod/manifests.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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/api/handlers/libpod/images_push.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/api/handlers/libpod/images_push.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d9a23eccb5bd033783077f4bf1d5d5aa6b58c9308e00617f0c5619ede7be2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/domain/infra/runtime_libpod.go:236-250 | pkg/util/utils.go:982-996 \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/domain/infra/runtime_libpod.go:236\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/domain/infra/runtime_libpod.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"458bfb5a8cc5f23cd49fb18a18c3e4ed4db7b87047d8d1d2eb3edf06a8f835da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/specgen/generate/oci_freebsd.go:153-167 | pkg/specgen/generate/oci_linux.go:345-359 \u2014 before extracting anything, compare \u0060pkg/specgen/generate/oci_freebsd.go\u0060 and \u0060pkg/specgen/generate/oci_linux.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 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/specgen/generate/oci_freebsd.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12abf86791f05cdca5ad0e23e21e958cda2f44efa39f4333588d528de614b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/systemd/parser/split.go:118-132 | pkg/systemd/parser/split.go:142-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/parser/split.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7ea2677ca76175bfe0fc43376f40b365f4a3e532bccba07be12c7a30709811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): libpod/container_api.go:60-71 | libpod/container_internal.go:827-838 | libpod/container_internal.go:1210-1223 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/container_api.go:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libpod/container_internal.go:1224\u0060 calls \u0060Debugf\u0060, \u0060ID\u0060 and \u0060libpod/container_internal.go:840\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":"libpod/container_api.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0080090cc7158e50a66f04fb000c1865d0ae95236a55fc378455946c4695add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): pkg/domain/filters/containers.go:234-247 | pkg/domain/filters/containers.go:535-548 | pkg/domain/filters/pods.go:136-149 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/domain/filters/containers.go:234\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/domain/filters/pods.go:133\u0060 calls \u0060CreatedTime\u0060, \u0060Before\u0060 and \u0060pkg/domain/filters/containers.go:232\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/domain/filters/containers.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fcfa138503be67e8e4de8e9203d1fda9b1e8b00d48fd388fa50b34f5bbb2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cmd/podman/artifact/list.go:212-225 | cmd/podman/machine/list.go:126-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/artifact/list.go:212\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cmd/podman/machine/list.go:125\u0060 calls \u0060Parse\u0060 and \u0060cmd/podman/artifact/list.go:211\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":"cmd/podman/artifact/list.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"376cde325868071108daf835cba9a40761348766bc50dafb43382efc5149f3b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): pkg/domain/infra/abi/containers.go:199-211 | pkg/domain/infra/abi/containers.go:220-233 \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/domain/infra/abi/containers.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f87ee69b2e1e5209aaf174ff15c85057f0cbf41732bb2bd532bb09e606a68da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/specgen/generate/oci_freebsd.go:138-151 | pkg/specgen/generate/oci_linux.go:326-339 \u2014 before extracting anything, compare \u0060pkg/specgen/generate/oci_freebsd.go\u0060 and \u0060pkg/specgen/generate/oci_linux.go\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 61 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/specgen/generate/oci_freebsd.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"921b8cdc993c806d6fd61b05e7b630a86a97d0dd36a5b80d6185137fa55a50a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/systemd/generate/containers.go:493-506 | pkg/systemd/generate/pods.go:377-390 \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/systemd/generate/containers.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8daa512ec210946dd2388a376cdfac0fe8322e65e47453524610797dbcfde7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): libpod/container_exec.go:617-629 | libpod/container_exec.go:655-667 | libpod/container_exec.go:722-734 | libpod/container_exec.go:766-778 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libpod/container_exec.go:669\u0060 calls \u0060Infof\u0060, \u0060ID\u0060 and \u0060libpod/container_exec.go:631\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":"libpod/container_exec.go"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b2e0b050d2da75f11e81ef69d23dcedec296c7d4d84bbd9fff4956c6b9d56f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): libpod/pod_api.go:302-314 | libpod/pod_api.go:363-375 | libpod/pod_api.go:419-431 | libpod/pod_api.go:534-546 \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 \u0060libpod/pod_api.go:302\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, \u0060libpod/pod_api.go:361\u0060 calls \u0060newPodEvent\u0060 and \u0060libpod/pod_api.go:300\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":"libpod/pod_api.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c48a3dbec3a9ef51949d303f132d68a5c0d07e0e2690323fa778b1025f244f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): libpod/container_api.go:55-67 | libpod/container_internal.go:822-834 | libpod/container_internal.go:1713-1723 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/container_api.go:55\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":"libpod/container_api.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb8e6335b01ce726a740e95b5b7ba182380e0b44c02baa29e5d851dc64bf067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): pkg/domain/infra/abi/manifest.go:224-236 | pkg/domain/infra/abi/manifest.go:274-286 | pkg/domain/infra/abi/manifest.go:372-384 \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/domain/infra/abi/manifest.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"54237fdaf167a88b7dec5d53c57550fe60c108bcc37e28894275af824681b219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cmd/podman/containers/mount.go:105-117 | cmd/podman/images/mount.go:79-91 \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":"cmd/podman/containers/mount.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1812c72292f82d23bcf220241bf95f04db0da37cffbaf1e522f11aad498049a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cmd/podman/farm/list.go:74-86 | cmd/podman/system/connection/list.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/farm/list.go:74\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"cmd/podman/farm/list.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f83ebda2346f0db444e7659b8543c690f9924a5b9f36cb5ac88ff225aaab41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): libpod/kube.go:617-627 | libpod/kube.go:763-775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/kube.go:617\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":"libpod/kube.go"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e20bf4673213edf49200781100e8c7f37d7b50c50c3c284e78b638064c4fe0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/api/handlers/compat/images_push.go:106-118 | pkg/api/handlers/libpod/manifests.go:316-328 \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/api/handlers/compat/images_push.go:106\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/api/handlers/libpod/manifests.go:314\u0060 calls \u0060GetName\u0060 and \u0060pkg/api/handlers/compat/images_push.go:103\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/api/handlers/compat/images_push.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17ff8cb842362808c4caa8272256368bcc3e4eab7910c1296487b9edf6d923c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/api/handlers/libpod/artifacts.go:126-138 | pkg/api/handlers/libpod/images_pull.go:97-109 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also 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/api/handlers/libpod/artifacts.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c328d89d920affd8735cb4dc277ec76b4384eb807f8c7c452a0c1ded30054e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201313 lines \u00D7 3): pkg/api/handlers/libpod/artifacts.go:90-93 | pkg/api/handlers/libpod/artifacts.go:247-259 | pkg/api/handlers/libpod/artifacts.go:270-282 \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/api/handlers/libpod/artifacts.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8affe06c6bbf0c1ca7265fa010990366ece6f819347acb64da21314e7e0e2bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/api/handlers/libpod/images.go:204-216 | pkg/api/handlers/libpod/images.go:361-373 \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/api/handlers/libpod/images.go:204\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/api/handlers/libpod/images.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91ea7ededdf1214ac856cbb5a5421640bffd2af81b41e905b22259817de1180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/api/handlers/libpod/volumes.go:69-81 | pkg/domain/infra/abi/volumes.go:38-50 \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/api/handlers/libpod/volumes.go:69\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/api/handlers/libpod/volumes.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"083dfea802476ce68c8e26021ec9000fe772c6ee77c2f222e28a657a76e5ec55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/bindings/images/build.go:1273-1285 | pkg/bindings/images/build.go:1291-1303 \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/bindings/images/build.go"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d7931c5657a891d1923c9150653bff1821bd2a92b720743664ce837647b5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): pkg/domain/infra/abi/images.go:184-195 | pkg/domain/infra/abi/images.go:246-258 \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/domain/infra/abi/images.go:184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/images.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3466d316813e50ad2986728b0a0b50f05ae44cc82718c82d74ae6cec9ec3399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/domain/infra/abi/play.go:1086-1098 | pkg/domain/infra/abi/play.go:1176-1188 \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/domain/infra/abi/play.go:1086\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/domain/infra/abi/play.go"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aafe31b62d5c5ac6e7edce62bb54f321dd2f59d761dfdcead6d74811de99b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/domain/infra/abi/play.go:1123-1135 | pkg/domain/infra/abi/play.go:1220-1232 \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/domain/infra/abi/play.go"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf56e7dd0e5afd45464a3662be442d53249fa04e14ce2d16dc44c619a7fced0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/domain/infra/tunnel/images.go:130-142 | pkg/domain/infra/tunnel/images.go:297-309 \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/domain/infra/tunnel/images.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"da585aff4dd26e110322c9dc9c22c25f66b1eaaa3d6f0ac1ab2caffd2679a7d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/machine/hyperv/hutil.go:62-74 | pkg/machine/hyperv/hutil.go:97-109 \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/machine/hyperv/hutil.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ef4eebe78179a77fb26272f1737207b43bbe0cfe986623ae8d0fefe42ace86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/specgen/generate/security_linux.go:32-44 | pkg/specgen/generate/security_linux.go:46-58 \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/specgen/generate/security_linux.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd7d3f6f5269a75cc7f9edffd08e72563f5184cc9a79b4197625d2241647c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): pkg/specgen/namespaces.go:174-186 | pkg/specgen/namespaces.go:215-226 \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/specgen/namespaces.go:174\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/specgen/namespaces.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d7d9d26e67b6194cc86439629366ec5cfcc67f04b361b7d9887c01c3ab9fbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): cmd/podman/common/completion.go:188-199 | cmd/podman/common/completion.go:211-222 | cmd/podman/common/completion.go:368-379 | cmd/podman/machine/machine.go:127-137 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/common/completion.go:188\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":"cmd/podman/common/completion.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1705326c34e6b21465ecabc1a465695ddc093d2c295266b2913dd2f2f38481"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): cmd/podman/common/completion.go:300-310 | cmd/podman/common/completion.go:338-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/common/completion.go:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f9a1434eaf23f52a636b73c0cd47014fb091850d588235d9a21f4c8fc22c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/podman/containers/unmount.go:81-92 | cmd/podman/images/unmount.go:60-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/containers/unmount.go:81\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":"cmd/podman/containers/unmount.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d240b0130fdd77e801b5580abdfa6095f055f1703bfe34254b22bff9698d585a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/podman/farm/build.go:90-101 | cmd/podman/images/build.go:83-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/farm/build.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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/farm/build.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f4922f49cbde9804d75487b4f08d4755aa415e3c78ba3656bbb47bbf55a403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/podman/networks/list.go:136-147 | cmd/podman/secrets/list.go:117-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/networks/list.go:136\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":"cmd/podman/networks/list.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cde6dca9291d90e832a13c13c444657dc1891c26c4af4f5d4a44155a0d39884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libpod/container_top_linux.go:307-318 | libpod/container_top_linux.go:386-397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_top_linux.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6209a1c5c1d5fe3706338e63e31b082e3418f59567ca4a29d26e9efed289158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): libpod/events/journal_linux.go:130-141 | libpod/events/logfile.go:114-124 \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":"libpod/events/journal_linux.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"299c4a18ed29959b840e0c4edd509154f7923694defc770fc8696b29fee51d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/api/handlers/libpod/containers.go:277-288 | pkg/api/handlers/libpod/containers.go:378-389 \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/api/handlers/libpod/containers.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6de733cb13902afe5036d9a6fb7182a2ed79e0dbf49307c5f1b0ba550b45044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): pkg/api/handlers/libpod/images_push.go:44-53 | pkg/api/handlers/libpod/manifests.go:367-378 \u2014 before extracting anything, compare \u0060pkg/api/handlers/libpod/images_push.go\u0060 and \u0060pkg/api/handlers/libpod/manifests.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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/api/handlers/libpod/images_push.go:44\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/api/handlers/libpod/images_push.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"87da3143a9952ce1c13c2d4b4b4c39f5652f5ebc359fe348f6cb28507d5c14db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/api/handlers/libpod/pods.go:241-252 | pkg/api/handlers/libpod/volumes.go:180-191 \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/api/handlers/libpod/pods.go:241\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/api/handlers/libpod/pods.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc30fd54028de55137afa1059e6571313f104c3ed0a742f1bc9626b0009d91ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/api/handlers/libpod/pods.go:322-333 | pkg/domain/infra/abi/pods.go:301-312 \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/api/handlers/libpod/pods.go:322\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/api/handlers/libpod/pods.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0dd47a5321e0d94d52f57ecb8dd5ca6accd190e37c4eefc38c2d528cce1714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/domain/filters/containers.go:206-217 | pkg/domain/filters/containers.go:507-518 \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/domain/filters/containers.go:206\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/domain/filters/containers.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79a60e8e8879dc6cef6b776146542f34c6579f57d719ad0878bb4e81b43a4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/domain/infra/abi/pods.go:343-354 | pkg/specgen/generate/pod_create.go:314-325 \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/domain/infra/abi/pods.go:343\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/domain/infra/abi/pods.go"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"971e12ab450dfb79738acd9488ecaeb71498550fb35e1035adfc5678b51251e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/specgen/generate/storage.go:71-88 | pkg/specgen/generate/storage.go:113-130 \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/specgen/generate/storage.go:71\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/specgen/generate/storage.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34e2cf749a55340ad9872ad7dd094ba3a13ec226e791bbf8fbd65ffd7dedfcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): pkg/api/handlers/compat/images_push.go:105-115 | pkg/api/handlers/libpod/images_push.go:71-82 | pkg/api/handlers/libpod/kube.go:167-177 | pkg/api/handlers/libpod/manifests.go:220-230 | pkg/api/handlers/libpod/manifests.go:315-325 | pkg/api/handlers/libpod/manifests.go:637-647 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/api/handlers/libpod/manifests.go:314\u0060 calls \u0060GetName\u0060 and \u0060pkg/api/handlers/compat/images_push.go:103\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/api/handlers/compat/images_push.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cf4a1f30bfa91c38dc491d86bb668423adffd298254500b52ead68fb2a3585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): cmd/podman/containers/pause.go:95-105 | cmd/podman/containers/restart.go:107-117 | cmd/podman/containers/rm.go:117-127 | cmd/podman/containers/stop.go:121-131 | cmd/podman/containers/unpause.go:93-103 \u2014 before extracting anything, compare \u0060cmd/podman/containers/pause.go\u0060 and \u0060cmd/podman/containers/unpause.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 \u0060cmd/podman/containers/pause.go:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cmd/podman/containers/rm.go:114\u0060 calls \u0060Is\u0060 and \u0060cmd/podman/containers/pause.go:94\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/pause.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2188c6cfdb2233bc4af6c9849c5bbfb15c925b6a998046665ea78de94a5419c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): libpod/sqlite_state.go:898-908 | libpod/sqlite_state.go:928-938 | libpod/sqlite_state.go:1675-1685 \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 \u0060libpod/sqlite_state.go:898\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libpod/sqlite_state.go:909\u0060 calls \u0060Unmarshal\u0060, \u0060Errorf\u0060, \u0060ID\u0060 and \u0060libpod/sqlite_state.go:940\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":"libpod/sqlite_state.go"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e6ab1ce0b863008240672c0cbb2cd2e73139290ef39ce8db05eda7d7fe2f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): pkg/bindings/images/pull.go:59-69 | pkg/bindings/images/push.go:59-69 | pkg/bindings/manifests/manifests.go:277-287 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/images/pull.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2f94c3b29cd9a1a228133d7d8c047f7a5246d48a8d3eebbf39a99e88a1e8bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cmd/podman/artifact/push.go:55-65 | cmd/podman/images/push.go:80-90 \u2014 \u0060cmd/podman/artifact/push.go\u0060 and \u0060cmd/podman/images/push.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 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cmd/podman/images/push.go:92\u0060 calls \u0060BoolVar\u0060 and \u0060cmd/podman/artifact/push.go:70\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":"cmd/podman/artifact/push.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b64a836b9f9f90efe9b8497f346c838d6261cd1931c960b861dfb4dc9ffd61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): cmd/podman/common/completion.go:105-114 | cmd/podman/common/completion.go:385-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cmd/podman/common/completion.go:119\u0060 calls \u0060Flags\u0060, \u0060GetBool\u0060 and \u0060cmd/podman/common/completion.go:397\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":"cmd/podman/common/completion.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd19eec5eac0ab4c667bbe7f72bc293444275435fbd66d9e90c07e73a2c42fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cmd/podman/containers/cp.go:169-179 | cmd/podman/containers/cp.go:324-334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/cp.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"083931dea8f3d4f47270c71b21343d670a41588ef18350f1e41c1bb687a35e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/container_api.go:622-632 | libpod/container_api.go:669-679 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"libpod/container_api.go"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd1c6d0d73ea3f0a3c77b47381f002f22575206cb60cf11c783e2c60c230ed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/networking_freebsd.go:58-68 | libpod/networking_linux.go:22-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also 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":"libpod/networking_freebsd.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5f11988b1b3b66db8d4f4d61855e76a674980c9bd6b9c2ed532e1d6ba8588e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/pod_api.go:90-100 | libpod/pod_api.go:459-471 \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 \u0060libpod/pod_api.go:90\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":"libpod/pod_api.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a0b3f699919c6bdad52137c8f93f3dc058def9416f51a08ded9851646d7856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/runtime_ctr.go:397-407 | libpod/runtime_ctr.go:422-432 \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":"libpod/runtime_ctr.go"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71400f379e1812681a9dfbd0135d1160d7eccfbfe6043c4a3e8cf9c05baee4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/api/handlers/compat/containers_top.go:35-45 | pkg/api/handlers/libpod/pods.go:398-408 \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/api/handlers/compat/containers_top.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45d0e756b6f825c7980fadca5addb5decb8012b5e14603b02fe10ce251c64df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/api/handlers/compat/images.go:90-100 | pkg/api/handlers/compat/images.go:621-631 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/images.go:90\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 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/api/handlers/compat/images.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1422df788569ae046117a6f974b35cc915cff249dbbece9f180c8e5a0d0619a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/api/handlers/compat/images.go:197-207 | pkg/api/handlers/compat/images.go:538-548 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/api/handlers/compat/images.go:208\u0060 calls \u0060Name\u0060 and \u0060pkg/api/handlers/compat/images.go:549\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/api/handlers/compat/images.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7362f039fa1c56a2f16b7ac12000a029e7105d29a7e06b299104be234170edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/api/handlers/compat/images_build.go:1019-1029 | pkg/api/handlers/compat/images_build.go:1198-1208 \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/api/handlers/compat/images_build.go:1019\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/api/handlers/compat/images_build.go"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"299d4e8395e479ca07bb55a323cb4f707752bfd00d425643d295b78c3a3bce1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/bindings/containers/rename.go:12-22 | pkg/bindings/volumes/rename.go:12-22 \u2014 \u0060pkg/bindings/containers/rename.go\u0060 and \u0060pkg/bindings/volumes/rename.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 22 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. 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/bindings/containers/rename.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb668f025251c2727963c417ded25c206a77def6a1224619fee360db2ff5f258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/domain/filters/containers.go:143-153 | pkg/domain/filters/containers.go:157-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/domain/filters/containers.go:143\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/domain/filters/containers.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f623ddb7551aea3151fd9f56d2d0f34c6c062821b1964e58fce6ba988837f4c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): pkg/domain/infra/abi/containers.go:1470-1480 | pkg/domain/infra/abi/containers.go:1577-1586 \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/domain/infra/abi/containers.go:1470\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/domain/infra/abi/containers.go"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fa081ba0d857cd064775153a84e17267b68a77f78d16b6395e017d36e48936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/domain/infra/tunnel/containers.go:46-56 | pkg/domain/infra/tunnel/containers.go:76-86 \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/domain/infra/tunnel/containers.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2973020d8ded47a66eb24fd5309422855ee4ccb79a97cee93be2c302d1c1a3eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/machine/ocipull/ociartifact.go:316-326 | pkg/machine/ocipull/source.go:91-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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/machine/ocipull/ociartifact.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"defa1184271dda08d85a4a7660514f1621cda8f8b74bda25c4cbd224f2903fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/specgen/generate/config_freebsd.go:21-31 | pkg/specgen/generate/config_linux.go:28-38 \u2014 before extracting anything, compare \u0060pkg/specgen/generate/config_freebsd.go\u0060 and \u0060pkg/specgen/generate/config_linux.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 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/specgen/generate/config_freebsd.go:21\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/specgen/generate/config_freebsd.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f8c6c7fd05e61bccf2f3f3f5c56550f44b948c2d57a91321b5da911abbabd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/specgen/namespaces.go:506-516 | pkg/specgen/namespaces.go:519-529 \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/specgen/namespaces.go"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c5d58b63d8222163c02d5f8120c885f9895e230695c95850bf00d96caaa59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/systemd/generate/containers.go:530-540 | pkg/systemd/generate/pods.go:415-425 \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/systemd/generate/containers.go:530\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/systemd/generate/containers.go"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad01ea0d3cfa813344d24a97c4b363979eb72ef715bfce63ac85a356aeae244c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): libpod/container_api.go:59-69 | libpod/container_internal.go:826-836 | libpod/container_internal.go:1209-1219 | libpod/container_internal.go:1716-1725 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libpod/container_internal.go:1224\u0060 calls \u0060Debugf\u0060, \u0060ID\u0060 and \u0060libpod/container_internal.go:840\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":"libpod/container_api.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fb0758e2b5915131a93af85683eef25e712c4fec686ff3a7a7e47804ab92b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/api/handlers/compat/containers.go:81-90 | pkg/api/handlers/compat/containers_restart.go:52-62 | pkg/api/handlers/compat/containers_stop.go:68-78 \u2014 before extracting anything, compare \u0060pkg/api/handlers/compat/containers_restart.go\u0060 and \u0060pkg/api/handlers/compat/containers_stop.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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/api/handlers/compat/containers.go:81\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/api/handlers/compat/containers.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b271ba874092ab5c4d7e1d75468c8f20cdf54f11e4e1632a01d32655909c362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cmd/podman/artifact/pull.go:103-112 | cmd/podman/images/pull.go:168-177 \u2014 \u0060cmd/podman/artifact/pull.go\u0060 and \u0060cmd/podman/images/pull.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 43 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 \u0060cmd/podman/artifact/pull.go:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/pull.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"36513ff0d5c54d7840a186c20fa72dbff1c0ca117ad4240345da3ece7689735e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cmd/podman/containers/pause.go:62-71 | cmd/podman/containers/unpause.go:60-69 \u2014 before extracting anything, compare \u0060cmd/podman/containers/pause.go\u0060 and \u0060cmd/podman/containers/unpause.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 \u0060cmd/podman/containers/pause.go:62\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":"cmd/podman/containers/pause.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61288b3e8bae6eff8fb0215633f749f5ecfa6cca3a7e741267762a0c65607b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cmd/podman/images/import.go:116-125 | cmd/podman/images/load.go:94-103 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/import.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4e1799de5b42afd9f2945d5b6e075210e3f2627b66d048318e843dfedacf08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/boltdb_state.go:216-225 | libpod/boltdb_state.go:254-263 \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":"libpod/boltdb_state.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46bc041fe82627d09030a4f7919f7214100e66de596fd20349ba3342f401e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/container_exec.go:744-753 | libpod/container_exec.go:786-795 \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 \u0060libpod/container_exec.go:744\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":"libpod/container_exec.go"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef04b8f797613f22772881c8c9534692104fbed3bffab36e5041f0b1cd0e7e11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/pod.go:462-471 | libpod/pod_api.go:596-605 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"libpod/pod.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e44614039b2d5aa5099ec5a066a6bfe25cadd1e630fefed9396c7d2bada354c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/api/handlers/compat/containers.go:211-220 | pkg/api/handlers/libpod/containers.go:129-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea2b559a66da02315ab3c969c4f07664e99b003adea796e1b28c51568ebb293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/api/handlers/compat/distribution.go:36-45 | pkg/api/handlers/libpod/images_push.go:67-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/api/handlers/compat/distribution.go:36\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/api/handlers/compat/distribution.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1d44b1865404802d8a791517e30a634e78aeecdc793fe94ec89ac31baf434e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/api/handlers/compat/exec.go:153-164 | pkg/api/handlers/compat/exec.go:286-295 \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/api/handlers/compat/exec.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b62fa98dc8fc483ca3e8d76b89b9bd5029137816a69d2746e9bbf066077276e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/api/handlers/libpod/artifacts.go:122-131 | pkg/api/handlers/libpod/artifacts.go:378-387 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/artifacts.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"309c82cd3d1d3f17a3d2c45ae547183a4959b2b9ef7a0da0a90652e7dc6c5da0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/bindings/containers/attach.go:116-125 | pkg/bindings/containers/attach.go:477-487 \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/bindings/containers/attach.go:116\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/bindings/containers/attach.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ea9745618254a8736eabced3ee94f13ec184b7af034e759429ba479d680105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/filters/containers.go:82-91 | pkg/domain/filters/containers.go:479-488 \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/domain/filters/containers.go:82\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/domain/filters/containers.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c83f02fd164c701f1e994ee68b7212554f45f8aee2a974fc9e049e6736d79a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/infra/abi/play.go:449-458 | pkg/domain/infra/abi/play.go:464-473 \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/domain/infra/abi/play.go:449\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/domain/infra/abi/play.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa29b1ca6347be7fbedb36cbf8cd92cb77d7b0d1e431e222c6da7b970896c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/infra/abi/play.go:1144-1153 | pkg/domain/infra/abi/play.go:1266-1275 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/domain/infra/abi/play.go:1277\u0060 calls \u0060AddContainer\u0060 and \u0060pkg/domain/infra/abi/play.go:1155\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/domain/infra/abi/play.go"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"908e7e18dde8994a4e415ec5f770be3103a9790a6380323ef7065d45d9b08077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/infra/runtime_libpod.go:285-294 | pkg/util/utils.go:1038-1047 \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/domain/infra/runtime_libpod.go:285\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/domain/infra/runtime_libpod.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf7426e70301d57ef3ad5e52776b64fcc65e2519c849d13b63ab420b3bc926c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/infra/tunnel/containers.go:93-102 | pkg/domain/infra/tunnel/containers.go:118-127 \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/domain/infra/tunnel/containers.go:93\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/domain/infra/tunnel/containers.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee20cff84aafedcb47434fedb506aba622ca136d6c7a0e4be282373d46b6b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/utils/scp.go:122-131 | pkg/domain/utils/scp.go:173-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/utils/scp.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfde496e3aa98f753005587ee6a3b09455e197f6bc4bb6448d98426b9b285931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/machine/env/dir.go:18-27 | pkg/machine/env/dir.go:112-121 \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/machine/env/dir.go:18\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/env/dir.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae26560c757bbd98b2a3b941fffaa3fe06ab0e820118c31e294f04d3fb0c1d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/machine/os/machine_os.go:33-42 | pkg/machine/os/machine_os.go:61-70 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/machine/os/machine_os.go:33\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/machine/os/machine_os.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6729b3de33e3f06c9308fb913d03bea886032e0be28d676236dbb992a97bb564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/machine/provider/platform.go:13-23 | pkg/machine/shim/host.go:400-409 \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/machine/provider/platform.go:13\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/machine/provider/platform.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bb15ee4fc5b00d0ad9a36ffdb5b6aad9cb790538d19745c8f3a15aed528511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): pkg/specgen/volumes.go:189-196 | pkg/specgen/volumes.go:204-213 \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/specgen/volumes.go:204\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/volumes.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31e4339f61ee71d9abcd68fdf51d8e7ecc97d8edf8ca630db35540ff16270ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/util/utils.go:411-420 | pkg/util/utils.go:862-871 \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/utils.go:411\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/utils.go"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"020411eb1333acafb105fed2a671388afe91168259951ce0da63b4db4bda32e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/domain/infra/abi/play.go:396-404 | pkg/domain/infra/abi/play.go:415-423 | pkg/domain/infra/abi/play.go:485-493 \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/domain/infra/abi/play.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"042d92bc6f455d266fbb6eeba3b478ab43224b3baee2d03e2988a1c928035234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/domain/infra/abi/play.go:679-687 | pkg/domain/infra/abi/play.go:703-711 | pkg/domain/infra/abi/play.go:727-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/domain/infra/abi/play.go:679\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/domain/infra/abi/play.go:678\u0060 calls \u0060Sprintf\u0060 and \u0060pkg/domain/infra/abi/play.go:701\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/domain/infra/abi/play.go"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec0330644666b2ef130fe4ae9c8aa8c7d7442b725c70a5bc80a52bbee4dcb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cmd/podman/common/completion.go:159-167 | cmd/podman/common/completion.go:338-346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/common/completion.go:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f33e6c35a1f7cc4a76b471cfa3c034ab9aada01bb34168af96d33ba35f3b967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cmd/podman/networks/create.go:215-223 | cmd/podman/networks/create.go:237-245 \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":"cmd/podman/networks/create.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc7ca23c2f98ad157a24df5fabef213bca362dcbd95aa568c2cfac081815904"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libpod/container_internal.go:901-909 | libpod/pod_api.go:107-115 \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 \u0060libpod/container_internal.go:901\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":"libpod/container_internal.go"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5628dcbf6e665911664204f7bd28b10abe42cc89d5274485bd86f1b7d98191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/api/handlers/compat/containers.go:764-772 | pkg/api/handlers/libpod/containers.go:473-481 \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/api/handlers/compat/containers.go:764\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/api/handlers/compat/containers.go"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc282fd7de66e0822d54a2feb606cb4897c5239a60e88d276d5d15d98530813"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): pkg/api/handlers/compat/exec.go:243-249 | pkg/api/handlers/libpod/pods.go:482-490 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/exec.go"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c4a16680aadb700bfb525ecd75e54ab403d4fb0f4a6449eadababdab9c2384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/api/handlers/compat/images_remove.go:26-34 | pkg/api/handlers/libpod/manifests.go:757-766 \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/api/handlers/compat/images_remove.go:26\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 \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/api/handlers/compat/images_remove.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"20250b27b33a295528d36d888be7785f2b546c04d6584ce780a3a8db85efd225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/api/handlers/compat/volumes.go:146-154 | pkg/api/handlers/libpod/volumes.go:43-51 \u2014 \u0060pkg/api/handlers/compat/volumes.go\u0060 and \u0060pkg/api/handlers/libpod/volumes.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 7 separate duplicated blocks between them, totalling at least 89 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/api/handlers/compat/volumes.go:146\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/api/handlers/compat/volumes.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4d86df6e3d78a2c94b9e43f4bfa6914fb3c9faf11268cc77eab3fb8fdb15ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): pkg/api/handlers/libpod/images.go:186-194 | pkg/api/handlers/libpod/images.go:337-344 \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/api/handlers/libpod/images.go:186\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/api/handlers/libpod/images.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecbfa7f826e1304b283346dbdda47a4a5c1ed6559fe09fbe7432fc1167fc4f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/api/handlers/libpod/images_push.go:155-163 | pkg/api/handlers/libpod/manifests.go:468-476 \u2014 before extracting anything, compare \u0060pkg/api/handlers/libpod/images_push.go\u0060 and \u0060pkg/api/handlers/libpod/manifests.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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/api/handlers/libpod/images_push.go:155\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/api/handlers/libpod/images_push.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eaf2a4fb5582f85a77c3cccf72dc061facbbc9d6aa9a43894a35ee88bdeddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/api/handlers/libpod/pods.go:144-152 | pkg/api/handlers/libpod/pods.go:253-261 \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/api/handlers/libpod/pods.go:144\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/api/handlers/libpod/pods.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1956235eec60d87e6ac685f8ac0f626fc06c5bf1ea70616ed3f47162afe6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/domain/infra/tunnel/images.go:152-160 | pkg/domain/infra/tunnel/images.go:180-188 \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/domain/infra/tunnel/images.go:152\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/domain/infra/tunnel/images.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"456e372b3e559289bde2f67c437df50b3c5989035ad361250b9e3dfa817aafbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/domain/infra/tunnel/manifest.go:68-76 | pkg/domain/infra/tunnel/manifest.go:106-114 \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/domain/infra/tunnel/manifest.go:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/manifest.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4dd56a0544dc6010c2ee13718881cfa384a190861b5da76c32e3ec00eda521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/specgenutil/specgen.go:1111-1119 | pkg/specgenutil/specgen.go:1159-1167 \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/specgenutil/specgen.go:1111\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/specgenutil/specgen.go"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c2798e23cb80f5542156618b36da6b5c10fba8b00782d76af0773d26574951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/util/utils.go:382-390 | pkg/util/utils.go:835-843 \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/utils.go:382\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/utils.go"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"133a8b363c58f3ccf3e52a993a53d3a2e1afa404487b69ab513009a6ad842eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/api/handlers/compat/volumes.go:149-156 | pkg/api/handlers/libpod/volumes.go:46-53 | pkg/domain/infra/abi/volumes.go:22-29 \u2014 \u0060pkg/api/handlers/compat/volumes.go\u0060 and \u0060pkg/api/handlers/libpod/volumes.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 7 separate duplicated blocks between them, totalling at least 89 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/api/handlers/compat/volumes.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c6e98c068ff54aa9bcf13a69f51fc1c4b45b610489e23a735e30d38b3f19b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/domain/infra/tunnel/containers.go:93-100 | pkg/domain/infra/tunnel/containers.go:118-125 | pkg/domain/infra/tunnel/containers.go:222-229 \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/domain/infra/tunnel/containers.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a5ce907095c09028ba90f10b40ee121732d0d73942e0fbd505c277f31a255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/specgenutil/specgen.go:1110-1117 | pkg/specgenutil/specgen.go:1136-1143 | pkg/specgenutil/specgen.go:1158-1165 \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/specgenutil/specgen.go:1110\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/specgenutil/specgen.go"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc1c95ab44b7c280af3c2c55eefa3cffd04201fc78235032577e91e4fd51144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/container_internal.go:1113-1120 | libpod/container_internal.go:1655-1662 \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 \u0060libpod/container_internal.go:1113\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":"libpod/container_internal.go"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad199163e5ddc8189a2a12264edd71a154c6857045b8e7d894b3309059c07eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/container_internal_common.go:345-352 | libpod/container_internal_common.go:505-512 \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":"libpod/container_internal_common.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7647b62d3845706155753f43c0d6c9da8c53a1916205e64fc9c4b6a1f541e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/container_internal_common.go:1570-1577 | libpod/container_internal_common.go:2038-2045 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e6d29e3af32f23227ff57acfa0395c009e44a11db91338a310ff915ca1eb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/oci_conmon_common.go:215-222 | libpod/oci_conmon_common.go:234-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b9e9cebea436ac4b79d0f4eec5fce47588470a521ffae33b37aaa2e75ab864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/containers_restart.go:29-36 | pkg/api/handlers/compat/containers_stop.go:30-37 \u2014 before extracting anything, compare \u0060pkg/api/handlers/compat/containers_restart.go\u0060 and \u0060pkg/api/handlers/compat/containers_stop.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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/api/handlers/compat/containers_restart.go:29\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 \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/api/handlers/compat/containers_restart.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"866194888a2bed84634a45e83f3bbbe7449d7981df571d9f27cdd28fff6ef52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/images.go:65-72 | pkg/api/handlers/compat/images_remove.go:35-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/api/handlers/compat/images.go:63\u0060 calls \u0060Remove\u0060, \u0060Name\u0060 and \u0060pkg/api/handlers/compat/images_remove.go:34\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/api/handlers/compat/images.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78685bb27a86cce837e40f38c6e3711c2b8a5d52c484e4b482ad37567a9c04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/images.go:118-125 | pkg/api/handlers/libpod/images.go:581-588 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/images.go:118\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/api/handlers/compat/images.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"18479a80b2fe54df2d0a3e218aacf3c315507f5a6d703afc613e4a68c368b24a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/images.go:551-558 | pkg/api/handlers/libpod/images.go:438-445 \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/api/handlers/compat/images.go:551\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/api/handlers/compat/images.go"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0038ff31f887f200517ada0d3a3a9ab269a4f270411cc8e3c1f157237634e4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/images_history.go:16-23 | pkg/api/handlers/compat/images_tag.go:17-24 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images_history.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0735c49268db3b5a3c5b672e9eadd3181c408113701e72d9b48d95e8a39861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/system.go:24-31 | pkg/api/handlers/libpod/system.go:63-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/system.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6075428253209b1d083643d80f7889bc410b0fa39d26c066be672883b5a8c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/volumes.go:100-107 | pkg/api/handlers/libpod/volumes.go:30-38 \u2014 \u0060pkg/api/handlers/compat/volumes.go\u0060 and \u0060pkg/api/handlers/libpod/volumes.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 7 separate duplicated blocks between them, totalling at least 89 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/api/handlers/compat/volumes.go:100\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/api/handlers/compat/volumes.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1485c1f13da7c5b31ece2fbc24c9c590101eb510c6a1ac8e04a8cd33fdf25869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/libpod/images.go:787-794 | pkg/api/handlers/libpod/kube.go:240-247 \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/api/handlers/libpod/images.go:787\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/api/handlers/libpod/images.go"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25206e1a785bbd1490cfd1e6bcf0d1e390cbd437957a67e88b8c3fe5e6c60db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/libpod/networks.go:151-158 | pkg/api/handlers/libpod/networks.go:207-214 \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/api/handlers/libpod/networks.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/networks.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ad66d2dc4d119609b17bfe0e348879c76063bc64446a9d0b5fb12121dff296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/libpod/quadlets.go:199-206 | pkg/api/handlers/libpod/quadlets.go:292-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/libpod/quadlets.go:199\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/api/handlers/libpod/quadlets.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d0c57081ad4fd552e297445af7e0d59cfe99edbe1e99c650b056178110d64e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/bindings/images/images.go:220-227 | pkg/bindings/images/images.go:242-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/images/images.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d95fc561b30874b5bb16736ad32ace5253e047ffa4237c9e66dbf1830bb33c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/domain/filters/volumes.go:32-39 | pkg/domain/filters/volumes.go:98-105 \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/domain/filters/volumes.go:32\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/domain/filters/volumes.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"40eadc8d4cc0569a553b0d0ccd98c279894cdc47cd198ccea22c830f99ec92c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): pkg/domain/infra/abi/images.go:837-844 | pkg/domain/infra/abi/images.go:888-893 \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/domain/infra/abi/images.go"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a117d6645105e153f2bedd8fb02be357e73b20f62e59cb772dc21a2d6b316e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/domain/infra/abi/pods.go:334-341 | pkg/specgen/generate/pod_create.go:304-312 \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/domain/infra/abi/pods.go:334\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/domain/infra/abi/pods.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf91003b7ce5c327070bcb2258d7ebd5886a28a8ccc2961591984d1a07d30bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/domain/infra/tunnel/images.go:41-49 | pkg/domain/infra/tunnel/images.go:103-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/tunnel/images.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c96926810ae5c855966b0120ff81f73a32deae68a1c40b215774438506409bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): pkg/api/handlers/compat/containers.go:213-220 | pkg/api/handlers/compat/containers_restart.go:30-36 | pkg/api/handlers/compat/containers_stop.go:31-37 | pkg/api/handlers/compat/images_remove.go:27-34 | pkg/api/handlers/libpod/containers.go:234-241 | pkg/api/handlers/libpod/images.go:827-833 | pkg/api/handlers/libpod/pods.go:139-146 | pkg/api/handlers/libpod/pods.go:248-255 \u2014 there are 8 copies across 7 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/containers.go:213\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/api/handlers/compat/containers.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3091eddd36fb5642a988325d6206c3c38d24d1c67fe393c240976f6c5b342818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): pkg/domain/infra/abi/pods.go:75-81 | pkg/domain/infra/abi/pods.go:141-147 | pkg/domain/infra/abi/pods.go:175-181 | pkg/domain/infra/abi/pods.go:204-210 | pkg/domain/infra/abi/pods.go:230-236 | pkg/domain/infra/abi/pods.go:260-266 \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/domain/infra/abi/pods.go:75\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/domain/infra/abi/pods.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a4139c9c68f221bf5851184fe33fbdf59a91ba2ae787211209a3f39ebd64fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): pkg/api/handlers/libpod/pods.go:111-117 | pkg/api/handlers/libpod/pods.go:197-203 | pkg/api/handlers/libpod/pods.go:285-291 | pkg/api/handlers/libpod/pods.go:336-342 | pkg/api/handlers/libpod/pods.go:362-368 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/pods.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9430982080c5a891005937a2377bb6b5d3d836d1e40274f5b5827a9272482de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): libpod/container_exec.go:294-301 | libpod/container_exec.go:348-355 | libpod/container_exec.go:505-512 \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 \u0060libpod/container_exec.go:294\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":"libpod/container_exec.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4137245da67b6fbd42115c7cdaf2344925b29b81bc34eda5698be095763feed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/api/handlers/compat/containers_pause.go:14-22 | pkg/api/handlers/compat/containers_unpause.go:14-22 | pkg/api/handlers/libpod/containers.go:164-170 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. 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/api/handlers/compat/containers_pause.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a083fbbf4d446cb7c15a1e676a55decf83fcd46bd98dc1f1b69550559663d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 5): pkg/api/handlers/compat/containers.go:251-254 | pkg/api/handlers/compat/secrets.go:61-68 | pkg/api/handlers/libpod/containers_stats.go:33-36 | pkg/api/handlers/libpod/kube.go:269-276 | pkg/api/handlers/libpod/system.go:83-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/secrets.go:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/api/handlers/compat/containers.go:251\u0060 calls \u0060Decode\u0060, \u0060Query\u0060 and \u0060pkg/api/handlers/compat/secrets.go:61\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/api/handlers/compat/containers.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"26300a20c9a8b0a66cf14e864f8d5ee7ff5f24b704af57c8934e8b04f46ab814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/api/handlers/compat/volumes.go:201-207 | pkg/api/handlers/libpod/volumes.go:100-106 | pkg/api/handlers/libpod/volumes.go:233-240 \u2014 \u0060pkg/api/handlers/compat/volumes.go\u0060 and \u0060pkg/api/handlers/libpod/volumes.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 7 separate duplicated blocks between them, totalling at least 89 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. 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/api/handlers/compat/volumes.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"698e1e07f6ce8b2f201bc9b096781589fd038018b4553f7032e06539b5e110c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/api/handlers/libpod/networks.go:150-156 | pkg/api/handlers/libpod/networks.go:206-212 | pkg/api/handlers/libpod/networks.go:229-235 \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/api/handlers/libpod/networks.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41f87e923e89d013b128bb8a40890b60566f9a09b5220a38a004007ea6a87ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libpod/container.go:886-892 | libpod/container.go:898-904 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container.go"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d13397289a11d57a8ed34da1f47e4731415836b1f950bec1fd0e911292b0139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libpod/container_internal_common.go:3072-3078 | libpod/container_internal_common.go:3118-3124 \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 \u0060libpod/container_internal_common.go:3072\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":"libpod/container_internal_common.go"},"region":{"startLine":3072}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a82f1ae2da8d0517ef1c2d387427ba479608027b8c96d37eaeffcf9057fb76e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/api/handlers/compat/containers_stats.go:29-35 | pkg/api/handlers/compat/events.go:35-41 \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/api/handlers/compat/containers_stats.go:29\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/api/handlers/compat/containers_stats.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4027d6be7d0f5f40403bee9e5c9a5ab88524cf2eaa8ee139c87a1df658d17e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/api/handlers/compat/images.go:445-453 | pkg/api/handlers/libpod/pods.go:484-490 \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/api/handlers/compat/images.go:445\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/api/handlers/compat/images.go"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d359442a1d457625eee3a17a89de95c0ca2d815eab99ae1fca6057a8983db79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): pkg/api/handlers/libpod/autoupdate.go:35-40 | pkg/api/handlers/libpod/system.go:32-38 \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/api/handlers/libpod/autoupdate.go:35\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/autoupdate.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"560ba8ada4ea64da8cda548f225cdcdae5b8f5b63aa17b156533affea53cae13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/api/handlers/libpod/containers.go:139-145 | pkg/api/handlers/libpod/containers.go:181-187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/api/handlers/libpod/containers.go:177\u0060 calls \u0060WriteResponse\u0060, \u0060MountContainer\u0060 and \u0060pkg/api/handlers/libpod/containers.go:138\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/api/handlers/libpod/containers.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c4ff2ff589aa94632929ee52baa8f6228ebda69baddbae45a3c3232c306e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/domain/infra/tunnel/containers.go:593-599 | pkg/domain/infra/tunnel/containers.go:939-945 \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/domain/infra/tunnel/containers.go"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69883c20d0f3b4c5e9dc4c0811a53646675c6a31f4708f51bfb733dc975142f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/util/utils.go:425-431 | pkg/util/utils.go:876-882 \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/utils.go"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"2776bbe6b938244520e614492952c99349f56280d463edd6f33601680f95eb33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): pkg/api/handlers/libpod/networks.go:22-27 | pkg/api/handlers/libpod/networks.go:104-109 | pkg/api/handlers/libpod/networks.go:150-155 | pkg/api/handlers/libpod/networks.go:206-211 | pkg/api/handlers/libpod/networks.go:229-234 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/networks.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ecac04043ae4d89b88a56dec231730b51dc497c9581ff0599497a49655f001"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): libpod/sqlite_state.go:685-690 | libpod/sqlite_state.go:901-906 | libpod/sqlite_state.go:931-936 | libpod/sqlite_state.go:1678-1683 \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 \u0060libpod/sqlite_state.go:685\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":"libpod/sqlite_state.go"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00ec3a76d872e728899aa171ab4cd6bf85649e3c87ccf4da85d20109618e389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): libpod/sqlite_state.go:2276-2281 | libpod/sqlite_state.go:2319-2324 | libpod/sqlite_state.go:2372-2377 \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 \u0060libpod/sqlite_state.go:2276\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":"libpod/sqlite_state.go"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a99b0c27765d828401b342167715e2fe4121e212c7a15af1e550d53f71f1c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cmd/podman/artifact/push.go:80-86 | cmd/podman/images/push.go:113-118 \u2014 \u0060cmd/podman/artifact/push.go\u0060 and \u0060cmd/podman/images/push.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 71 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, \u0060cmd/podman/images/push.go:111\u0060 calls \u0060BoolVar\u0060 and \u0060cmd/podman/artifact/push.go:78\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/push.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e5199891da8f65dcee8f47d28e8a9a6b9188dcc8cde0ec7852975b009a3643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/container_internal_linux.go:500-507 | libpod/options.go:867-874 \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":"libpod/container_internal_linux.go"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f986769b938259b91e14884359eb16846eaffc7fffceb798b30d1f0ce48c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/api/handlers/compat/networks.go:558-563 | pkg/api/handlers/compat/volumes.go:282-287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/networks.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"babd1fd9419e75c165ef08f1ec19bf3ea7eccf428154ca5e217328e8b91c0f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/api/handlers/compat/secrets.go:23-28 | pkg/api/handlers/libpod/volumes.go:120-127 \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/api/handlers/compat/secrets.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6681852e25a392a869f487dafedfabcc3e1ad7f8f2ced5fdc2fbb2d0316535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/api/handlers/libpod/containers.go:219-224 | pkg/api/handlers/libpod/containers.go:305-310 \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/api/handlers/libpod/containers.go:219\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/api/handlers/libpod/containers.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17c231df64cf1f5a4c4bfdfb09de8388cc52556b7bcb1ef280cad87495eb697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/api/handlers/libpod/images.go:764-769 | pkg/api/handlers/libpod/manifests.go:758-766 \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/api/handlers/libpod/images.go:764\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/api/handlers/libpod/images.go"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9fe29b836ec2e9a3e352469efc4a3680d7d8706ff6fbf579c094976dbdf7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): pkg/api/handlers/compat/containers.go:217-222 | pkg/api/handlers/compat/containers_restart.go:33-38 | pkg/api/handlers/compat/containers_stop.go:34-38 | pkg/api/handlers/compat/images_remove.go:31-35 | pkg/api/handlers/libpod/containers.go:238-243 | pkg/api/handlers/libpod/images.go:190-195 | pkg/api/handlers/libpod/images.go:830-835 | pkg/api/handlers/libpod/pods.go:143-147 | pkg/api/handlers/libpod/pods.go:252-256 | pkg/api/handlers/libpod/quadlets.go:296-301 \u2014 there are 10 copies across 8 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"f133792a8dde51e311b45e88a422325f366b991c0ed31bd1b76cc9ba9d58da7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): pkg/api/handlers/compat/containers_prune.go:22-26 | pkg/api/handlers/compat/images_prune.go:25-29 | pkg/api/handlers/compat/networks.go:260-264 | pkg/api/handlers/compat/secrets.go:23-27 | pkg/api/handlers/compat/volumes.go:28-33 | pkg/api/handlers/libpod/networks.go:84-89 | pkg/api/handlers/libpod/volumes.go:120-125 \u2014 \u0060pkg/api/handlers/compat/volumes.go\u0060 and \u0060pkg/api/handlers/libpod/volumes.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 7 separate duplicated blocks between them, totalling at least 89 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. 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/api/handlers/compat/containers_prune.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c747e4ae3cdabb422f7e39c4a6a74330aeda556fe8f8e231359f18f513f7ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): libpod/oci_conmon_common.go:432-436 | libpod/oci_conmon_common.go:442-446 | libpod/oci_conmon_common.go:452-456 \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":"libpod/oci_conmon_common.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c868599aa4120c589af1e35fc550540adc5f2cba7b420176a9ecc3601c28d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): pkg/api/handlers/compat/containers.go:762-766 | pkg/api/handlers/libpod/containers.go:468-475 | pkg/api/handlers/libpod/volumes.go:288-292 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/containers.go:762\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/api/handlers/compat/containers.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90a208630baabe7fa4a24c4591ff80fb6e1c60b60c34238ad1f547c6c712ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libpod/runtime_ctr.go:1036-1040 | libpod/runtime_ctr.go:1192-1196 \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 \u0060libpod/runtime_ctr.go:1036\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":"libpod/runtime_ctr.go"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"debad7e716d2aea63edff11941488ddeff7a1f02422e4bf550d909cb2da1c402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/api/handlers/compat/networks.go:134-138 | pkg/api/handlers/compat/networks.go:430-434 \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/api/handlers/compat/networks.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e4ca2423744ac9559e3d6795d6b0e18bcbcf4e44211cd6a75688f1fa9044d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/api/handlers/libpod/kube.go:245-249 | pkg/api/handlers/libpod/networks.go:39-43 \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/api/handlers/libpod/kube.go:245\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/api/handlers/libpod/kube.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e8a666830972cae2c58940b62edaba386930734eaed5211d10f34d35cf2b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/domain/infra/abi/containers.go:255-260 | pkg/domain/infra/abi/containers.go:276-281 \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/domain/infra/abi/containers.go:255\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/domain/infra/abi/containers.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04f9126814b8efc2dbb576c08e35cc5dadac1643a7053d40ce2cd55cdaeff6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cmd/podman/images/search.go:215-222 | cmd/podman/system/df.go:164-172 \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":"cmd/podman/images/search.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f2f0298a4fa5d0dfd8dcb1b15b524d474a421fe176ec72d97b799d8b8a24e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cmd/podman/machine/inspect.go:122-129 | cmd/podman/utils/utils.go:153-160 \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":"cmd/podman/machine/inspect.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adcbc4b7f70665e23f410f3303dcfa3e0bfb0cf26aee7ba7064c3e25698a7e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): cmd/podman/networks/list.go:103-110 | cmd/podman/quadlet/list.go:106-113 | cmd/podman/volumes/list.go:132-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/networks/list.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b452b8b83b70aa2d0eab5b08adca68a8051e678fd88433ae2c291d83eea2579c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/container_copy_common.go:353-363 | pkg/util/utils.go:1144-1154 \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":"libpod/container_copy_common.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5841933d93cb46bdaa84b4759a82c4a7565632fed282a7963ec6552079469fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/container_internal_freebsd.go:165-174 | libpod/container_internal_linux.go:212-221 \u2014 before extracting anything, compare \u0060libpod/container_internal_freebsd.go\u0060 and \u0060libpod/container_internal_linux.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 80 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":"libpod/container_internal_freebsd.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"938b361ed8cd75ae8b391691b82d27a3bc4e076ddf55b9c06701501b3f58de45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): libpod/oci_conmon_common.go:862-867 | libpod/oci_missing.go:217-222 \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":"libpod/oci_conmon_common.go"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06e47bca08f9ac1a7b6691ce142bb8f596e1d1303737982002b0fe70f4519b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/entities/reports/containers.go:9-18 | pkg/domain/entities/reports/prune.go:48-57 \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/domain/entities/reports/containers.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e67c80f59bbec93dcdd6193edf95f6ab3d4bd6f994629d8993d43b440b2517b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/domain/entities/reports/containers.go:20-29 | pkg/domain/entities/reports/prune.go:59-68 \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/domain/entities/reports/containers.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16d2afa09aaeab4f065c4c4001a8388c06c2ec0ee7763a84df0ed7adc0bb344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/domain/infra/abi/images.go:943-948 | pkg/util/utils.go:1169-1175 \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/domain/infra/abi/images.go"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4766e5a28445075647b845146a8c7c9884ec4679e652429e655f2b74a086943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/pidhandle/pidhandle.go:117-126 | pkg/pidhandle/pidhandle_linux.go:188-197 \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/pidhandle/pidhandle.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6be0b7bf352774af7553f697ff5290c32984f66e2772ae156c6ed1a4df62119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): cmd/podman-testing/create.go:91-99 | cmd/podman-testing/create.go:101-109 | cmd/podman-testing/create.go:111-119 | cmd/podman-testing/create.go:121-129 | cmd/podman-testing/remove.go:86-93 | cmd/podman-testing/remove.go:95-102 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman-testing/create.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edf041c4d27f18e998e093ffa973c0432dfaf549ed2e10d341999bb8a12eaa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): cmd/podman/artifact/exists.go:28-37 | cmd/podman/images/exists.go:27-36 | cmd/podman/manifest/exists.go:26-35 | cmd/podman/networks/exists.go:29-38 | cmd/podman/secrets/exists.go:27-36 | cmd/podman/volumes/exists.go:29-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/exists.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eda184f9bbd2d4d8fa5187b574dc89253e6971ec8d15f610efb7bde73d2586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): cmd/podman/networks/disconnect.go:30-37 | cmd/podman/networks/list.go:55-62 | cmd/podman/networks/rm.go:43-50 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/networks/disconnect.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5733ebc49b30e8704a683c56197a48c1eba5b5362d5d6e868e123ccae989fb8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libpod/lock/file_lock_manager.go:40-51 | libpod/lock/shm_lock_manager_linux.go:47-58 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/lock/file_lock_manager.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a397f0497c8e1b5737cd9042de9da8a508c94efb0df612688bdd65d9a29d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): libpod/lock/file_lock_manager.go:110-114 | libpod/lock/file_lock_manager.go:117-121 | libpod/lock/shm_lock_manager_linux.go:126-130 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/lock/file_lock_manager.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8342b084c98da796f38079ac0bf64c16e9ea9dfc94c2c9ef9bf4c973a374cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libpod/util_freebsd.go:19-27 | libpod/util_linux.go:153-161 \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":"libpod/util_freebsd.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccdb47f41ba7b6ab3525357d6bc7cbc5f4f78de1d11c06d0e8d3c2d1c958579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/libpod/pods.go:310-317 | pkg/api/handlers/libpod/volumes.go:137-144 \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/api/handlers/libpod/pods.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"948f226a8df64bef320dbaab86f38a3a6202b2d5f034d8c61709079e7fdd5898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/domain/infra/tunnel/artifact.go:37-43 | pkg/domain/infra/tunnel/manifest.go:28-34 \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/domain/infra/tunnel/artifact.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae32325d91fc3221b2476ce351408ee87681d3f4bc588627585d8361c508159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/domain/infra/tunnel/network.go:98-106 | pkg/domain/infra/tunnel/volumes.go:89-97 \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/domain/infra/tunnel/network.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad21b86eadc6f9e3a49ca1cf21c0acd6dd70d4ec6c3b472db44be6edbc42a89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libpod/boltdb_state.go:474-489 | libpod/boltdb_state.go:583-598 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/boltdb_state.go:474\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":"libpod/boltdb_state.go"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edba2262fe2d523bc3709812499e7214071dd977593f36789ad74d79e59826a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/bindings/artifacts/pull.go:14-27 | pkg/bindings/images/pull.go:25-36 \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/bindings/artifacts/pull.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac927b14af4fd31519b271def82849e1b2e84012fc6904445b44541b885f284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/bindings/images/images.go:292-304 | pkg/bindings/images/pull.go:28-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/images/images.go:292\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/bindings/images/images.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ffd519b091824f5f2a54ad943509ad9c9034de42ffb251d66e5149d7f9ccf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libpod/sqlite_state.go:661-673 | libpod/sqlite_state.go:1535-1547 \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 \u0060libpod/sqlite_state.go:661\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":"libpod/sqlite_state.go"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c615ed032a4e36e68827f299044fc3946fe693c0790ee4a42ece2f6d5594a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libpod/sqlite_state.go:1774-1786 | libpod/sqlite_state.go:1849-1861 \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 \u0060libpod/sqlite_state.go:1774\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":"libpod/sqlite_state.go"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac4c119303d3b52c6d7bf0d23473889d9f8cf3c9d2aa970f6e0391a19b37c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/sqlite_state.go:1497-1507 | libpod/sqlite_state.go:2300-2312 \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 \u0060libpod/sqlite_state.go:1497\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":"libpod/sqlite_state.go"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7790068bc8e633aa42dead54425f9a9b03c7c91ca590278745133c65e302f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/domain/infra/abi/play.go:666-682 | pkg/domain/infra/abi/play.go:714-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. 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/domain/infra/abi/play.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb4ec458f4b5488e3d5a8f96ed98d36aa6514fd0e2a9b5edb72383e0dda5cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/bindings/images/images.go:272-281 | pkg/bindings/secrets/secrets.go:75-86 \u2014 \u0060pkg/bindings/images/images.go\u0060 and \u0060pkg/bindings/secrets/secrets.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 6 separate duplicated blocks between them, totalling at least 60 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/bindings/images/images.go:272\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/bindings/images/images.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"373e912cc3502b838ccd35f8ed19b926551e9196457b2ebc50ff91653aa392ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/domain/infra/tunnel/pods.go:238-249 | pkg/domain/infra/tunnel/secrets.go:40-51 \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/domain/infra/tunnel/pods.go:238\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/domain/infra/tunnel/pods.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5859dd8cc1b22d55e9c34e2d9f9197d9d3217aead21daeaed6d930da0961bb70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libpod/sqlite_state.go:526-537 | libpod/sqlite_state.go:551-562 \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 \u0060libpod/sqlite_state.go:526\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":"libpod/sqlite_state.go"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"d000355d4bd5d88132047556b294e3eb0b79c2d8e259580b10be381f632457ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/networking_common.go:450-461 | libpod/networking_common.go:595-605 \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 \u0060libpod/networking_common.go:450\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":"libpod/networking_common.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbd4b983bf3301dde4764ed4913c266e0d453444ec5867c575746d341d83c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libpod/reset.go:211-222 | libpod/reset.go:225-236 \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 \u0060libpod/reset.go:211\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":"libpod/reset.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c791b33173db9bfcf9dde0792e704b63ef0078b04dd94e7a849c10b4bb813c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cmd/podman/utils/utils.go:36-46 | cmd/podman/utils/utils.go:65-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/utils/utils.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b795beeb131d5a36943e49a8d06e49a4e2e7d0dd4b59a7344e70bf0f950966f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/bindings/containers/containers.go:111-120 | pkg/bindings/containers/diff.go:18-28 | pkg/bindings/generate/generate.go:19-29 | pkg/bindings/images/images.go:92-101 \u2014 \u0060pkg/bindings/containers/containers.go\u0060 and \u0060pkg/bindings/images/images.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/containers/containers.go:111\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/bindings/containers/containers.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"593c7986401d4c8b33c4c369532087b2cf3fa539b6498a35a41798dc7d1e7f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): pkg/bindings/containers/containers.go:135-145 | pkg/bindings/containers/containers.go:179-189 | pkg/bindings/containers/containers.go:203-213 | pkg/bindings/containers/rename.go:16-26 | pkg/bindings/volumes/rename.go:16-26 \u2014 \u0060pkg/bindings/containers/rename.go\u0060 and \u0060pkg/bindings/volumes/rename.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 22 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. 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/bindings/containers/containers.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce13bd5de60887a6d85e06b469e604d295f3cce291ba8820901950854bec573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): pkg/specgenutil/volumes.go:206-216 | pkg/specgenutil/volumes.go:244-254 | pkg/specgenutil/volumes.go:256-266 | pkg/specgenutil/volumes.go:268-278 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/volumes.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacb65c74825a57bc3a1e7f2c3e87158e86bb2cf50a8f9f8d0ed08d9e8e6f143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/runtime_pod_common.go:43-53 | libpod/runtime_volume_common.go:235-245 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also 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":"libpod/runtime_pod_common.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4630f2bc67cb6f7fb3676a7c656f886b7c10a67db336e7390c1454d4bd27f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/sqlite_state.go:2395-2405 | libpod/sqlite_state.go:2451-2460 \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 \u0060libpod/sqlite_state.go:2395\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":"libpod/sqlite_state.go"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cff70fdca6371b5e893f74c1c5a5a3a319b8206f88c4857c371ae65371120a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/boltdb_state.go:457-466 | libpod/boltdb_state.go:565-575 \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 \u0060libpod/boltdb_state.go:457\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":"libpod/boltdb_state.go"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b426b9398c7a3a152cf84c1264afa34cd96e498a4459d22fdb0d1e67d692e1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cmd/podman/containers/prune.go:53-63 | cmd/podman/networks/prune.go:56-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/podman/containers/prune.go:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/prune.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"87270ac29a48dd4184644afdc8c8dff6f1ea8d1583ea14bf22f3fe67b799a9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/domain/infra/abi/containers.go:263-273 | pkg/domain/infra/abi/containers.go:284-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/domain/infra/abi/containers.go:263\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/domain/infra/abi/containers.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0939581869d1a4956e39385f06015b635fd66c62b986754433d83aeb36b1f8cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/bindings/containers/containers.go:63-72 | pkg/bindings/network/network.go:226-236 | pkg/bindings/volumes/volumes.go:91-100 \u2014 \u0060pkg/bindings/containers/containers.go\u0060 and \u0060pkg/bindings/volumes/volumes.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/containers/containers.go:63\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8646d717c92f081438343714dc50495031c3d20aa36fa2e111224b4dcf3d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): pkg/bindings/containers/containers.go:159-169 | pkg/bindings/containers/containers.go:326-336 | pkg/bindings/containers/mount.go:39-49 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/containers/containers.go:159\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a831072bd0032dd2a7aacb688226b649a1a0fff22a750f73a588987d3be06e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libpod/container_api.go:472-482 | libpod/container_api.go:1038-1048 \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 \u0060libpod/container_api.go:472\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. 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":"libpod/container_api.go"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"620056852fa728be5d150fa0143e99dbff1574bc6a9a124cbd520c31ea453041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/bindings/containers/exec.go:102-112 | pkg/bindings/containers/exec.go:145-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/bindings/containers/exec.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69a7e707433a54baf987913d1a12d114c308b2f92242b953505b12f61c3b75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/bindings/network/network.go:61-70 | pkg/bindings/network/network.go:158-168 | pkg/bindings/network/network.go:187-197 \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/bindings/network/network.go:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/network/network.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ea8f3100d1659f8efb0fa2c8a3c1210eb58fc9d964c6786254c6f1b4b0cdb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/domain/infra/tunnel/containers.go:105-115 | pkg/domain/infra/tunnel/containers.go:130-140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/domain/infra/tunnel/containers.go:105\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/domain/infra/tunnel/containers.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"026ae630e598caa92abbd69da723124d2968c6fb8aa48d59f619e5408ea2af98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/domain/infra/tunnel/containers.go:333-342 | pkg/domain/infra/tunnel/pods.go:236-245 | pkg/domain/infra/tunnel/secrets.go:38-47 | pkg/domain/infra/tunnel/volumes.go:63-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/domain/infra/tunnel/containers.go:333\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/domain/infra/tunnel/containers.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdf5b38c71d0611cc12bf567af7b3b27932f994f92789a7c7093e01eb23142d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/systemd/dbus.go:39-48 | pkg/systemd/dbus.go:58-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/systemd/dbus.go:39\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/systemd/dbus.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76745b82bb43a0cc2464c105cb5d5b062c1ef6843a4325629f0b53bbe3e84a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): pkg/bindings/containers/containers.go:110-118 | pkg/bindings/containers/diff.go:17-26 | pkg/bindings/generate/generate.go:18-27 | pkg/bindings/images/images.go:91-99 | pkg/bindings/secrets/secrets.go:39-47 \u2014 \u0060pkg/bindings/containers/containers.go\u0060 and \u0060pkg/bindings/images/images.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/containers/containers.go:110\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/bindings/containers/containers.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc81a0890bc8552477d9860be92b19072ff75ef251b09422800bfb8c8a1daca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/sqlite_state.go:803-812 | libpod/sqlite_state_internal.go:388-397 \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 \u0060libpod/sqlite_state.go:803\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":"libpod/sqlite_state.go"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b5985868c281f9cccd1f56ba9cb58551c182005fb55c387c5fc18d721ef5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/bindings/containers/containers.go:59-68 | pkg/bindings/system/system.go:67-76 | pkg/bindings/system/system.go:87-96 | pkg/bindings/volumes/volumes.go:87-96 \u2014 \u0060pkg/bindings/containers/containers.go\u0060 and \u0060pkg/bindings/volumes/volumes.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/containers/containers.go:59\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/bindings/containers/containers.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"84675cad289d0e104f84ff05b8f3ce958c4d63d5c9ad383aadf7fbe7f011d9ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): pkg/bindings/images/images.go:24-33 | pkg/bindings/manifests/manifests.go:67-76 | pkg/bindings/network/network.go:202-211 | pkg/bindings/secrets/secrets.go:94-103 | pkg/bindings/volumes/volumes.go:125-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. 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/bindings/images/images.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dda4be046c35745388996ab12fa424fb69fbe187bdaa15ae82892ae10f20c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): libpod/sqlite_state.go:162-171 | libpod/sqlite_state.go:194-203 | libpod/sqlite_state.go:227-236 \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 \u0060libpod/sqlite_state.go:162\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":"libpod/sqlite_state.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f9d8878fc093a56278aee36fbeb1ea5a09d89594a8b9c918821ef3781f5b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/bindings/images/images.go:44-53 | pkg/bindings/network/network.go:120-129 | pkg/bindings/secrets/secrets.go:16-25 | pkg/bindings/volumes/volumes.go:66-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/images/images.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. 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/bindings/images/images.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"008ad6e204b4b4cd3040c372febff8cdd04f23a4e2c214796583b3e11c9958e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): pkg/bindings/containers/containers.go:37-46 | pkg/bindings/images/images.go:49-58 | pkg/bindings/network/network.go:125-134 | pkg/bindings/secrets/secrets.go:21-30 | pkg/bindings/volumes/volumes.go:71-80 \u2014 \u0060pkg/bindings/containers/containers.go\u0060 and \u0060pkg/bindings/images/images.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/containers/containers.go:37\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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/bindings/containers/containers.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0409fff4b3ff6b92fcc3c378d78648de29986eddcf744ed428aeecff1ba11e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/namespaces/namespaces.go:74-83 | pkg/util/utils.go:930-939 \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/namespaces/namespaces.go:74\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/namespaces/namespaces.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac020063180ccf534938867c807fd83888672b0ec71356cde5948fd08e50218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libpod/runtime_renumber.go:42-51 | libpod/runtime_renumber.go:59-68 \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 \u0060libpod/runtime_renumber.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":"libpod/runtime_renumber.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"796c65a516d4519cef00ba22a6c4552d6d9a16b5880b3d89c0befefd7ee84b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): pkg/bindings/artifacts/list.go:13-22 | pkg/bindings/system/info.go:13-21 | pkg/bindings/system/system.go:117-125 | pkg/bindings/system/system.go:159-167 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/artifacts/list.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c76c02e40f0c2bc3ff2d30aacbcbfa105ff5b8f39a1d2b56fb4a6b5b636b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libpod/container_internal_common.go:878-886 | libpod/container_internal_common.go:895-903 \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 \u0060libpod/container_internal_common.go:878\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":"libpod/container_internal_common.go"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b08115f5728ed322c11cce94cf3db6501957a81eb9c57e459fb8942f54dde16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): pkg/bindings/containers/containers.go:157-165 | pkg/bindings/containers/containers.go:324-332 | pkg/bindings/containers/containers.go:445-453 | pkg/bindings/containers/mount.go:37-45 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fb3c6ae0b9d717084e1abe3363331cec5d53825c7c3827de25cb3843189a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libpod/sqlite_state.go:1236-1244 | libpod/sqlite_state.go:1625-1633 \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 \u0060libpod/sqlite_state.go:1236\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":"libpod/sqlite_state.go"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfab5d51262b13a82d356938c27a818d99bce8e4c70cc2202106d970a29b7b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/api/handlers/compat/images.go:300-308 | pkg/api/handlers/libpod/images_pull.go:118-126 \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/api/handlers/compat/images.go:300\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/api/handlers/compat/images.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b50e441060ac7f48930e07406f7e2812e6253c87fb35337e4e7fee4ac1f21b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/bindings/artifacts/inspect.go:12-20 | pkg/bindings/images/diff.go:17-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/artifacts/inspect.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b75e14ea6eac17b6404482ba3f59d6be5caaf907bb28e1b888e34298e14ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/bindings/images/images.go:352-360 | pkg/bindings/volumes/volumes.go:141-149 \u2014 \u0060pkg/bindings/images/images.go\u0060 and \u0060pkg/bindings/volumes/volumes.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 6 separate duplicated blocks between them, totalling at least 56 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/bindings/images/images.go:352\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/bindings/images/images.go"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"e759eda383261a3a701ef99c0238bd2d45068c45d54453c770bb85e6af70df31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): pkg/api/handlers/compat/containers.go:50-57 | pkg/api/handlers/libpod/artifacts.go:430-435 | pkg/api/handlers/libpod/containers.go:39-46 | pkg/api/handlers/libpod/containers.go:323-329 | pkg/api/handlers/libpod/images.go:764-769 | pkg/api/handlers/libpod/manifests.go:758-766 \u2014 there are 6 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/containers.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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/api/handlers/libpod/containers.go:36\u0060 calls \u0060GetName\u0060 and \u0060pkg/api/handlers/libpod/manifests.go:754\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/api/handlers/compat/containers.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22159a1d659ace818af6974d603b3d4398a293713a417b6fd988e13b50bd1b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): pkg/bindings/containers/containers.go:58-66 | pkg/bindings/images/images.go:199-207 | pkg/bindings/system/system.go:66-74 | pkg/bindings/system/system.go:86-94 | pkg/bindings/volumes/volumes.go:86-94 \u2014 \u0060pkg/bindings/containers/containers.go\u0060 and \u0060pkg/bindings/images/images.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/bindings/containers/containers.go:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/containers/containers.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e638a4bcd270a3ca58eabaf245ba27aa685c36b88edb34af41abacf69d601fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libpod/sqlite_state.go:1369-1377 | libpod/sqlite_state.go:1425-1433 \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 \u0060libpod/sqlite_state.go:1369\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":"libpod/sqlite_state.go"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f5ce260809ef97928be5ec9c968ce94935eb63a88f599c1f99be161866cfdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/api/handlers/compat/images_push.go:44-52 | pkg/api/handlers/compat/images_search.go:30-38 \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/api/handlers/compat/images_push.go:44\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/api/handlers/compat/images_push.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e202089140b28d03b28b6af9c4f22ff9bb36cfac9ae1c8c72d005d7397cbbbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/bindings/artifacts/remove.go:13-21 | pkg/bindings/network/network.go:96-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/artifacts/remove.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff129d45ac8b8eccd7b06711f5031a9e1bb962d7f470e547f209ecc042d5716"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/domain/filters/volumes.go:56-64 | pkg/domain/filters/volumes.go:113-121 \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/domain/filters/volumes.go:56\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/domain/filters/volumes.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3ffeaea8ed739adf42818e4088c35020e2e86d43580eb031c07868258b8dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/api/handlers/libpod/pods.go:186-194 | pkg/api/handlers/libpod/pods.go:300-308 | pkg/api/handlers/libpod/pods.go:351-359 \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/api/handlers/libpod/pods.go:186\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/api/handlers/libpod/pods.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9357e7a5a6dc2b3e3ac972f2c6519f1ca62bd753a667c52c78981b4e3852b972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/sqlite_state.go:863-870 | libpod/sqlite_state.go:1244-1251 \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 \u0060libpod/sqlite_state.go:863\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libpod/sqlite_state.go:872\u0060 calls \u0060Commit\u0060, \u0060Errorf\u0060, \u0060ID\u0060 and \u0060libpod/sqlite_state.go:1253\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":"libpod/sqlite_state.go"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da24bc8bb333038d31e18cc5e1d4b8493bcd3ef05b0164bcf14eeb8741013bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/sqlite_state.go:1389-1396 | libpod/sqlite_state.go:1462-1469 \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":"libpod/sqlite_state.go"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e97f656ef2a12d6943176a97948debdaf747938824d0977c9ae74abc8ac747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): pkg/bindings/artifacts/exists.go:12-19 | pkg/bindings/images/images.go:23-30 | pkg/bindings/manifests/manifests.go:66-73 | pkg/bindings/network/network.go:201-208 | pkg/bindings/secrets/secrets.go:93-100 | pkg/bindings/volumes/volumes.go:124-131 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. 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/bindings/artifacts/exists.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e35e10b4f250b9eee38676a1eacd32d7465ee1277f152bb4d21f80c2f25749a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/api/handlers/compat/images.go:186-193 | pkg/api/handlers/libpod/containers.go:131-138 | pkg/api/handlers/libpod/images.go:507-514 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/images.go:186\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/api/handlers/compat/images.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"10effeb4ae9892913aa0cf3f5650ed226244070b9a8c6dccf6de170e08de10ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/api/handlers/libpod/quadlets.go:199-206 | pkg/api/handlers/libpod/quadlets.go:292-299 | pkg/api/handlers/libpod/quadlets.go:351-358 \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/api/handlers/libpod/quadlets.go:199\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/api/handlers/libpod/quadlets.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4d5eb85599301f83af9d76904c0cf58f535e563ddbad3b8aec50433c7eddd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): pkg/api/handlers/compat/containers.go:762-766 | pkg/api/handlers/compat/exec.go:245-249 | pkg/api/handlers/compat/images.go:269-275 | pkg/api/handlers/compat/images.go:527-534 | pkg/api/handlers/libpod/containers.go:468-475 | pkg/api/handlers/libpod/system.go:29-35 | pkg/api/handlers/libpod/volumes.go:288-292 \u2014 there are 7 copies across 6 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/api/handlers/compat/containers.go:762\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/api/handlers/compat/containers.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab7ab40787c5c94fc4558afd960fcde83175c2a2fe07ea11d100d058f98f303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/systemd/generate/containers.go:519-526 | pkg/systemd/generate/pods.go:404-411 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/generate/containers.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1673f61714cbdca76ff554985605454d0e8319d433a53036a616ec1cdcf400c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/container_internal_common.go:3058-3065 | libpod/container_internal_common.go:3104-3111 \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":"libpod/container_internal_common.go"},"region":{"startLine":3058}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e8e979fa0291aa76136eb6137021bba0e5eb038ea15338f3b8d862b9b73963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/api/handlers/libpod/pods.go:299-306 | pkg/api/handlers/libpod/pods.go:350-357 | pkg/api/handlers/libpod/pods.go:376-383 \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/api/handlers/libpod/pods.go"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d6aa666960c0873b088b4079f0a9f794bdb5e29d3594e87576f7a8f11bee20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libpod/runtime.go:1277-1284 | libpod/runtime.go:1287-1294 \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":"libpod/runtime.go"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad16a6e5d6790fe970107531428b43210e9b47d9e09ff4fc90209254bd3ccd5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/api/handlers/compat/images_push.go:209-216 | pkg/api/handlers/utils/images.go:239-246 \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/api/handlers/compat/images_push.go:209\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/api/handlers/compat/images_push.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba83ba181ab52e37a136474e0560c4fe906a05d5f44c7f79cac56327a939cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/api/handlers/compat/images.go:56-62 | pkg/api/handlers/libpod/images.go:424-430 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe84b1126221e48ad462b9a9071fa4f05a3f443447f3f19ea24a1e4148571dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): libpod/sqlite_state.go:787-793 | libpod/sqlite_state.go:1267-1273 | libpod/sqlite_state.go:1324-1330 | libpod/sqlite_state.go:1782-1788 | libpod/sqlite_state.go:1857-1863 | libpod/sqlite_state.go:1980-1986 | libpod/sqlite_state_internal.go:372-378 \u2014 there are 7 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/sqlite_state.go:787\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":"libpod/sqlite_state.go"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0aab8146b58ca1d98024a1fda584705bfc717cfe903b8e739da3cbbeb0f26f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): libpod/sqlite_state.go:1373-1379 | libpod/sqlite_state.go:1429-1435 | libpod/sqlite_state.go:2225-2231 \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 \u0060libpod/sqlite_state.go:1373\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":"libpod/sqlite_state.go"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fd07489829deff150b2aa8c9d7b8c5a82a2fbc23cdefbb4443c187b737563c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/machine/wsl/machine.go:552-558 | pkg/machine/wsl/machine.go:561-567 \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/machine/wsl/machine.go"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86839d64f79505ee7b004896440cd68775386ad685d6668177d310a20dddf8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/specgenutil/volumes.go:469-475 | pkg/specgenutil/volumes.go:477-483 \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/specgenutil/volumes.go:469\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/specgenutil/volumes.go"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"452d14ceb3a4f2d2f5bda4cec4bdaf2165698b79c2adb7abd0c58355476535e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libpod/container_internal_common.go:3050-3056 | libpod/container_internal_common.go:3096-3102 \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":"libpod/container_internal_common.go"},"region":{"startLine":3050}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec2317faacab961ea804f967be45988aa6fec8e9d4ff259e825b801b399e5b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/api/handlers/libpod/containers.go:363-369 | pkg/api/handlers/libpod/images.go:65-71 \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/api/handlers/libpod/containers.go:363\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/api/handlers/libpod/containers.go"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"41322141260c179d2e95ab49ac86639df7113266027c5799469f6a3c8f9fcc32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libpod/sqlite_state_internal.go:638-644 | libpod/sqlite_state_internal.go:657-663 \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 \u0060libpod/sqlite_state_internal.go:638\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":"libpod/sqlite_state_internal.go"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a3b7e48cb9fd189ffcbf78818bf21e8cb7dfc8f8f24b8f5b71ea947bd31582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/domain/infra/tunnel/images.go:211-216 | pkg/domain/infra/tunnel/network.go:33-38 \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/domain/infra/tunnel/images.go:211\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/domain/infra/tunnel/images.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a338a03b2a37d8d6ffbbc451faacba2ee2cd7570270e01feabd055a0c4550b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): libpod/sqlite_state.go:1746-1750 | libpod/sqlite_state.go:2092-2096 | libpod/sqlite_state_internal.go:437-441 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/sqlite_state.go:1746\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":"libpod/sqlite_state.go"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"4160cd3200de1ad92250f3deef99500c2aafd0643d8b8117ba2554c76cdd8e9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libpod/runtime_ctr.go:844-848 | libpod/runtime_ctr.go:864-868 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libpod/runtime_ctr.go:844\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":"libpod/runtime_ctr.go"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b715e7dac2ec61e436300c79a7e5163b28a8c28bfaa2dd9b36a3033503db57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/specgen/generate/storage.go:176-180 | pkg/specgen/generate/storage.go:184-188 \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/specgen/generate/storage.go:176\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/specgen/generate/storage.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"734378a58166b72d4a25d85091fb3b675ee0b7224c27a2183d75709068cf21d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): libpod/runtime_volume_common.go:174-179 | libpod/runtime_volume_common.go:218-223 \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":"libpod/runtime_volume_common.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9de949f4a0d8b504bc45194afd85ce9d01d3898f2b7646f53043fc056478e11"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ContainerEngine (LCOM4 8): ContainerEngine\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/runtime.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1235cbbeb0b86a9bafdf590a805ee3c5ebb421ccd717c2cbddc76661e696b6b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConmonOCIRuntime (LCOM4 7): ConmonOCIRuntime\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/oci_conmon_common.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7343689d76b62125b2503c44908963c6c62f321514b08cc7a9381b671b73f7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: sshStdioConn (LCOM4 4): sshStdioConn\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/connection_stdio.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbb9632f0515e091b4547c2fb987a96888c163cfbccf35c7e850a225a17b602"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ImageEngine (LCOM4 4): ImageEngine\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/runtime.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf5871681b3f4a34981c821f831b8501398081a634101dfd7b0a132e4f4f3e9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: QEMUStubber (LCOM4 4): QEMUStubber\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/qemu/stubber.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"942a69b87e2e77b04bda9a3965009b81e7ae9669b3fd7c5f562bb5cd30241ca1"}},{"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":"D15","level":"warning","message":{"text":"Hotspot: libpod/container_internal_common.go: libpod/container_internal_common.go changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 157 in Container.generateSpec at line 235. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/container_internal_common.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal_common.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8070987035fb42a1eeb8290736500214e3e6b2b1c45374d8bda4617501ea329"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/specgenutil/specgen.go: pkg/specgenutil/specgen.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 208 in specgenutil.FillOutSpecGen at line 334. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/specgenutil/specgen.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgenutil/specgen.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75bca6da544d24fc761dc6bd51405638f185bb1af76ac99f2bfa906752c939a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/common/build.go: cmd/podman/common/build.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in common.buildFlagsWrapperToOptions at line 303. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/common/build.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/build.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"018b3525db508fb3003788969f3042e93980a35b1e9360f7072889d76dadf238"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/container_internal.go: libpod/container_internal.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in Container.mountStorage at line 1750. 4 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/container_internal.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_internal.go"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f23a112832fc83f8c4ab2334a157e19fb8c4cc4ce5f58be771709d86de9991"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/api/handlers/compat/containers_create.go: pkg/api/handlers/compat/containers_create.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 92 in compat.cliOpts at line 247. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/api/handlers/compat/containers_create.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers_create.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b13b70dc99cf9613f26b5e44bf441742237afbfcfd89aee3b1a6506779d112c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/domain/infra/abi/play.go: pkg/domain/infra/abi/play.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in ContainerEngine.PlayKube at line 238. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/domain/infra/abi/play.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/play.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e5d9e458af6522426a5e0edba3adbe4e5c0e22f9af55431d0bbeb8b5d9d4b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/specgen/generate/container.go: pkg/specgen/generate/container.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in generate.CompleteSpec at line 144. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/specgen/generate/container.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/container.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1437a5bd6efbdc4771a94e373c6792e3099b74c7ca6982fef92ab78459658f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/api/handlers/compat/images_build.go: pkg/api/handlers/compat/images_build.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in compat.createBuildOptions at line 407. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/api/handlers/compat/images_build.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/images_build.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"336a950a380628e788332502a22f8698aa0268c2129eed797e719566fb1985e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/runtime.go: libpod/runtime.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in libpod.makeRuntime at line 330. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/runtime.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc32d0287125c4a749b1d6557f5321349e5fdaee6a92e36743b885470bdee329"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/specgen/generate/container_create.go: pkg/specgen/generate/container_create.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in generate.MakeContainer at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/specgen/generate/container_create.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/container_create.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d519a37a4580414a54a2b03b2fa1e940dab0d41354a32e056c021f09765c2b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/domain/utils/scp.go: pkg/domain/utils/scp.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in utils.ExecuteTransfer at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/domain/utils/scp.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/utils/scp.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"776fbfaff13763d0f6a18791444a97ec9a4993fa22c69ed870588fba0ebd751c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/specgen/generate/kube/kube.go: pkg/specgen/generate/kube/kube.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in kube.ToSpecGen at line 209. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/specgen/generate/kube/kube.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/kube/kube.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2b72ee688914d85f54632465d448f5f9b63ba0d247b8ddf0f63dde9060565a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/kube/play.go: cmd/podman/kube/play.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in kube.play at line 239. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/kube/play.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/kube/play.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3d59a0bdf4330faad573c5c7bdfbab0826eedd85bb75c62fdb1c631a654e0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/machine/shim/host.go: pkg/machine/shim/host.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in shim.startLocked at line 558. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/machine/shim/host.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/shim/host.go"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"d066a6bd61ac8457bc3679abc5dc1d2cdf18e3e4c865a62738a6ba7cc299f3b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/domain/filters/containers.go: pkg/domain/filters/containers.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 85 in filters.GenerateContainerFilterFuncs at line 51. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/domain/filters/containers.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/filters/containers.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d592d6c509982832a9ee146b496deada785f316040e6cd4c390404300b7f04f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/containers/run.go: cmd/podman/containers/run.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in containers.run at line 105. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/containers/run.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/run.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76be958cfa6086efdd47cfc2d3983821ca1829788f097757fcc89291ea49a91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/root.go: cmd/podman/root.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in main.persistentPreRunE at line 270. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/root.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/root.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6f18f8c9135253ce5bdc4c44469bfde09bdd7e2413f7aa8d94b74c09b737f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/container_inspect.go: libpod/container_inspect.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Container.generateInspectContainerHostConfig at line 491. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/container_inspect.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_inspect.go"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"98339e651c85ef5be0af8bfeb3a34e4141e53d3e8c37673122ad58e1d9aabb2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/api/handlers/compat/containers.go: pkg/api/handlers/compat/containers.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in compat.UpdateContainer at line 786. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/api/handlers/compat/containers.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers.go"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37274e451bc9699f00382d26e8fdfd221fcd69e33cc3543c4bcb8fd88e6623c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/common/create.go: cmd/podman/common/create.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in common.DefineCreateFlags at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/common/create.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/create.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"923b437efe1924f6c753c5cb83419ad19c3bae8a230dbdfe0095cc3603533f62"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/runtime_volume_common.go: libpod/runtime_volume_common.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in Runtime.newVolume at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/runtime_volume_common.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/runtime_volume_common.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"931be83fa16d23e1f79a8f80217ba868d18feea718dd1afb91891afbe40ac37a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/container_copy_common.go: libpod/container_copy_common.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in Container.copyFromArchive at line 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/container_copy_common.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_copy_common.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"778d98cfc90fafcda0ac1a590ba2f13af0baeaffb7ade66ee3d49030cffcd018"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/quadlet/main.go: cmd/quadlet/main.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in main.process at line 527. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/quadlet/main.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/quadlet/main.go"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"167f255356e92eef896921e8071fea4d658828ffe11e001d5a00c5f9d5644bf3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/systemd/quadlet/quadlet.go: pkg/systemd/quadlet/quadlet.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in quadlet.ConvertVolume at line 1136. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/systemd/quadlet/quadlet.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/quadlet/quadlet.go"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7813e0c82d41728025f671e838a750dd8f60ca252d793853f6e22b0d46c2d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/containers/create.go: cmd/podman/containers/create.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in containers.create at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/containers/create.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/create.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"555bdd27c0dea131efd7186da7590a6fdcd3ede0da1084537f1ba76a35539b4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/volume_internal_common.go: libpod/volume_internal_common.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Volume.mount at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/volume_internal_common.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/volume_internal_common.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"887657c96d4ca13df7a9bf38b16bec0a6dcae6eaa2e2ee279bb5890180e05566"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/kube.go: libpod/kube.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Pod.podWithContainers at line 569. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/kube.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/kube.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e766ac9217aca3d93041b0a29e3d4f6ba31f981ad0716ed16aa22c70fa95b99"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/api/handlers/libpod/kube.go: pkg/api/handlers/libpod/kube.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in libpod.KubePlay at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/api/handlers/libpod/kube.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/libpod/kube.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc5cb3d455303fd084a34d31f9d6e47d1fde5d20afd3bf87663c1278f7b6462"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libpod/container_path_resolution.go: libpod/container_path_resolution.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Container.resolvePath at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- libpod/container_path_resolution.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_path_resolution.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"20562ba4ec37740e4081db2e004239b17720e343e7b9f194d6bea339c1f4e1d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/containers/cp.go: cmd/podman/containers/cp.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in containers.copyFromContainer at line 205. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/containers/cp.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/cp.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e58635f8cab9a496a68de6ee2c1b57b8d346ba6702eb472c0e44ddee4ec860"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/machine/init.go: cmd/podman/machine/init.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in machine.initMachine at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/machine/init.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/init.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea616fa584111d7f44e2d77366f5b2fe70a227dfbab786ee36dc0da3c4b20768"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/api/handlers/compat/containers_stats.go: pkg/api/handlers/compat/containers_stats.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in compat.StatsContainer at line 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/api/handlers/compat/containers_stats.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/handlers/compat/containers_stats.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee09a5785ea830d6eea12faec2e5086b6cbcb1ea26aa35997d10521cf8eb72d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/images/push.go: cmd/podman/images/push.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in images.imagePush at line 158. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/images/push.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/push.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff52f6801cb69aed77514644ce286368b6d8a367e0d4e39ecc5fd4d88623371"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/images/pull.go: cmd/podman/images/pull.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in images.imagePull at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/images/pull.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/pull.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0ddd22f4542b2f5cea69e5f142e36c1351b3ac634bded75b6ca86d7d31f92c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/systemd/notifyproxy/notifyproxy.go: pkg/systemd/notifyproxy/notifyproxy.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NotifyProxy.listen at line 189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- pkg/systemd/notifyproxy/notifyproxy.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/systemd/notifyproxy/notifyproxy.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee27fd2cf530093790607d3d7dd9c419cf5169b9b1a6d1c6669a6a6526f1a790"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/podman/system/prune.go: cmd/podman/system/prune.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in system.prune at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 14:00:58 -06:00\u0027 --until=\u00272026-11-12 14:00:58 -06:00\u0027 --full-history --no-merges -- cmd/podman/system/prune.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/system/prune.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"709af1eb26ba0b25f4869551c592a96c324d87c7c2f8455a011bbb19e6129638"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: pkg/machine/gvproxy_notify.go, pkg/api/handlers/compat/version.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a2eeb8e9b1716d8b7f829287c3e62b5014972a05c51430d096a4836bea184dd5"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 8 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (10 single-owned of 498 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 498 of the 979 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) (\u002B2 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: pkg/domain/utils/scp_compression.go, pkg/domain/infra/abi/trust.go, pkg/bindings/manifests/types.go, libpod/networking_machine.go, pkg/bindings/connection_stdio.go, cmd/podman/system/dial_stdio.go, pkg/specgen/utils_linux.go, pkg/api/handlers/compat/distribution.go."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME - I see no situation in which we could ever want this? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/utils/matchers.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb66049165d052ae7d0ec60212b53f3de4ceb49eb651ca52f70b9d6a103bc6f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME should DELETE /images accept the sha256: prefix? \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":"test/python/docker/compat/common.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0917ad198406d79afe851dd86a571cf3e50ea99b09685d980350437869bc65d1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we need https://github.com/containers/container-selinux/pull/360 to fix the selinux access problem, until then disable it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/artifact_mount_test.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3300e94363e1a107d596911d5b8484bbe3d9dd3740b370bcec77533b60c712d9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we need https://github.com/containers/container-selinux/pull/360 to fix the selinux access problem, until then disable it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/artifact_mount_test.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8f40792df0527181d1b9cc043aed16eb75f6831ff0e3cde6f7d2eed39bef4e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we need https://github.com/containers/container-selinux/pull/360 to fix the selinux access problem, until then disable it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/artifact_mount_test.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ace41cedfb6269f07adf29b34abc910d07cfca7182cdca6bd1a0e938826c2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This can be removed once Artifact API supports streaming \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":"test/e2e/artifact_test.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3011935f5729306fa680835864e4fd883975064d29ee70b20133036d7c5c5c22"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: criu emits an error message, but podman never sees it: \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":"test/e2e/checkpoint_test.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6423a8fe77044d43d9c968aeb0bc9dd0d7088017fd1551bf7edc8fc7343e214"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this hack once composefs can be used with images \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":"test/e2e/common_test.go"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e87dcb795ea7c7019e72f0c8af3ec25540d9afccac047c5e37b497e12d19f5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Needs crun-1.8.2-2 to allow this with --cgroup-manager=cgroupfs, once this is available remove the skip below. \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":"test/e2e/containers_conf_test.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eecd92477f271065d0d19a874b2aec84c7bf633e259cd3bc6d5a459117c5bdb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME not sure why this is 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":"test/e2e/containers_conf_test.go"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6c2d20d82989a7507d1eb853149d2ceea4aff035af690019998162e8029aa3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: v5.0 - change/remove test once we block --restart on container when it is in a pod \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":"test/e2e/generate_kube_test.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"3258d0e9463dd3275f48b1e26e2b1569ddce5e24b8b945155d2f9b797d5c5399"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add 2-second wait loop to confirm 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":"test/e2e/logs_test.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d10baeb42791fa94079e6085ec05eecfe64b4da6e48a0039ea10e09912bdb4e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME-someday: figure out why message differs in podman-remote \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":"test/e2e/manifest_test.go"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac083e37998871cded384c7503535f9da271212a59ff1f11e6a8aa0c9905a71a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME-someday: figure out why this part does not show up in remote \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":"test/e2e/network_test.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fb4a5051336d0c1ed170f2b72cf0065efce073ac187b0a78f65839611d8047"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: v5.0 change this so that the default value is Always \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":"test/e2e/pod_create_test.go"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee6f62e025cdeefd17921684f587d6c8d6a6b82c3fd53c9673b600913eba41e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME-someday: consolidate different error messages \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":"test/e2e/pod_rm_test.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b7bdefdb269fe44c6334da1868298358453ee17e99298dc4ae35195cb2bd07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This may be broken - the test was running without 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":"test/e2e/ps_test.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"345ea90386389f3275393303a88c2ebce884cac6b2e1309cc6d6d1b52c665be8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME FIXME \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/push_test.go"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"893354b04638e1f65f2a7c2a06f18ffcc04a2743a77f32b5cbd9dd864d8b677c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME - #20196: Cannot use ExitCleanly()"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/restart_test.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb39a02b4bb6b030d4f02a473ae8b9ee189a16bbacda0d52f39e2830228163d9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME - #20196: Cannot use ExitCleanly()"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/run_test.go"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"326b51ced3cd13bd94e4a91446e7a6528bf9d9f6c5f550e5b1d3314db5b24c70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Confirm absence of /dev/kmsg in 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":"test/e2e/run_device_test.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5b9e8780b1af9687b6e25f656f92c35a433194a0f8b48b87495fbe24a58276"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Confirm write-permission failure \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":"test/e2e/run_device_test.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e107d398abcf2e66984108b7c714813bcdd2dbf6bc36f94be0f9db86b9c0ebbf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Confirm write-permission failure \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":"test/e2e/run_device_test.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4da16b053dac14a5d9364d1bb1caac5a58a824227095a4aa72a900f3a66589"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This test fails on arm64 \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":"test/e2e/run_seccomp_test.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5158bdfddd75dd2285c890b3eb96abff94be1974681d09afe8e9934ec32ac273"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: crun 1.24 fails with EACCES https://github.com/containers/crun/issues/1876"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/run_test.go"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"70725c9b1b762c58a1bbdeedb250de39f35c78c075dbcb729d526cfb8dfb9161"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: drop \u0022|51\u0022 once all the runtimes we test have the fix in place. \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":"test/e2e/run_test.go"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"259965b30b57602fa36c13449892955fc97d2669259a816603ed23c831780cf0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: https://github.com/containers/podman/commit/9b9789c207d8b84ee37e9c37c613879369a8690c"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/run_test.go"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"db80722b44ee0490c043e200f65f866ef0ec708b219eae02410d3eb25523eaeb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: https://github.com/containers/podman/commit/9b9789c207d8b84ee37e9c37c613879369a8690c"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/run_test.go"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"b012db785f40af719cf86e8efeb6f7db64c628208ee8ec40943d76e9fb0cc288"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: https://github.com/containers/podman/commit/9b9789c207d8b84ee37e9c37c613879369a8690c"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/run_test.go"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"feaffc3fd25c126f3853ab2f272ab50733b710a66092adb1cfc6eef1a699499a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: https://github.com/containers/podman/commit/9b9789c207d8b84ee37e9c37c613879369a8690c"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/run_test.go"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"863c0fd10d38f0271be57d76d87e2302e307aaf8527fa3317293ed31ea32f23f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we need to check the output. Currently, we only check the exit codes \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":"test/e2e/stats_test.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cde81913609801a46a2528bbe04d96cdda680bcd2892604a4a64432df22b308"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: machine tests currently don\u0027t run outside of the machine test 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":"test/e2e/system_reset_test.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5074875a781c77163d099c54f882dfc59fbd98e4d190c249b660366d8ca21179"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this should contain many more tests to exercise libimage.Runtime.{SystemContext,imageContext,LibimageRuntime}. \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":"test/e2e/tls_test.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"329b30bf10f7b493333f9453d4d6e208b54357eedc912a8ddb85df52fcf9155a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME need method to determine which image is going to be \u0022pruned\u0022 to fix test \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":"test/apiv2/python/rest_api/test_v2_0_0_container.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0258fdcb96fcc9c5623a9941f4686c7313f55a3adc8cadc18685e95b0d93dd62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO should handler be recursive when deleting images? \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":"test/apiv2/python/rest_api/test_v2_0_0_container.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9032b6cc7bd8ddad0ee4e2b8caea1efc1768ac7840b5d942686e4a6aec0f80e6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME (@vrothberg): I commented this line out during the \u0060libimage\u0060 migration. \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":"test/apiv2/python/rest_api/test_v2_0_0_container.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce72a5a1cb690949dd876a52be8c69653b9e8316b15ef95160876b611304d5a6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Research if quay.io supports is-official and which image is \u0022official\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":"test/apiv2/python/rest_api/test_v2_0_0_image.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"51adff0cdb83fae3be5c077d53bd63c278dabf56028eb986916fec7f62f5d6d0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO Need to support Docker-py order of network/container creates \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":"test/apiv2/python/rest_api/test_v2_0_0_network.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45c79a4cc2b61055ee036f1a53c31342241cd59c41c7e58373599bfe2a079c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO restore this to test, when joining multiple networks possible \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":"test/apiv2/python/rest_api/test_v2_0_0_network.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1183daba08b1658fec479b13186cb9a824de6cd9429ef20e2ba4ad265add80d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO Need to support network aliases \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":"test/apiv2/python/rest_api/test_v2_0_0_network.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"adec7fc56d23ada23676a8f5228b93ee0ee114e768afa7eb71ccc581040c4582"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO once rootless function is consolidated under libpod, we \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/utils_supported.go"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9cb1e5e34ee0a9408b618b6b4d8bdaf2174f9d58612085eabef22411263090"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // Fixme should use \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/systemd/quadlet/quadlet.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f759c687e39676c979a173ff21a08c33e55a61d295694ad5b5a29358c30b784d"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: only %N is handled. \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/systemd/quadlet/quadlet.go"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"726451fca9f681c86bfbdc3ddc155bdf7a4f31b858262968f19a64f3cd81152f"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: only %N is handled. \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/systemd/quadlet/quadlet.go"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ff38418b80365a55fbbf79424f336f5eb76ea966438e49c79c37ff3093f19f"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: this is usually because a \u0027@\u0027 in service name \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/systemd/quadlet/quadlet.go"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a235234fea00856186cc4b1602d97cc6766f5cd32f675158d3e5f76b400661"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should be moved into pkg/specgen/generate so we don\u0027t use the client\u0027s containers.conf \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/specgenutil/specgen.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd30dd604c5a7d94db45cad7c3e1109aa215e22ed1f5c16cad0c1d3339144ad5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This needs to move into pkg/specgen/generate so we aren\u0027t using containers.conf on the 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/specgenutil/specgen.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab6bee08920a24b05733281e11e8bfa9a258aadbdacaeb739be6d03770a2deb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //  TODO convert to map? \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/specgenutil/specgen.go"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfecfdf19b16e8df75b4dac7ea3dec46a69b1c7d3d7d861b4decc9e6717dd4d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO selinux opts and label opts are the same thing \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/specgenutil/specgen.go"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"089a861c005c6d0563d24acf6d000d4d04c607cc8d91b61d46db369f0b634860"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO make sure these work in clone \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/specgenutil/specgen.go"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"665437cac6f01086d40c685e6760383820c1960dc42bf4df96651ebeb117a9d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The SpecGen format should really handle ranges more sanely - we could \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/specgenutil/util.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a443651d962b6cf5c6b64ab01eefa004d0d6f43b40c99adbb4439857cd226e20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle options parsing/processing via containers/storage/pkg/mount \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/specgenutil/volumes.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"36818d14b27d8125ee1b064319557591b2527a5f93006ebffedac662ecac6556"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The runtime config part of this needs to move into pkg/specgen/generate to avoid querying containers.conf on the 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/specgenutil/volumes.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca239529a0876645bc8290af4fa293d1386bc8f8689fcc566bf598971862a18"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Docker defaults to \u0022volume\u0022 if no mount type is specified. \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/specgenutil/volumes.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c792f6435adcf2542a3130e43c0499d24271430ddf5624c3e17d64b488f7585"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add support for --volume-label \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/specgenutil/volumes.go"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bd94f91dfae914aafcd4834ce36158be5f5e64ba472791f86d35fb850bca32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO the specgen does not appear to handle this?  Should it \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/specgen/container_validate.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"75623906dbe54ac50d21391de0942512393e6c9bf9df75caecca2c4091efba7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this conflicts with things. \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/specgen/specgen.go"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27c5c889f25153a70318e4b4c8cbe2f8a277e171837fbaf1701beacf0b5200b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this does more. \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/specgen/specgen.go"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7f43b88cbde0d4ec54bf3c929dfba4dcdc2ba04f4ed70430f1dcdda2a7cb34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (6.0): In next major release convert it to pointer and use omitempty \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/specgen/specgen.go"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42501597280ca59f14f43ad2e83c71da3c801169b4b6aaff8dff34802e725d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (6.0): In next major release convert it to pointer and use omitempty \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/specgen/specgen.go"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2793e4b99afdc1f83f4e831384e305fc23951dbc6e0218b44b2b49b4141c22"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (6.0): In next major release convert it to pointer and use omitempty \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/specgen/specgen.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"c818cbb6d077171372cd52fe900e59cf83dbb7686e63d25ceddd5fa96699daed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider grouping options that are not directly attached to a namespace \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/specgen/generate/namespaces.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9f99d85f217e69738ff1ecb4b9cad9a57e13266d3c275b647e98bbfac448ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we be doing this for pod or container shared \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/specgen/generate/namespaces_freebsd.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9d9f0ea1cd91ef16a59bb61003391eeaf634a597d6a342e6f717a42e4af909"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we be doing this for pod or container shared \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/specgen/generate/namespaces_linux.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9c5dd24fb9e9c50fa69a644c238bcaac5eab17da31e6dd11f98ac08301c4d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Investigate moving readonlyTmpfs into here. Would be more \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/specgen/generate/storage.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"511ca6a56839dfd44c250b8b0804f82d1c1f9c20e38dd3c5523e98b6e31fdf13"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we unmount subtree mounts? E.g., if /tmp/ is mounted by \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/specgen/generate/storage.go"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"8070a1fb7556a07e980a8dafb7c0a7894adccf3a7efa997e292e82c251a68fe3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO we only configure Process namespace. We also need to account for Host{IPC,Network,PID} \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/specgen/generate/kube/kube.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b70aad37906bf882982f9c902c94223e6318447220b5b01964d553304bb0fe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We don\u0027t understand why specgen does not take of this, but \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/specgen/generate/kube/kube.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"229968b3dce9bdb10c9ea37adb7cf9a39a25efcbe142b61d23bf0eda979bae4d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/specgen/generate/kube/kube.go"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"385e030c4a4943cd1628080221f0a6157b3ca474c7c033df1223dda48a24f65c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove support for deprecated Kubernetes seccomp annotations in Podman 7. \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/specgen/generate/kube/seccomp.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f4a6d1525b54f7ffb72fe6c49e586c70b8829a4c4756aedeba30ad65c1f577"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove support for deprecated Kubernetes seccomp annotations in Podman 7. \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/specgen/generate/kube/seccomp.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce44f8a54c05679a4a90af55f3a17668ee94a4cbedb0d8d14cde28b7534c7384"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove support for deprecated Kubernetes seccomp annotations in Podman 7. \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/specgen/generate/kube/seccomp.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb2817ae2b4f89831d34a19b5d76ef209a8f0e4ad82e231a23e3574e9796b5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove support for deprecated Kubernetes seccomp annotations in Podman 7. \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/specgen/generate/kube/seccomp.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6328263bac04d3dc735157f96044ec5ef0e7067a43272f80798c8fdfa636dae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO This can be removed when WSL is refactored into podman 5 \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/machine/config.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"949535ca8d84d1918ba22ab18c376a026e7c205f7f53e1869cd50867fb0eb43e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO This should probably be taught about an machineconfig to reduce input \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/machine/ssh.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c291f3359b09198d1b663db305ce0e24a0bf9194382f12735f80f89d25224813"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (7.0): remove this const and the code that depends on it as we \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/machine/wsl/declares.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb3ef95ae69fdc8ac62688d3b44bc8a17c89e2feea350c9d55e622f01cfa384"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO like provisionWSL, i think this needs to be pushed to use common \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/machine/wsl/machine.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbd998277e6f877aeff82c770fcac8371e33be459305f8c346b894caa296a9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO there are some differences here that I dont fully groak but I think \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/machine/wsl/machine.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb7ada4c27025230bafd09625eb95620ac9cf37d1932539f521160fdcf21288"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO We could audit vmfile reads and see if a \u0027ReadToString\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/machine/wsl/machine.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7501b51bebaab5023b2d39a4d06908778d521cd5226f990f45db2bf1f078bc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - Perhaps improve this with a conpty pseudo console so that \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/machine/wsl/machine.go"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"914fe15b5a430ecf7dfa42b76221243951b734351d466c6dc4b16a132857c8ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO This needs rework bigtime; my preference is most of below of not living in 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/machine/shim/host.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5936e8bb8afab82f0abdf7da23459d7017d6ba2f3335ebc808e4535ab525222b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO The following stanzas should be re-written in a differeent place.  It should have a custom \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/machine/shim/host.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3ca94e929f0038c1e2857a8a06151f615ecea2e8ca782c3eb8f9e54685a513"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO the definition of \u0022user\u0022 should go into \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/machine/shim/host.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76ee8d4db8be6fa261f7470921d6ec53f1f142ece00a99cff006ff2b882837a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO AddSSHConnectionToPodmanSocket could take an machineconfig 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/machine/shim/host.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c60d84a24263923267f4afab70ef4fb10031d07494bab9183d4ae5f10ba7849"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO should this go up the stack higher or \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/machine/shim/networking.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09c3188d0d8b6d18e2d96bdffa028222e7c602c81e12d32f8eb4157382e1fc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO probably should use tempdir instead of datadir \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/machine/shim/diskpull/diskpull.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d449d1d782c7a851848643d9219131567c2fcbd239180ac0c51f33c4c295e76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Podman5 \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/machine/qemu/config.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"122364acb0a89a58b0fe0b77ebb5024d2ec55cffef487cd2faeb2b8da8ab9f32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo move this to qemumonitor stuff. it has no use as a method of stubber \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/machine/qemu/machine.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7031f12c0d87555b8f65c637fb785bb09af246f315324f6b6518cd7d129c8a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this error should probably be returned \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/machine/qemu/machine.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"02da8a4a49ddf007c7e5353e0c6f469c5c823dc7115b935c48892e5f9dfa9490"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this has always been a problem, lets fix this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/qemu/machine.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d88a3b035c5946169a6099a7faa321651662ceaad2632f879561ca989079f43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Honor hostmnt.readonly somehow here (add an option to virtiofsd) \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/machine/qemu/virtiofsd.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36952aa5e12966af107120dfe73868f1423b466178135723bdbbf2ec9507f9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Need to understand if this could play a role in machine \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/machine/ignition/ignition.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca782b8fce80e00810ad401cba3c1b61bb58a7b7f545c364edb1e6d87c4d847"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO I think this can be removed but leaving breadcrumb until certain. \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/machine/ignition/ignition.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9715c8c05d3ed775d09ff860c4338067add23d29c043353b784b744dce73100"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO we could improve this by recommending an action be done \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/machine/hyperv/stubber.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e21e52ef2fa9e94cc42cfb56169c7484bf83caa534ade09e46f9e907f1219d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO should this be plumbed higher into the code stack? \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/machine/hyperv/stubber.go"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb4412c0973e10f1be8c0a2a0bc4bdcd4242d435322060f4734ba492e360ee3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Stopped here ... fails bc mc.Hypervisor is nil ... this can be nil checked prior and created \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/machine/hyperv/stubber.go"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"470b625a00bac433ae7ebbb1a1128309f13989ac7e86187645ecc1b295fa9431"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME:#24344 work-around for custom ignition removal"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/e2e/config_init_test.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62eb540deab5476d3830faf18566f32c1703025a134dc09f5824deffdbb410f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - this currently fails \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/machine/e2e/set_test.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3eef6bed6cc24f9ed314f90bf7ceb4d944a7fe898dbdde1a90b2ad6e641fb4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: if it\u0027s not an x509 cert we may want to use a different parising function \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/machine/certificates/certificates_windows.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8ce98cd54552e3483ceb68fb714129e67b8f8e82d2315964d677605afc2f65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The map here probably doesn\u0027t make sense. \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/fileserver/server_windows.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed943cfef2ae59bafd52f588267eedd914be766f63fbc99ee002e6d1a330e25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Once server has a proper Close() we don\u0027t need this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/fileserver/plan9/serve_windows.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfe5ae269ad6d57f815f77f888e137f0e1098bd50be1a59134d3db20aab6240"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use a channel to pass back this if it occurs within a \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/fileserver/plan9/serve_windows.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"37722403bae077a24bd642d5b055730fa8fdcb1272bb3f56a0801e86b3577600"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add (Priority,Weight *int) a la RFC 2782 to destinations that we know \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/farm/farm.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbeceb435294cc1a798f1d9edc32b4299312a488b264a883d8b200650fc3977"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we need to add tests for this 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/env/env.go"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa4b457f12e47a7cdcc5344d99b8a156af83a6c31fc1bfe710719e6d4684bb7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: look at 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/domain/infra/runtime_abi.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dabb2193b1b3fc94fa6e55f9392b18d30f2581e4edbabdc0a8945b7c641aaa8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO CLI flags for image config? \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/domain/infra/runtime_libpod.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ee282a05b33bd482a9b36005096faec1a1da519fb692794919b19a4ea71249"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO CLI flag for signature policy? \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/domain/infra/runtime_libpod.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1b7ea1dbfddc8bde5577361c3f716e91d7b23a38c0790072c83a7dba6cc77b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO flag to set libpod static 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/domain/infra/runtime_libpod.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cee838ce8e2f126746331b2196e379e6906fdeabf7ec7c542dfc8fb92b78598"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO flag to set libpod tmp 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/domain/infra/runtime_libpod.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"840ca0049f115eb4cc17847abe811dcc3c81d350df36ef6c88cc911c812bbd40"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO we need to associate errors returned by http with common \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/domain/infra/tunnel/containers.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6f0a329212607e6fbec5f6627fe55de3e7e8ef1c843f9c00a84942197f3149"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO there is no endpoint for container eviction.  Need to discuss \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/domain/infra/tunnel/containers.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"365e7be5f9eff2f82e1383272068a51c872b0e704f9836c014090a88e720bdaf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: the \u0060ignore\u0060 parameter is very likely wrong here as it should rather \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/domain/infra/tunnel/helpers.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9607f345438ac7a0fe48cb76d5ae5f39967e3f59f4cd2d26e4ef2aa6a73823b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Not used and exposed to tunnel. Will be used by \u0060export\u0060 command which is unavailable to \u0060podman-remote\u0060 \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/domain/infra/tunnel/volumes.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ba64ea4f5df8477ace3cbfd5e22506e4c6f58c8f9fe81642f601b026905a6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should report removed pods back somehow. \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/domain/infra/abi/containers.go"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41543c62d417810a8ed830e36c528e41b9afd12986b85c030bede8d79fb9e08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add some ability to toggle syslog \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/domain/infra/abi/containers.go"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9f3ec815ba80979d69434c5a8af7b5d2002e75c30cbd93f0347e82f206e2a0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we should try and retrieve exit code if this fails. \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/domain/infra/abi/containers.go"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"d896f66bbb710dd4b7a5f1a04321dedc9e9bd7a0e2dff0496df8a23eae6ca79f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME should we use multierror package 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/domain/infra/abi/manifest.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f077683e24a39997c8036551a91cfd5a97b4403fc0c4349e77d31800bb622db"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: both, the service container and the proxies, should ideally \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/domain/infra/abi/play.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"efca1c2880b394499f438bb0962c2dc902efab8337c8cb51216325a8257c4b3a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: create constants for the various \u0022kinds\u0022 of yaml files. \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/domain/infra/abi/play.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96a6c3796dbef813a38cd8594ac4a49136428f6a476d37a9f45c52d26ace95d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: how to deal with explicit mappings? \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/domain/infra/abi/play.go"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"df45dccd1561e8a3ea4456e07247a7b9a9ed01014ff4c5503598ef201bb6ef65"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME This is very hard to support properly with a good ux \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/domain/infra/abi/play.go"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"3138047d9d5f9520c591be8428a6d562c613cd6ed53161d2a467a138cdefae4c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Possibly should handle case where containers \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/domain/infra/abi/pods.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"595979f73e5e23bd3fd14663373ce62c6eb60cb44ecadc47047701d80b410b8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we still do this if the above validation errored? \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/domain/infra/abi/quadlet.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"956761ab5d176bad9138d753a536108264466325ac51e292d025fc397e210e1b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Figure out cleaner way to handle all of the different PruneOptions \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/domain/infra/abi/system.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf64ffcccbcec7d2b27eb091b9976450fc47bfba49120a40082b3df9395c004f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/infra/abi/system.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fa99006cc48f1d38bcc504121f04a3103b8d6ef43bcfeadff31b478cbf52e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // for remote calls. //TODO: Verify that claim \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/domain/entities/artifact.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"713a57b59779a57ba106e817d136639fc1bd6244b85cce7a8d58343444b53d9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(6.0): Change \u0060DefaultName\u0060 to \u0060ActiveMachineConnection\u0060 to fix address \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/domain/entities/machine.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bc470643149950e5d9bd557d8fe1256892a848eff1ab8c75d3f5b3ff5c94f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: it would be nice to have full control over the types at some \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/domain/entities/types/events.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cf1613b473fd30b90e154a3f8170b6dec70f8d0c28c3395e76bf29cac06317"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Podman4.0 should change io.Reader to io.ReaderCloser \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/domain/entities/types/generate.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c61a1be4e191905ceaa3de08db476a969d0137f3382e0095146e1c0f5df2ce2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor move presentation work out of server \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/domain/entities/types/images.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9214f2505d93c84fbe8e19e695b9c3f95dfac6b66f9cbefc4d473f8aeca84"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO enable this when wait is working \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/bindings/test/containers_test.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e176d1abdfc3c45c0c117a75df696c13cc79b0c02cb1df03508bfb0793017d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO it looks like the images API always returns size regardless \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/bindings/test/images_test.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab895484a3a53c9125efbac21dc174c4a3e160efb328e329fd4c3335f06a3cc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO how do we verify that a format change worked? \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/bindings/test/images_test.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07055add90b27eb13185b27fc99a28fb12bb1ab2e0e226e1770a993819a609f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we really need to extent to pull tests once we have a more sophisticated CI. \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/bindings/test/images_test.go"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f44eb35914c618397a0da0873fe6861e11a5a8396297903f096c0d1578406bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO fix this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/test/pods_test.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bcd4695a5a1bc5601e0a77be139e610909a1dd5582b15b93fa41a14a7dba41"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(vrothberg): it seems we always hit the EOF case below, \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/bindings/images/build.go"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"833cc5e3a1dbd24b01468565f8cfac464b4bb4acf4e0124bc89122485d7af4a6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(vrothberg): it seems we always hit the EOF case below, \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/bindings/containers/commit.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"42059c29238302f64bb86c3f2bfd947e1466b27f0ba4c6e36a888b89a82e5686"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this configurable (can\u0027t use streams\u0027 InputStream as it\u0027s \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/bindings/containers/attach.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36d22290488127c9a022cd25078c0e6c3410a2de381a56c00632eab533e4306"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is one giant race condition. Let\u0027s hope no-one uses this same client until we\u0027re done! \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/bindings/containers/attach.go"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c7e6b317e41ab0f568cef4b1dff73a336aefbbf1f1aeae59aaff43a2e5aa24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove ImportAchive with 5.0 \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/bindings/containers/checkpoint.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d785259955af6966e143d2142a1203014cddf06fa23bc0c262a2cef45e445b"}},{"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/api/server/register_images.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"47516db87c2acd5e16f84f2ed6eccb96f878d9ef23071dfefbff38278acd7fb9"}},{"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":"libpod/define/container_inspect.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bde1a1fdaad7b2ea38935e3b7235915604fc64f7157480d7b3a66eacdfa122"}},{"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":"libpod/define/container_inspect.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"58309f246b09256f26b22dfd94a59bb86f3b8933869a9a5c7d5a88524403c069"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make this table-driven instead of a one-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/api/server/server.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7727c48bdec41a883ad4f207d2e46a129e161901f6e9d62b248f6aecbdd7d14e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: document the exported functions in this file and make them more \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/api/handlers/utils/errors.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6244262ec92aa002ae87e1883b9cdfa71ef80ab98962fd3f4c41dea325c98cdb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we don\u0027t need to write the header in all/some circumstances. \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/api/handlers/utils/handler.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ec128ea9a3945496a821fed6dcb7faf37aa340ea191552b7704b5e86ac3a70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO In future it might be an improvement that libpod unmount return a \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/api/handlers/libpod/containers.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25e48a0b6cae2c8ffc04e1f4f471cdf0bab9e86f3ab83ba903afc21b0767f15"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: knowing that this is the location of 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/api/handlers/libpod/manifests.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2e085a36dc99dfbbe0b2ab0fd42266474c2301f2447aa811a404836c588773"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Our format for parsing these may be different from 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/api/handlers/compat/containers_attach.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a985e727ac17647f6d5c60a93019df1f5fbc07675d2df8676b4a077116ca510"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - start does not support adding detach keys \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/api/handlers/compat/containers_start.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fe36640fe0a6049e120bed23f1e0473687ee20a8b14711efb73f686f3eb35e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this should happen on the package level \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/api/handlers/compat/events.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9688764fb15ef55ada5fb1e3d9d4e883da8ef9868b40bdb5fde4bab039e4a95"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should read/support Tty from 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/api/handlers/compat/exec.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"82277f54edbf57cbeaf974aeb5f1f762445260de18b04f5debeb4da0f0afac47"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Verify TTY setting against what inspect session was made with \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/api/handlers/compat/exec.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c366f23fd5dd72df11a29e9a63ea96fbe7eb2d7d2d9b09d7d9af5d8ab8d937c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: many fields in Config still need wiring \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/api/handlers/compat/images.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"db23a8156677e176bd3e81729e1b22a7feb9331c9ae498e894202dc99176c56a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Need to expose if runtime supports Checkpointing \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/api/handlers/compat/info.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fa3f2e70aa148355e5d331a9a757c2c66c6287965513af7cf7e157d9b268a6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME can we use the IPAM driver and options? \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/api/handlers/compat/networks.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33870143de888114d6fc6b560e98e958d9437026c186a9ea98c56e481fca9b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We don\u0027t include the volume \u0060Status\u0060 or \u0060UsageData\u0060, but both \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/api/handlers/compat/volumes.go"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2278ec5a15f26b09ecd4bed1e3d9cca29d6f676e9e6ba307f98c7f72523cc6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: As above, we don\u0027t return \u0060Status\u0060 or \u0060UsageData\u0060 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/api/handlers/compat/volumes.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"957df91ee2c33a6cc3648c2ea76bff74cbf34ae3bddd02b92250c2fa607db80e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should be a switch - we are not guaranteed that \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":"libpod/conmon_cgroup_linux.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b818c402eddb21a87b182fa903ab3dc06a7c2ef8e4d4de0c4aeac14031fbe89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - this includes all the default environment vars as well \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":"libpod/container_commit.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3618f5919b9ac53d59687e4be5d83ad0e4b39d0058bed38e277fc15c75f8ab6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: How do we combine streams with the default streams set in the exec 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":"libpod/container_exec.go"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"0655e8806b5f234e11b99ee26c45fb0fd083a3f3371e2459d39efe28eb814340"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Investigate whether more of this can be made common with \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":"libpod/container_exec.go"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"8647134f3658c716b17cf33457f18fba0763469e242e4ccef1d546f2b15eb975"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor so this is closed here, before we remove the exec \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":"libpod/container_exec.go"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8c49df563375c4cb568fb2f32adc675dd3666d8ad4dd1e7f33a15a574c2692"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If a proper Context is ever plumbed in here, we \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":"libpod/container_exec.go"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"5409e044061755e2332158fd2531c061bacdc959e9efb59229c1ad37b5072603"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should JSON deep copy this to ensure internal pointers don\u0027t \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":"libpod/container_inspect.go"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"89867ab5e960c2552dbe7e5ec797658927f29e2230e9f9d54ff3f0276b5545a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - maybe we should parse for empty source/destination \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":"libpod/container_inspect.go"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d3e434baca1f03d026c06fe708583f0f699526192a0b3daadac942e7d4c1fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Populate this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_inspect_freebsd.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"04afcdd8a480edd2ae3e076d09c6a41cad733508385b7a11b98d194fe17b7305"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: how do we handle LeafWeight vs \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":"libpod/container_inspect_linux.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b677681a550d67419d1f50ba73dd7b372e2706cb78ca57d2d181bf8e6577e8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This can likely be removed once conmon-rs support merges. \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":"libpod/container_internal.go"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f76bcb9748124586c14f9c3a94a4adc1421d0ec6d8b32c17cc329e8769ce4b3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO when using docker-py there is some sort of race/incompatibility 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":"libpod/container_internal.go"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d299ae991e7c145cc848be58c03a5a679643843a4a919bfd31ae436100be8ace"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO when using docker-py there is some sort of race/incompatibility 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":"libpod/container_internal.go"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fc1535d359b1eac2c7a725741b9efd541ace027d373f4088c17d0370d23953"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add ability to override mount label so we can use this for Mount() 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":"libpod/container_internal.go"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b14a628ed5796575156d4bfd2058641cefdf86d18b4d26ac5bbab05a71839a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Can we use this for export? Copying SHM into the export might not be \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":"libpod/container_internal.go"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88acc7df8649bfaac3d5e63331804a528865689bc6acc01748386897a13a21b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: will this break something? \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":"libpod/container_internal_common.go"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffe040c567ce4bc2f44fc61449e73dfbcd31ff01fa8ca2ccf570df29c291684"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This implicit restoring with or without IP depending on an \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":"libpod/container_internal_common.go"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae055f187561f779336cdf6830d654cfad889b6f28640a0022f53e403bbd7a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make this optional, needs progress on adding FreeBSD section to the spec \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":"libpod/container_internal_freebsd.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98f6a9f053e5521fd4d257c74905bd3b2e40e4c4ad5c698167a56622169e2f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO provide a separate implementation of this when Conmon \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":"libpod/container_log.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4f56e8a7a9ea61e11d047ebc5fb4362ff257facf23fa1d060862843449edc5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: it\u0027s now technically possible wildcards. \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":"libpod/container_stat_common.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cb5ad3937da6ff05a2f0ab0f0cdbd35d46b106b5a3a16cddaef0b15d3a977f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we cannot reference pkg/autoupdate here due to \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":"libpod/container_validate.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f057edd4984052ac13037069e12176fbc2412a0f7a36d3735b698e67e3f875"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: SHELL command from image not available in Container - use Docker default \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":"libpod/healthcheck.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b92cea422ba523757461e38c7d551e0b221e7c5f07f444ffcc6d0fb5d0b25c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Enable when we can support devices and their names \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":"libpod/kube.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a208e0466ead2ac0b06b989498236ce24321c2540826a53a6764532b7ea22a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO should this be an error 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":"libpod/kube.go"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d59708d4c9df1386751343e6c66524bad76e2f8a9582c7cb0ae97392183a29"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (5.0): return the statistics per network interface \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":"libpod/networking_freebsd.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"811b34bbdfaa572ad3298d313a50e07ad85cd2910dd96c2f09b77540ce07bc55"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: extract interface information from the vnet jail \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":"libpod/networking_freebsd.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e2dc369e01e36f4c05806d3dfd0717a4eada99d047b863e3620ea3aab11c7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: May want to move the conmon cleanup code here - it depends on \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":"libpod/oci.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef0b2a04cc8f35fb175913f4f87dab899b35892cfb6d32a4424725b498f0521"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If we move Attach code in here, this should be made internal. \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":"libpod/oci.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8606defb211a1e0bba543e832f595b5f8ccbbaab49f9a82e9df1fe5ddda55bdf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Probably should be made internal. \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":"libpod/oci.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab6d5679a5dcf05ef0fd08973fc0cebfd9f6d687323d3fbab0b27485a133298"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make all calls to OCI runtime have a timeout. \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":"libpod/oci_conmon_common.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44decf8f3aae60cb7c502fdf882f5d1049f9bf560b2dd96be25f850184d2c1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: probe OCI runtime for feature and enable automatically if \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":"libpod/oci_conmon_common.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8023144a0a27cd30e1a3dfcd4038c721ac6adb403852a3ebc8a6fcf449651a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: streams should probably *not* be our STDIN/OUT/ERR - redirect to buffers? \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":"libpod/oci_conmon_common.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c440029b32691e21732734efa1d62f8638c7eed0a5d2c53adc10197c1861d870"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is gross. Really, really gross. \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":"libpod/oci_conmon_common.go"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ddefed5918180d34fcb5d2983022136e9808f75a22b78fcf9f7a427015d403"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: return immediately if attachStdout not set to \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":"libpod/oci_conmon_common.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e79b5e6fb82df5a7ee2f00b586d1622ad3a9a15c33a273c3de8590671bcf1a3"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: return immediately if attachStdout not set to \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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f3af1802779352526355832ce6e164e2540e0e1d7c2f4c7bb36c0210b571cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this is probably a really bad idea for some uses \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":"libpod/oci_conmon_common.go"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f470eff61ab555c3d54f5f2d72cd2a48114cd37450edb7cd287544faed627f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we default this to false? \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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b023d8cb9f239e7c304ac9b53b1d95563a31fd204a66092d1bd4572ba2f408c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we default this to false? \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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded679adbaec0aa71717fdafdaee0601c3f5e0d40ede3243db3b7a9ead601c18"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Only create if !detach \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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1558918d8d7bedd3d34b5044e7bb78487dba4cc43f8d4fba22a85bb78509f19"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO make this optional when we can detach \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":"libpod/oci_conmon_exec_common.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cad785aca2b1187ead882e88c4d07730fc115264eb03b9f40684d3c7f374c91"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We could attempt to unix.Kill() the PID as recorded in the state if we \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":"libpod/oci_missing.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea18b228e83a2e48e8a2289b33e17a17f16be1efbd1221c20fe92ffb116b7e41"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We can also investigate using unix.Kill() on the PID of the exec \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":"libpod/oci_missing.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae9529abe030b7ff2bf11712df17cd81d88e24e8ba51a6517b53845a5cb6506"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace image name and ID with a libpod.Image struct when that is \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":"libpod/options.go"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dda702dbe4ceea41d5f8afd16fd82376bba07a329a16e71e1af9c5ca91e823"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: v5.0 if no restart policy is set, follow k8s convention and default to Always \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":"libpod/options.go"},"region":{"startLine":1990}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e93dac3f62591951b600689c4863c346eb887020f70e7f155bbb59f4c8cde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO implement WithUserNSFrom, so WithUserNsFromPod functions 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":"libpod/options.go"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c21a23fd796138dda0ba5f9f0d50d8579737a283b0e6077de06cc4f57a4e89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add pod batching \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":"libpod/pod.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9cf5d316e08ad4e35a12db67f0f733864035d71d9ca9b1361320c57a5e9bc3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Populate \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":"libpod/pod_api.go"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69a677d4c605cc8cd1f1e7a9683993b25f23449aafad06955afac2aadf56355"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe want a helper for getting the path? This is duped from \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":"libpod/reset.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"904837f2f2bf173e55da2ca3597e7ea0e6b8926f9f6936668733b7aae66feb02"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - if we further break out the state implementation into \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":"libpod/runtime.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56cf03ec7e550341afca871bc451a7acf5fca15a245f4c5557b9998792f83ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this temporal coupling. \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":"libpod/runtime.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"6808369a89c8d867b7e7514e39dc4cea7bee52a7718b3106e8b81fab8d26b57a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: May be worth looking into recovering from name/ID collisions 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":"libpod/runtime_ctr.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"a713d7aca51378a728376c54f7054b00736f5e169eab2147a1851c6958698581"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: It would be desirable to make it impossible to call this until all \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":"libpod/runtime_renumber.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db4b2df24365a1e6aab2d9b21f947851e4c912502718eb761601ea25ea58f69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: reevaluate this once we actually have volume plugins in \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":"libpod/runtime_volume_common.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"672c401d288f80e9a6c65ddea92b30b1b319566f0ca910a17010534a373d97d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: What do we do if we get a 200 response, but 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":"libpod/runtime_volume_common.go"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf0591c02aafbec94cde51cf4b3746fcf6441a3f1dd920af24c8b4871be048f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The transaction isn\u0027t strictly necessary, and there\u0027s a (small) \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":"libpod/sqlite_state.go"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eafa096496ce26a99d0e7b354dec7244ebda9575cab4d244f5d5707ecee4ce9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We can\u0027t remove this code without breaking existing SQLite DBs \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":"libpod/sqlite_state.go"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c13ee6d8fdd5d3e0b8c6c2b140eabf3785d565cafaf53468b33232b85f1c43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: explore whether there\u0027s a more idiomatic way to do error checks for the name. \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":"libpod/sqlite_state.go"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f701c7273a459119d7de8950c067a66777808eaa87d5baaf17406d8370c3709"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: There has to be a better way of doing this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state.go"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad5b85b510320bacf8fc401f03be45af79442efc622a7a32f046b51b1a4380a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: There has to be a better way of doing this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/sqlite_state_internal.go"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7737d73a05bd130f3b17fed7ee7d991778409259d2026ecaef269c07db7911e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: There is a potential risk of concurrent map modification 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":"libpod/sqlite_state_internal.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c2fae4b1f036363700580951f975d1f7ab4931006718c66d128c69492f02ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //nolint:wastedassign // TODO: figure this out. \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":"libpod/stats_freebsd.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7823149bb09632d9df43e79daf2cb44d75111a354562fd7cd46573c167c05c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: might want to cache this path in the runtime? \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":"libpod/volume_internal_common.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba30a21774255827365a95c1143f2a5666b5a647b5e19fdbae5939c6215c95a4"}},{"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":"libpod/define/container_inspect.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d72dcf6d2b4a50400031a80320693a4c0727b5982cb7e7855ec6930dedea3c"}},{"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":"libpod/define/container_inspect.go"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"84180c1db22c72d536a531090a865732ea22df934e8d8842229f2242363cc808"}},{"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":"libpod/define/container_inspect.go"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2456169ae725207cf0f47db3833be376d79ac15cb55dfa3daacdda55b4c7f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Rootless has an additional \u0027keep-id\u0027 option, presently not \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":"libpod/define/container_inspect.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"4623300712b57d182073f6e68aeb6b30585280860bee542d8038d8a4ac9262a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this generic - all OCI runtime operations should use 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":"libpod/define/runtime.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b8cf6a1111af06c2e2f0c75da1b3d03d902f2401d4360b9b29a8e2e2cff9bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider dropping from 240 to 60 seconds. I don\u0027t think waiting \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":"libpod/define/runtime.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c422ecdbae68d7535321fb487eee776ba4775d957e9dad7d2ea5b1d2c395a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This could probably be made a whole lot more efficient by unifying 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":"hack/branch_commits.rb"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"118710cf57272fd0353ca4ecc37955ea2b9c447c04196ef1f63865cfd35eacca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: DOCKER_CONFIG is limited by containers/podman/issues/18617 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/compose.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3feac0b7da9a527ab856fd6a90dfd0232715d6e8c55184ccd63b5a14d2bdeb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO need to work this back in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/init.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"276e25ba0fc8e41a879282283904058f90717f6d59da3de6053429841466dfd7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: offer virtual machine path completion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/machine.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2578188b37d2924e8239bf2c51bb8fb04ea717089d718065971d6edfaf5d6d17"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: need to support options 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":"cmd/podman/machine/server9p.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ee70fa8261045722e3fd53be9026e7f118879fa1e8a0a1e31ae13c47616a8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO  Name shouldn\u0027t be required, need to create a default vm \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/stop.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d00510888fd5ccb4213c0901329727827da5ba46bbbddaec7d52035a8c4a82"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The cleanup logic below must be fixed to only remove \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/kube/play.go"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"886a396453a42bb8159ab4014306c4a9c780029d3cf9c5a6a9edff1dc9c9e00b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO when save is merged, we need to process reference \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/images/import.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b98945834c4337c266e8bc8aaac885ccdf669f213fa67e564368b1193307572"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: v5.0 block users from setting restart policy for a container if the container is in a pod \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/create.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"311bbeb43044098599c15608e006e82fc7b321b0e7cf7555696c07f4a5e21ea4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this code should really be in Buildah. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/build.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d27b8b38bd3e89d67cd8b0e23e30656ebfedc0629d1472377c49e8e6600dc0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add support for all different options \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c26446cf11575b1013a3318a5b1934d40e72163732d608680b44ad0c81091a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add timezone completion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/create.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2276e122220b4beba672d0007664446f522be8e7230d28b632168fd7e0eab873"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (7.0): remove the cpu-rt-period flag, it requires cgroups 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":"cmd/podman/common/create.go"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dad14f727821e6c80c739c0e81e2e0bbed1c417063742b046e8bec49b5d2b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (7.0): remove the cpu-rt-runtime flag, it requires cgroups 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":"cmd/podman/common/create.go"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0930e597d0004d32e0e0051939f0852ed2257ce00f6df7cb54a77b9a93be35"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO When the inspect structure has been defined, we need to uncomment and redirect this.  Reminder, this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/inspect.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6377a60b00b66e1b16b83f790d06e5b93fbb87d57f9d554943b24417e51986a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO I think these two can be removed? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/push.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0ca5519ed62a4d7537c14b6efa45a522b619c5f48e00a61d3d14b39a15c549"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO If not compression options are supported, we do not need the following \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/push.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e821149f91038e652a3b613251d61bac8be92e0bd847b47f4b09b001695f325d"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (158458 LoC, 1035 module-visible types across 162 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"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":"d8b59ef00e392951cc17f651cfc268ad68fbf7ed7a7c548174559ea66c3c95ec"},"properties":{"commitSha":"f6963cea130133086f739173b55d1af74a680fef"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"febf47890a7cb760d621400e9df935314ee9aaf4d61b47dc4103fc6047b857fe"},"properties":{"commitSha":"f6963cea130133086f739173b55d1af74a680fef"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3f54b8fe3d571de6eb8e2d9fb817c16a50b9a1d5f5c2c19ddfe65c9de159980"},"properties":{"commitSha":"7080d9980f1141fefe9797fb7b3ac30631a0b723"}},{"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":"8d68b91455b877259642cf948c4d6d7b3affcb4aaf7902f1fa20919fd5113747"},"properties":{"commitSha":"0dd745c86b8320798aa1b0df9a63f2c8fc41cb75"}},{"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":"7fb4baeb255d1e72f645c74240a12dc4ac1241b4d0a6cc48cb85738c8ab6a53a"},"properties":{"commitSha":"9dbc33bb257babe074c10e60b877f00093097dd0"}},{"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":"59e283c648f99905ce5f737400c1e3c477f21918e42de2ad56eed9780f1f4c3e"},"properties":{"commitSha":"0356c46e537fd01794bf2880a06b1d38a0bee3f9"}},{"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":"dd65e2f04abdf477e5d882fff12a00d1ee228e0a527014aeb9b4139224ebe812"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b7d578bc636d1e83c289648176f52284ac7aae67ad24ccce6f025a14837c01a8"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e086f7e820f99283201fb8a8176bad45b574b0ab267a878a854c01d7bb0207c"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6eed2c40955f3c63f68b5393a9ebf6048f6d79e308cf916bce22946b78c1bf6"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6516c6de0a9786cd54ca38314c0c5bc8538552e59927696278ab1dd430a74b7b"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64668c98e6c56e0446d19c9bcd6019302e9e433e171b00ae5c25cbd84fc0888c"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"30ea7d95166c9cdee93ea71af733a40e59c9fb48a700b86795640038e0f7ad2e"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e3c67770bb7fc7712cb9b5d012be94ffad18ab5fcdf8ecfa4c63ab462f52468d"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d908635d946ce387ed299bb9ef963675ed86b327a517a69fd6770f318e57d046"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1fb8f92876077470a4f24e62d275eff32096e36099123d23186327fefbc8a608"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"778e2bffe26a576680006cf89976c00b2371d502e720daa505ba4248d1018a34"},"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":"4fe0eabd8dfd7d88fb91067eebce1c172d196d4dfca00ad5ef7833f1d571e399"},"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":"2999610f3c6664e5371bf7659ed5d9489bca1423b9c73a6b059def1768c1e040"},"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":"fa10792acb2c0c53d5e0590b25ede41f1b5122c0a98f6611570d09556907432f"},"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":"789cae054645538a60927523f1bba0eaaf984fd7a26a0448f278e982ff63c937"},"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":"94f4125223ef83583e51c1807afbc1dd878564f2d4b8721eed4ba05d9440689d"},"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":"46b040a7a5def51e513bb505e84ca96f263078db4466347560af6bd0154e4976"},"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":"2b63a683857bf3fa995446852b205f6b99e87a4c49c1ef920c483883c1bae31c"},"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":"f7148f413626f5df290c65478c00f0f6f99d0226ab04baf5a71a95604c5d1fa8"},"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":"83061bef849f43f8a5b85f45e97eafec11059c3bd488b422fa02e5aaad3dd408"},"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":"f363e31891c00dec9062e902d5238c38da24baa8a5b76407fdd39883d14f762c"},"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":"d376361a84a218706fbbd40c388e68e5c39015e3107d1cd653f70456f6e98d02"},"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":"8a28754092d3f18bf1f8dc898cdf9355e631fb41b695e931466b42d0a940d6e0"},"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":"9692e9b8bc71e089ff21811f571ee81087b83dcdc4dc4a695cfd4faba5cd20c7"},"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":"d04f80eef8b904b580cbc86c62b3f364eebd1a6fa1093226aef87036a8d07631"},"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":"c56420472a240f10495cceddd1b4891cbe6061c660ca97c9759047170d7dea98"},"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":"d03bd72d75c1a38dbcfeb04e9953d818a53dd54ba6c6a4d4d38a312204b1422d"},"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":"fb1b56c5519cbcf895dad7c39d4387d08b1cdcb0b0bdd278969538892d72bf88"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e444c85ec159c5c83e6ec1b85467e28fc1b53037502124c7f5f23ab99bf2f1d"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"13bc025adcd880f1c0dba44ee60a60fc1d410eb1c01b043ea4320303396c715d"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31c83a31d58065284ce7b8f71544a5ce9bbc67559b14b1788cc67e43be8775ea"},"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":"e9c119665c2015e29208bc5e0e6d74401d475e9d9ec154ef0766a7105276813b"},"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":"5cd9689a31887585f0a816759358ebaf2c79433d0264c1899e40a6c927d7371b"},"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":"b24ccf4fcbdf639f1acd562a72cbc66ef8ee05756008aaaf138b8bc7c1aa2ac4"},"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":"4d15763b9f057574ce51fd500be951b26747e64c3316edb82b193732bfc421a7"},"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":"ced1a47092de408522aec954ae0789ea77bda2caa9e509d041048e43a272c524"},"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":"529910c5fb408f455626a6bfc14578642a47844609c39963cd81a30ba9687f56"},"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":"82289ce4c2a98ca1fd82bed488d182055d8a4c06005db6516535e0ff5a12535a"},"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":"a2dfd76fe241fc5c8f440e45cec91178b546b042544406c489f0224ad8023c75"},"taxa":[{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5acd4729ab813f938b4cd5dcd231fd9d42fa9c807228403fe1db473a5852b005"},"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":"c6742ea9611094903d3bdb9eef8258b9107004c3c0d48eadd1b0530970aeb261"},"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":"0082712009451d61c7e51ee57a0df330b0fa9bc1eb308222f17bf7a4f8e11489"},"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":"36efdf3cfb02301cc3dc8fdfcbb8245a41b436842facebfef1c027d2e1fe418c"},"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":"33a88871a71a390630ea5afb45ad1e9732bd65e5556cdeb89a40a4dce62f4dd0"},"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":"75edf01cc67db003931efbead163e15f04c8fd11c30e951d28f4bbc7a3e69ce6"},"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":"f38a85fc29ad84a5012b8159b47fc41f3a51bcfe40722275fc556909d20c310e"},"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":"395bc355415ba398333f21848877781b422b664948646b4a15616c852d7d6718"},"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":"d3568bf1064dca6b2b9d9d2759b3b90c3920754cfb6f80e337c1cbb26c7dc55c"},"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":"8b599a8677a5bbe1b3ad43aef198abec835df1ff472219cdb4b924af74af4d4e"},"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":"082141e7fc92f7a2dc442712df15c1efcbf364287773c19f6cbeabb71b4e23cb"},"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":"093de6c93d5ed057546e00922a8f6deed7748912241fa1e788f8947b12133843"},"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":"4c3d80c41f2315a5e5359f153061707bb25a1dc61dd57dcb96eab93bc1897f0f"},"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":"1c45df57a27a2102cb8576c92cdb68ff1d8caed063d6dd43655e7030d5115c10"},"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":"219f8b7105d86f43b74f9e9e16c01afbcb3e899c172ce1d1b2aff68d02047352"},"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":"bd69bc3af0afdd83e2633e4f2b1d179854f25f579b542b63bc75d3e1c0fa1112"},"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":"9b605168fae700229bb308d0875ae985481bfb34ed2b63dafa3929ed3b62b380"},"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":"fd7137dfb3ec802e90444d205e6ca8103e2b5a7f3e3a6e15be5c6b485a1af048"},"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":"d4a13898001ace765421af59415a477058779f0751cdf2114419c12170d07cfd"},"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":"f3a123abeb0f35cecc01a9a6200b020ead53a78bee7d36d2d205a701d5fc0ef6"},"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":"092b3d4ed315d372affea5cbc7034b5e754f36a54bdd5f44aa49c5189ca92f0e"},"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":"4910c36cd367ee084bbf34fd88cfc84c54a25314420863d5172e2c8dcacc82df"},"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":"eff90fcb4dc899c07260baa1d5fca7e4ab246f65f332e47c071a22a9197d6235"},"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":"efeee8b4457d4ea0a42db2b0183cea7f0a08bf80a9993539ddfe4793540bd14b"},"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":"6592c36eb2aeee9b8fe114f1cf8e9345c2d9495ec7021112db0fecbba40d6d29"},"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":"b08c0207ef9c415384c4aec1ed333ce4ac6c84c621a9e5415a4dd8a15e907a51"},"taxa":[{"id":"CWE-322","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95d2d887cb8c7e0b5c7df6e46003415cb48c44073d80cac4337826606690bc1d"},"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":"40558761abbde08b44cdc4ee292766769c772b3cdacd736761204268e9616b05"},"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":"d98f340cc459c81d213cfcdfa47f1d968707b8b3dd2d8db2133896eccb2e546e"},"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":"d340120f0375208b2ac47ba45ec882d46737d3adc2c162bc5940a7c5b9137857"},"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":"b0e362575a01a4594251dbaf5871114c0250daaa9dc40310cac6a27cea5921a5"},"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":"2909ee1e47f3accb48eadcefda41aaa3e6611f8cbbf9d76212a8fe59b2e4559e"},"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":"3e6adbb852b039853eee79c4edd38e8702c175fcc32328b43f5b3d484839e893"},"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":"d7a417e91f6861f0b5784e3ae8359d5bdb5d919f72db344c5b83dc135ab7f8b1"},"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":"8988241381cc58dfd962516300b4223dfa430689e9d5d60dbac2df641a130fa5"},"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":"5bb88b90892422aecde0f0bbc6474ce408a117f2e92dc585abda42027fb9ae97"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea44013abc6ea445ddd8ee912c42d8b1bb8a5862c60722a3e575ee0909504899"},"properties":{"dependency":{"package":"github.com/docker/distribution","version":"2.8.3\u002Bincompatible","advisory":"[GHSA redacted]","aliases":["BIT-distribution-2026-85747","[CVE redacted]","GO-2026-6778"],"reachability":{"kind":"production","file":"pkg/api/handlers/libpod/artifacts.go","line":12}}}},{"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":"bd27f9a38f889593b60a84e713dc7adb3b539591daaf2680e624a2db3db69635"}},{"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":"03f5cc328b6a3f9396fee78608b88818bb638d7df843cf7e7380195156ebaea8"}},{"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":"edbf3d618e6fe5e3b9f1377fafcf92ef901fdb16d39af36d5dfbba959a9e2401"}},{"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":"078322bc78a1cbe82042f34fa79d529c467138ec34bf03768028ee255a3bc5bf"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7bc6723e255096a397e85d2cf9f9313665ff5859f671582a2a951b15fa59a7ba"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 39 of 498 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 498 of the 979 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: pkg/domain/infra/abi/containers_runlabel.go, pkg/systemd/parser/split.go, cmd/podman/system/connection/add.go, libpod/service.go, pkg/api/server/register_pods.go, pkg/emulation/elf.go, cmd/podman-mac-helper/install.go, cmd/podman/containers/rm.go (and 31 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/api/server/register_pods.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6e8b6a79a32ae1a9d3361e8d060d503d34cf52ac0dec3ca80bca26ae2170a5"}},{"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/systemd/parser/split.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdd2ae938193bc828e732722329726008dd291a5b46082e0ab2617c006df731"}},{"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":"cmd/podman/system/connection/add.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3092c1af5725557eb99133406657394ebce600812525adbeb22a6208b4f811"}},{"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":"libpod/service.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"210427c168586bf7c6e177e18d9766ddadd9625f0122254991aacb3577899d74"}},{"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/domain/infra/abi/containers_runlabel.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9629ed450d5107c53095c9630855c594526b9770b92d4dbcb2f207e205ff28"}},{"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/emulation/elf.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18b80b4937306172f4b19845c7aab2e4daa8bcda298b0de116bbc7e755c013d"}},{"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":"cmd/podman-mac-helper/install.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63974e5708e94896a5dc7697e97c63d738b69779194a63e6ffeed456684a90c4"}},{"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":"cmd/podman/containers/rm.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c36f0c7abee66e22700429e3d25e4d00b912961143669314761daee184a284"}},{"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":"cmd/podman/containers/checkpoint.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbe4eec35ef67a46dfc05908aeabd80e42e9162529dd2b1b356646f8606ea63"}},{"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/api/handlers/libpod/images_push.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdfad7e2705b8b0b21c3cb1cf162b15ce136b80640dc20c81b7eac811fb315c"}},{"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/machine/ports/ports.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38765e9e5a97581a4b36585a431b6b4d9d6fa804616a9a151cb85a8132931542"}},{"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/api/server/register_archive.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4442dc74915dcb94c530b45b1fcae7935e14f9945d57e2216ed74c5e616101e5"}},{"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/specgen/generate/namespaces_linux.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec747543b5fc70bb5817eca2b41a72613df34a58b9b54b54f9d4ea4142a68fe9"}},{"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":"cmd/podman/images/history.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2511d61ea0bfec96c28110647fb4f94070979d0b1955be2afa1c0a2a9a77a0"}},{"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":"cmd/podman/farm/build.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a94b85c9d8f01c0de1d24690ef1c794c43fcb1f81d6991eb166f8c32d056239"}},{"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":"cmd/podman/kube/generate.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"320c2fde1641ff59c077008ea233cb54ba3a80fc1dd6e1f4a49eeed3663071e6"}},{"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/bindings/kube/kube.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57649f648819b03cc25c5bc06e520ae7a15f0346e11c4803c8ae474f42638a83"}},{"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/domain/infra/abi/parse/parse.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2b99c6a9c24673ac5d04ed074dfd853092d513b2930de591e68a6b16f04aef"}},{"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/api/server/idle/tracker.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76924b74b31e37dbf799f49fd08c19e575cb8e15ff98887e703a49d4da2737c"}},{"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/specgen/generate/config_freebsd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bb0f0fc3d969cd57e29744121ec07bb3c30d1956dc0e223b7a7a9233a04de1"}},{"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/machine/env/dir.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e874257077097928199227a4a0c4345bfa59ad9f939cd0681d665f2251d78188"}},{"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":"cmd/podman/validate/args.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"899dd710e7a7469f0dc3660f9dfea90a1f87524c4cc9e20563c6544fcf09b133"}},{"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":"cmd/podman/kube/apply.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a561d37f87ca2f36efea9d80b8012e5c31aaf1e5a56f57969bc5e11d033a2d"}},{"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/machine/qemu/virtiofsd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"192efb1569cccd3d3595bcdfa5862e6cf62a9cb9586b335e226d6ea6c353d9f5"}},{"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":"cmd/podman/images/mount.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d3f5179dd58411e9b56d93ab439ef85c4f1f33ee7289937897bb10def9e42c"}},{"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/copy/fileinfo.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41c7409ef2ad0add4858a0495dc7cf53fb1daf22930d8b5747362dcdac0bc97"}},{"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/api/handlers/compat/containers_top.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9d4b1e23f99c5ed25634069d9b14b856d8c16cd687c6737f880ecf0816a4d3"}},{"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/domain/infra/abi/images_list.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c09619dae623cb0ad674e851df133ece32a4aebfe4303743202fcdca538622"}},{"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/signal/signal_unix.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"302c2b437580bee409d0c9af23af8a5baed5f51cf3061b7afbf70cb384f37f68"}},{"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/domain/infra/abi/internal/expansion/expand.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ffda784a5551ea1d9d9e192f90503fcfbf53d51e42dc8ceb730f07621ae93e"}},{"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":"hack/podman-registry-go/registry.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e1da14d3e75fb14a01499364703cb96c7df3acccdbb67b35c790b11f17d027"}},{"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/bindings/images/pull.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd1dc27d7b19500732879869e09479b9c9d99ec5910e243b84dfeceb7a6a4a2"}},{"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":"libpod/container_top_freebsd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cb0150a7ead513316336e29c7ae4e9a2f234c348149907441cc899fdf8742e"}},{"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/api/server/handler_api.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccfd56e09d30897ec959e68cbb6fba007c4ca0265b27ffc18db756e2e3dbaf1"}},{"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":"cmd/podman/volumes/rm.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c45efae6f5fd51edc4d09b9fa71571bf3190cf20504193f7d95c15a6bf30d9a"}},{"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/bindings/containers/archive.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8b216198337d37a315a6ffdd9c7ac0429f65470898ddb872b4c8666c89c739"}},{"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/bindings/images/push.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb6d87cf12c198b0b22ad67510cf181631a17b1e662abf3c640f92fc2b34037"}},{"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":"cmd/podman/images/trust_show.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7826abc53f02a19b5a02641688bc8eafc9897ba88cb6c286132912b5e3c5d4"}},{"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/machine/machine_common.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f3862f1fdb379c0ccc86b364e27330e93e1ea61e4a6bf5b62c906d9db0a31b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: play.go \u2194 types.go: \u0060cmd/podman/kube/play.go\u0060 (context cmd) and \u0060pkg/bindings/kube/types.go\u0060 (context pkg) sit in DIFFERENT parts of the tree yet change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060342a2ebe\u0060 add --platform for kube play; \u0060faf93bb0\u0060 feat(kube play): add --label flag to specify resource labels; \u0060ff2eb1b0\u0060 The feature which allows multiple Pods creation \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/kube/play.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ecb1246ea2565e735e6dd6971bfa53c76d55649736631b34ed0d587bede642"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: types.go \u2192 register_kube.go, play.go, play.go: \u0060pkg/bindings/kube/types.go\u0060 changes together with 3 other files \u2014 \u0060pkg/api/server/register_kube.go\u0060, \u0060pkg/domain/entities/play.go\u0060, \u0060pkg/domain/infra/abi/play.go\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/kube/types.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fda6cc8b7d93e5c61ab127810faf7c0c66038f9ae51df3696de90308677fff"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: types.go \u2194 images.go: \u0060pkg/bindings/images/types.go\u0060 and \u0060pkg/domain/entities/images.go\u0060 change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060af579ec2\u0060 Add --platform to podman push; \u0060901f621d\u0060 prune: support clearing build cache using CleanCacheMount; \u0060c3c0c4ab\u0060 Add support for podman push --retry --retry-delay \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/bindings/images/types.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf5f88668093add576628a7562aa2c3bc1793ac20c5ade09e13e048c9212cd8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: config.go \u2194 machine.go: \u0060pkg/machine/qemu/config.go\u0060 and \u0060pkg/machine/qemu/machine.go\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u00602b95700b\u0060 No longer support deprecated legacy QEMU machine structures; \u0060c23963d7\u0060 machine: qemu: add usb host passthrough; \u0060b2c56365\u0060 Refactor Ignition configuration for virt providers \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/qemu/config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b32a70894174ab29436eef5adcec41a23085a5572baf80be2ef3d77d95bf7e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: container_config.go \u2194 options.go: \u0060libpod/container_config.go\u0060 and \u0060libpod/options.go\u0060 change together 53% of the time (10 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060385f0905\u0060 log: expose conmon log rotation options through REST API and CLI; \u0060636eb1a4\u0060 libpod: Implement --log-opt label=LABEL=Value; \u0060d7a80dda\u0060 Discover vendor from cdi spec before injecting CDI device for --gpu o\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/container_config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"934dd2f92000b300fc0b14981d89f2cd8d69d8a3f86e761fc10dff278cc531fd"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61d9c64c1de88e7edb9c757178d6ec3103868cef4ae7e825aeeac5d15e61fb7d"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ecaffd2462973ee26b152bcd663fc09f0c1530dbc87adfd50c578c612290ae87"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e4607103018ccbf4772504c4475df05c43062f243e17471503584c98dc62fdc"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: PruneReport.Id: \u0060PruneReport.Id\u0060 is a raw \u0060string\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060string\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/entities/reports/prune.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b2c385947250f8feda0fddde7a07e2041145cccde5df3b480fe597a270b8c6"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: SecretRmReport.ID: \u0060SecretRmReport.ID\u0060 is a raw \u0060string\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060string\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/entities/types/secrets.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3f1990b533aa20e512776ea3c13b513b35b716dc2817102d828ea20c24a108"}},{"ruleId":"DM5","level":"note","message":{"text":"Mutable entity: PruneReport: \u0060PruneReport\u0060 exposes publicly writable state (Id, Err, Size)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/domain/entities/reports/prune.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"375041b3f83141c6a66d701413068c9af0ba054315ae7982d0ad4474b89f0136"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/kube/play.go"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44de1208373b0eb1d38de7794128e3148ec145a1b739baaf8aa656bb815333a"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Client{\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/apple/vfkit/helper.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1d4e104fba86f2b9a91acd9eef3a12c618d653aedd94dfee311588ea9b949f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Client{\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/apple/vfkit/helper.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8947bbc897b637f7b20b9850e97fa5e24298def081b7ce7520acd632c29c34fa"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.Get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/stdpull/url.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acc631e974689cc94e7503f2d50a021ed1d1df19a891463e861f0275fa43f56"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!streams.Stdin \u0026\u0026 !streams.Stdout \u0026\u0026 !streams.Stderr\u0060 appears character-identically in 2 files \u2014 libpod/oci_conmon_common.go, libpod/oci_conmon_exec_common.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":"libpod/oci_conmon_common.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5797e08ee3d29e7674f12dc290721ac40d712b26a78d1d6efc34d15c62af43"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(len(args) \u003E 0 \u0026\u0026 rmOptions.All) || (len(args) \u003C 1 \u0026\u0026 !rmOptions.All)\u0060 appears character-identically in 2 files \u2014 cmd/podman/secrets/rm.go, cmd/podman/volumes/rm.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/secrets/rm.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"deedee8d5c97e8f1e124392832556bc18f04cbabe2541c0ac0b623639fefdfc3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(s.NetNS.NSMode == specgen.Host \u0026\u0026 hostname == \u0022\u0022) || s.UtsNS.NSMode == specgen.Host\u0060 appears character-identically in 2 files \u2014 pkg/specgen/generate/namespaces_freebsd.go, pkg/specgen/generate/namespaces_linux.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/specgen/generate/namespaces_freebsd.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ad59fe19974280646511f50e16cbc86ef43be832ca2d15c709975c5adb4e05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.config.CreateNetNS \u0026\u0026 noNetNS \u0026\u0026 !c.config.PostConfigureNetNS\u0060 appears character-identically in 2 files \u2014 libpod/container_internal_freebsd.go, libpod/container_internal_linux.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":"libpod/container_internal_freebsd.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5bc592b884cf3341ad958829e710c2dcb932c0080b276a748a80d77f9e78e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.config.NoCgroups || c.config.CgroupsMode == \u0022disabled\u0022\u0060 appears character-identically in 2 files \u2014 libpod/container.go, libpod/container_validate.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":"libpod/container.go"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca44d81ed4f2b2b199d0bb6e1ab2b024e9984b1572770fd98f41ab787ac8a21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.state.State != define.ContainerStateRunning \u0026\u0026 c.state.State != define.ContainerStatePaused\u0060 appears character-identically in 2 files \u2014 libpod/container.go, libpod/stats_common.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":"libpod/container.go"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6cc265058535df8653b509de2668f2d29052586bfb804ad4aef47fe8371401"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, define.ErrDetach)\u0060 appears character-identically in 3 files \u2014 libpod/container_exec.go, pkg/api/handlers/compat/exec.go, pkg/domain/infra/abi/containers.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":"libpod/container_exec.go"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea2337b2523d489f25b779da5e73b8a275b3255121b3ef96d00ab687d19f005"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, define.ErrNoSuchCtr)\u0060 appears character-identically in 3 files \u2014 libpod/runtime_ctr.go, pkg/domain/infra/abi/containers.go, pkg/domain/infra/abi/play.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":"libpod/runtime_ctr.go"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"56233f51a9d2e8a7bc020a04e54dad325f77bd57ef79ddd6c2dd22c00dba2d62"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, define.ErrPodPartialFail)\u0060 appears character-identically in 3 files \u2014 pkg/api/handlers/libpod/pods.go, pkg/domain/infra/abi/play.go, pkg/domain/infra/abi/pods.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/api/handlers/libpod/pods.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71421374dd784f6e3067b402761a6f7f8a1b564494217bb49663761a5add2ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, fs.ErrNotExist)\u0060 appears character-identically in 2 files \u2014 cmd/podman/root.go, libpod/oci_conmon_linux.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/root.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afadddb4e3cb289f62bc296c093032030843016cdbc4ddf3b4591846192bfcc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, os.ErrExist)\u0060 appears character-identically in 2 files \u2014 libpod/container_internal.go, libpod/container_internal_linux.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":"libpod/container_internal.go"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2a7a72e15ae5977214ba76226c477b6386cbab2c9a24ac46a4c73aa1ea84d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, os.ErrNotExist)\u0060 appears character-identically in 3 files \u2014 libpod/container_internal_common.go, pkg/lookup/lookup.go, pkg/machine/ocipull/ociartifact.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":"libpod/container_internal_common.go"},"region":{"startLine":3054}}}],"partialFingerprints":{"codehealthFindingId/v1":"e476df0f63f33464f0376dbd5749ac9c9883859ffb454ba45a16d05075f58dd3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !strings.Contains(err.Error(), \u0022is not running\u0022)\u0060 appears character-identically in 2 files \u2014 pkg/api/handlers/compat/images.go, pkg/api/handlers/libpod/images.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/api/handlers/compat/images.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1aecf628618439ffe89b2962abe0cc81ea5d3deb3cc767251c28791033966ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err == nil \u0026\u0026 (rootUID != 0 || rootGID != 0)\u0060 appears character-identically in 2 files \u2014 libpod/container_internal.go, libpod/container_internal_linux.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":"libpod/container_internal.go"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"740f3e1df880cf6e46dac0e0344d797634d44bec71198c5c6e4841a97165ace3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err == nil \u0026\u0026 imageRef.Transport().Name() != docker.Transport.Name()\u0060 appears character-identically in 2 files \u2014 libpod/container_validate.go, pkg/api/handlers/utils/images.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":"libpod/container_validate.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0055cfe3dd1eb930d955343f3edf19fa94b0a6e1d1b917afc66ade7be37e192b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err == nil || errors.Is(err, os.ErrNotExist)\u0060 appears character-identically in 2 files \u2014 cmd/podman-mac-helper/service.go, libpod/container_exec.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman-mac-helper/service.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dd2ba73d13b739b3de0edf525c5eeb5fa6fa5ceda04cab2ba7d2b8f9873362"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(err, define.ErrCtrStateInvalid) || errors.Is(err, define.ErrCtrStopped)\u0060 appears character-identically in 3 files \u2014 libpod/pod.go, libpod/pod_api.go, pkg/api/handlers/compat/containers.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":"libpod/pod.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"682720c1c073afd5dd1e3a2b6ce26e146d1b9a79c829ea370ad0268e35a107c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(err, define.ErrNoSuchCtr) || errors.Is(err, define.ErrCtrRemoved)\u0060 appears character-identically in 9 files \u2014 libpod/container_api.go, libpod/container_exec.go, libpod/container_internal.go, libpod/reset.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":"libpod/container_api.go"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76e36d459ea194309412879ea6b3b1d27c60dc2d3d65dbdce5bb31199236d61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(err, storage.ErrNotAContainer) || errors.Is(err, storage.ErrContainerUnknown)\u0060 appears character-identically in 3 files \u2014 libpod/container_internal.go, libpod/runtime_cstorage.go, libpod/storage.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":"libpod/container_internal.go"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ac360d107ac68aac9b8e71537466c7eb62eca2082e332631d5015ea93046e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(compatibleOptions.HostDeviceList) \u003E 0 \u0026\u0026 len(s.Devices) == 0\u0060 appears character-identically in 2 files \u2014 pkg/specgen/generate/oci_freebsd.go, pkg/specgen/generate/oci_linux.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/specgen/generate/oci_freebsd.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0aea224e107e5bf93455290591540090c6063642e62496f557ec5e42f0732f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(gidMapSlice) == 0 \u0026\u0026 len(uidMapSlice) != 0\u0060 appears character-identically in 2 files \u2014 pkg/domain/infra/runtime_libpod.go, pkg/util/utils.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/domain/infra/runtime_libpod.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f26030dc77e56405cdfa41e76a21d0c4d339b3ef6f46724c4eaf9ff386ff9e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(line) \u003E 0 \u0026\u0026 !strings.HasPrefix(line, \u0022#\u0022)\u0060 appears character-identically in 2 files \u2014 cmd/podman/parse/net.go, pkg/env/env.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/parse/net.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"814ec5b8af445cd4399956944aa6a27de8dac8b249eda1a182302cc2143b3733"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(uidMapSlice) == 0 \u0026\u0026 len(gidMapSlice) != 0\u0060 appears character-identically in 2 files \u2014 pkg/domain/infra/runtime_libpod.go, pkg/util/utils.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/domain/infra/runtime_libpod.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c24257c4957363959c20d669f4bc2193d885889b790c5d00c78158aa6137ea6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060memLimit \u003C= 0 || memLimit \u003E physicalLimit\u0060 appears character-identically in 2 files \u2014 libpod/stats_freebsd.go, libpod/stats_linux.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":"libpod/stats_freebsd.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e0b33c3ff37429eacbd34327cc7bc49a9d856c04cfbdc096aa8d61342404f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newName == \u0022\u0022 || !define.NameRegex.MatchString(newName)\u0060 appears character-identically in 2 files \u2014 libpod/runtime_ctr.go, libpod/runtime_volume.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":"libpod/runtime_ctr.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ed6f2d3d84c37ef6a853549697df5f85c7347fb3ff9c6636fa8f260e2500be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060opts.Rootful != nil \u0026\u0026 mc.HostUser.Rootful != *opts.Rootful\u0060 appears character-identically in 4 files \u2014 pkg/machine/apple/apple.go, pkg/machine/hyperv/stubber.go, pkg/machine/qemu/stubber.go, pkg/machine/wsl/stubber.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/machine/apple/apple.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ff52685e7e4cef93fb8739896cff4cf1873177a0e32e782b78c69d212b9fdb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060opts.SignBy != \u0022\u0022 || opts.SignBySigstorePrivateKeyFile != \u0022\u0022\u0060 appears character-identically in 3 files \u2014 pkg/domain/infra/tunnel/artifact.go, pkg/domain/infra/tunnel/images.go, pkg/domain/infra/tunnel/manifest.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/domain/infra/tunnel/artifact.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b763682fd50818daf0ad5e11c862bf42063a4dafd2786c447c07f4d40948b14a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.IsSuccess() || response.IsRedirection()\u0060 appears character-identically in 3 files \u2014 pkg/bindings/images/images.go, pkg/bindings/manifests/manifests.go, pkg/bindings/volumes/volumes.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/bindings/images/images.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60c0aa6a21db15d039b1111e0d752ed31da5178d36955643e59e8ad7db09fa9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rpt.RenderHeaders \u0026\u0026 !listFlag.noHeading\u0060 appears character-identically in 3 files \u2014 cmd/podman/artifact/list.go, cmd/podman/images/list.go, cmd/podman/machine/list.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/artifact/list.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"20985565d5eb84a73aa29f062cee31aaab008095f97311ea97d15349bd425106"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060s.Hostname != \u0022\u0022 || s.UtsNS.NSMode != specgen.Host\u0060 appears character-identically in 2 files \u2014 pkg/specgen/generate/namespaces_freebsd.go, pkg/specgen/generate/namespaces_linux.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/specgen/generate/namespaces_freebsd.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bfce11e14419c80b1325431c2e321244b35650d35bf6568e86cef3759c3004"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060term.IsTerminal(0) || term.IsTerminal(1) || term.IsTerminal(2)\u0060 appears character-identically in 2 files \u2014 cmd/podman/containers/create.go, cmd/podman/main.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/containers/create.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa6e96412faf2104854783d9a026f5a0c00f172ee0a62bfcf99daa3dc810568"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context: Only 5/18 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: dialSocket: \u0060dialSocket\u0060 calls \u0060dialer.DialContext(\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/machine/config.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"46201c040681bdfc467502be6b95511eb7f3e61064c22b197f3fdeee2122f630"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: pull: \u0060pull\u0060 calls \u0060http.Get(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/stdpull/url.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d38b80ddb346611600906751e757d1cfd609ca613ff7ed6e8a04e2e5a27d724"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: DialSocketWithBackoffs: \u0060DialSocketWithBackoffs\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/machine/sockets/sockets.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebd6bf9563206ea91235015c1cedbe34e88759cd9e9dc67de2ce481de463b97"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: DialSocketWithBackoffsAndProcCheck: \u0060DialSocketWithBackoffsAndProcCheck\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/machine/sockets/sockets.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9faf099aa05fabecec57867a1491ebe1ce80b00724c6937bd5da545dee29c058"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: claimDockerSock: \u0060claimDockerSock\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/machine/shim/claim_darwin.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"395eb92e7adc3531f7ac6c62795d6562040311d78f9d46c6cc94bbae8e831ea5"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: isListening: \u0060isListening\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/machine/shim/networking.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31b269f5776d0b92472dbfdfdec24ddfb22145eb52b2cf98650128b58bc9dbd"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: checkSockInUse: \u0060checkSockInUse\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/machine/shim/networking_unix.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c0715dfe89aac70eb246956a20e1c439e0ab397f10b6d89f8239b16a9e3c2d"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: get: \u0060get\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/apple/vfkit/helper.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"891e0c43583999dd8232ce6821dbb80a438c4a52664df2c98cba8a12596827df"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: post: \u0060post\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/machine/apple/vfkit/helper.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39c62b2e76feded4c716d47c57f687abf1b0339e1485006824454c3be6ab9bd"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: createObject: \u0060createObject\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/domain/infra/abi/apply.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e009137d12d50751337c769108d575d7a099ffdfe3366fd18395c65a40cbf5"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: validatePlugin: \u0060validatePlugin\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":"libpod/plugin/volume_api.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5649ab3e782052ff3c67731077fa39f2a22eca0b94e9da5bdb56ac31c12864bd"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: sendRequest: \u0060sendRequest\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":"libpod/plugin/volume_api.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2e20e329c700cc6d4a69f184dc557c5c4fc31da391ed228e81ae50032cffdb"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: readerFromArg: \u0060readerFromArg\u0060 calls \u0060http.Get(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/kube/play.go"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22875bb5f3d3798b8b6e9f8b898d192f97d4ab75309d6d76a189c33bfd3821c"}},{"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/systemd/quadlet/unitdirs.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"361b1dcd8ff055f80f3de80192771f87119309790aa81d298138ecde5843bf0c"}},{"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/systemd/parser/unitfile.go"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27baa24fc2b245cd32d2868eebb2170f14f1703eed3a2dfe1fc66d631b89212"}},{"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/specgen/generate/container.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"9beb1b738ea5caf95e06128d7383578368145bd65954b6954953d6dd90b4f4a6"}},{"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/specgen/generate/oci_linux.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9a2dc96a7cb9a01be6e1ce8a41a80814a3267efc61a45e93c11741d4366110"}},{"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/specgen/generate/pod_create.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cfc11975b7de10e3a69fb89ee4a2079d590c0197e91a74d3775c814fde96ac"}},{"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/rootless/rootless_linux.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5a85fc843d24d7efc3ecadd2d8e98dcb040755a03e170de25eb58139fd9c38"}},{"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/machine/machine_windows.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f58d96afedf4700a33fb082dc42cbe9ee2eac7564e21d06e24f5f46d4b6a933"}},{"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/machine/wsl/wutil/wutil.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"542e9664dfbec5f65f8986c31d43552fc95722340c6a0e27f028830ea7fbbb58"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err = cmd.Start(); 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/machine/wsl/wutil/wutil.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e20d19a06d1ae7f97e45f17308837d698cb72f4a0cf8ba42f4d3ad044de1c4d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if nil != err\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/machine/windows/util_windows.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f003762d550f692265c17c55bd966a985026711a9db42e65f441aaaa8ae231a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if nil != err\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/machine/windows/util_windows.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b05d9da4d3594255edccf921da9d5a4a9186e47210b362edbdce84a133d2c0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if fileErr != 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/machine/windows/util_windows.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b6e31d99e2b144501a0350b26affb90b1ee9b3d779ae02429566c20ec57e59"}},{"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/machine/shim/claim_darwin.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9dda26c25480f62da14846811f69e488fbe3a1ccd2734360fb759fb33a4305"}},{"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/machine/shim/claim_darwin.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"166ddbbd6021487dfba9d91e8f32616c3c1d3616ae6e5d96fb10ba601876c9bf"}},{"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/machine/shim/claim_darwin.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b725e71cdfeeeea285dfe3986befad6b9c6c18da051120b9d99f2953459cac"}},{"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/machine/shim/claim_darwin.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28d9bcf60ad80e1c0f8465cf7b8e306862d7d2082a3d7039652c6185290c257"}},{"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/machine/shim/claim_darwin.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67d904b793be7b1c231af3b03fbe8b41a8c78299ebeab28d7c6697e57ab762b"}},{"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/machine/shim/claim_darwin.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd1031c5467f0574ef9a53718f4a33ffe9593a281f4f9b2fc5da46ec7a0bc86"}},{"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/machine/shim/networking.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b859ccebb99ee4ad2c118cd2b64b67a4807e19c7239652e55a58900b6368f169"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := qmpMonitor.Disconnect(); 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/machine/qemu/machine.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf57966c8a81db1d0a669d33746b160737ecfa205096ff278e4f84034b02e38"}},{"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/machine/ports/ports.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aac9493679389971e7cd5d1913b8e4aa1c218ce6a9da736ecfdb21fcdee63af"}},{"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/machine/hyperv/hutil.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7e61cd1ab0cb37ee8ff2232666df41e15af8f7a547d2068f4ad5eeba8cd7f6"}},{"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/lookup/lookup.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"85891e8ae8e5a9694e037e336320ceffefedecaffc4e2c215af368c9064ffb7e"}},{"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/lookup/lookup.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"61528f9bc18b7a74f11129f410e9d7af05fd6344e59b554ee7d951ca3973a114"}},{"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/k8s.io/apimachinery/pkg/api/resource/suffix.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51744e3aa4e48984c1a912c4d78b83e95871c1b2a9989ebfc3b789a9bd6e2be"}},{"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/domain/infra/abi/play.go"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e83157d6799d27db27ae4aba9a360eee9a3a0d0d0924387bf1a45ae644dc2a5"}},{"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/domain/infra/abi/pods.go"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2e4005fc0acaa917d0cab320d52dd4ed8c0d2b968f9d0057c0f2f34672f732"}},{"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/domain/infra/abi/quadlet.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e0a90163b237823f273fa44def4e11f60c3560362dcd9431b939f03ca2b406"}},{"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/domain/filters/containers.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2664f8968d5974d0cbec5aac45628fb2de7ff5f8e290a1a90c6e353a4c53e2"}},{"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/domain/filters/containers.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3222b29a00e224941899cc53d34c7dfbde2dc27cec61a09ed88d33e9afdf2f"}},{"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/domain/filters/pods.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a361981569d9063ec9733ac5692eb973cd08fe49c3d8448863a734aacfa1f9"}},{"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/domain/filters/pods.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7aab3bda231f1a449e8b53eb6eea49f94e0c3c6b7d9d7801720544915683da"}},{"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/domain/filters/pods.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"681fc83bda601ac4c3e1a01f55dc52b921310822eb4a0e7df061b9fb0b11b3d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err2 != 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/domain/filters/pods.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1de9a1e5152d02fb93bad63cecc53140e46f1c172253df8aa08556b783c88f4"}},{"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/domain/filters/pods.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d5e6adbea370b975c54a3ebcf8bc2c950d5925af1f401271eae383e9a1347d"}},{"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/domain/filters/pods.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3e22c0acd3d5f456d7f6f2169028e02d31b5ea0fac1cc737a2b957f5e4232c"}},{"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/domain/filters/pods.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"822f30727434a52e42e8802d481659558af76e77c87d6fc6051c7d3fed86946c"}},{"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/domain/filters/volumes.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef749d5a27017d6590e1c8a62f5646d552f291807f0ee4f0faaaef2afbf1a33"}},{"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/criu/criu_linux.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"69405d0f8f98d30faf1272e8327b0c1bad81e32e82ac531d4f305d934e8e623c"}},{"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/checkpoint/crutils/checkpoint_restore_utils.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c1934fe82a6ac3a3b73ecd6e543f0e78db7bcb3d4b4017fe0002cb2381b229"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := metadata.WriteJSONFile(deletedFiles, destination, metadata.DeletedFilesFile); 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/checkpoint/crutils/checkpoint_restore_utils.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c5d63c8ac825d3787bb263e59d5ae5bd88661bfbd583a91b2bb393169f9f9c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := cmd.Start(); 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/checkpoint/crutils/checkpoint_restore_utils.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c027211cb5ec06d829a96915090c257e4a3a3856289b48be49508b1785d9f7d"}},{"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/bindings/images/build.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"159caa2f825dd21f271dba738bbb184c8d034fe000e134edcebed4c0e1368cc7"}},{"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/bindings/images/rm.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5494560a2eba5044c20e471358373e32f5b6f19bc4cb4ddbeb831755cdddaff2"}},{"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/bindings/containers/term_windows.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"354beda3ddf6ced0b61fcfc1b912e85e23ad7f159f909c71707cb0890cdf73cb"}},{"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/api/server/server.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b866a091502abb5ac4f2bf97d07cc5d5cd515df9e066448c62f5118069167536"}},{"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/api/handlers/libpod/pods.go"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"16add93ef74c8d296fc4c10453d82e8a87821a851c9fafe3ff327bdceaf6f8b9"}},{"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/api/handlers/compat/info.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51efb346cbc8578736f4fd8e32bab072c415bd0f247b070c356f94b986ee777"}},{"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/api/handlers/compat/info.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d94da42d742023a66209e1e7cfd3a6ac3e85c0694b7937389764423e14e448"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := JSONDeepCopy(c.config, returnConfig); 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":"libpod/container.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"152c3902541c041976e37aead50ded6f954fee3d25c84ab3d395cd3a1b0b98b9"}},{"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":"libpod/container.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd1d8a94fc599880adb0b9b66f5d173d1919b4f21428206cb5e9ac34a76cde2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := JSONDeepCopy(c.config.Spec, returnSpec); 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":"libpod/container.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7139cc00b8227eb35c47333036a1053e23c5c42dd3a3367e66c126804b8b1ded"}},{"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":"libpod/container.go"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"251aee4cb3da03d2271a8a51a6567f59b087cd7c23243579baa8ae100f5a9ccd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := c.syncContainer(); 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":"libpod/container_api.go"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdc37baade6999c899c71527ddf5e6a34cca2075ab147bdff507be5db161aae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := c.syncContainer(); 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":"libpod/container_api.go"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc91a8db286b4c8932005db46dc488dd10d42a2ca02c26d33c44b61d31536c3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if createNetNSErr != 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":"libpod/container_internal_freebsd.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54037e74689d272d4e3e781d8bd6efe185742e39d46b82bc474444a3c4de6d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if createNetNSErr != 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":"libpod/container_internal_freebsd.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8adbaa08e6525924a2faebb4b0c00fe17d81b01b425d3f5e24cde2f0af6db0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if mountStorageErr != 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":"libpod/container_internal_freebsd.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"652047fd85677c8eb2c032bc949d1270e0af9f2a5390a19daad0fde25f5a4eda"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if createNetNSErr != 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":"libpod/container_internal_linux.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b0a9e1d98ec244b36ab02cfba574dfbd85bc92f91fd1fba6a092c3dbdff940"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if createNetNSErr != 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":"libpod/container_internal_linux.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5effefabdc6a384fc9884f9cd181213acd1b2ed423fefb4e0416b48709b12d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if mountStorageErr != 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":"libpod/container_internal_linux.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3157aa052a654ea5e953f6fce075a7e49b2e396c81497508d374f3ea87c4de9"}},{"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":"libpod/container_path_resolution.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ff3a17f54dfadac4adf78e78d71ee4628e9b763db25c1db2fc74c1245b314f"}},{"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":"libpod/info.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebede515c66d44dfbce366a406a808583ae4b1527d7efb4c6e5b50a1378c171b"}},{"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":"libpod/networking_linux.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a0fce438999251bcc268ccf80a4f7e3e0b9c5cfe48bf17814138d741e8b9b0"}},{"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":"libpod/oci_conmon_common.go"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"31720d9296d8e0b53d3db66165198bc8d3616d4bce0ddb40ce45b6580479ab35"}},{"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":"libpod/oci_conmon_common.go"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db1f5c161eafd0dc577d54564c5b35bfc04bd41826c21adf0a4fa1c4ad1d451"}},{"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":"libpod/oci_conmon_common.go"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"39735ef1cde1dd44388985d89928a29cdb7ae83f0de7b0d050403c9496994e86"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := JSONDeepCopy(p.config.ResourceLimits, resCopy); 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":"libpod/pod.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8e6eba21f3015c894205bb92c93881e1364aaee9f3557177b934dd2b57e63a"}},{"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":"libpod/pod.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"676680a049949668a7e59ac869ae054224b3fa387fc94bfeba0f46fd2213949a"}},{"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":"libpod/pod.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8588e7fe502626553a932d722a0cff5e40d7493f06de15a0d764caa8893b0255"}},{"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":"libpod/pod.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69837a0ef362a7a31c2b13adee994d36e44ca074fa79f3b76c5918021a27f97"}},{"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":"libpod/runtime.go"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"b395f7a17dda904b0a05267a12f0e1259f6bd68aaaddf55e71aca1df37b8b439"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := fileutils.Exists(filepath.Join(path, \u0022 \u0022)); 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":"libpod/runtime.go"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bfe5d38bbab960d14de81bcdbc5e18d89295de52845a893e822a126c66e7a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := fileutils.Exists(sqliteStatePath(runtime)); 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":"libpod/sqlite_state_internal.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b61b6cd956a690f5829da02bd16bc834f56480699e9cce2ccab7a51fa2676a"}},{"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":"libpod/stats_linux.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4e14dfd5240edb2369cbf0d97948aecf0762e8c72243447a04fa7d66227fee"}},{"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":"libpod/util.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1533195c5a549fd19ba65bc4eac624ceefcf18df334b87244e558fc77b60876"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/quadlet/main.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60f22d872b679cdc25399cffad9ba3a33a4f177d1860ec54c19fe16b8abac27"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/utils/utils.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5a78fa9af10a1143725fe881b079b2f7dc0429ef296e32955ddffe0fcdb6e0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/list.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc567285fb91ff4b75acfb9c87cc2983fd3888716ed66d4fdb5f278ab169b705"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/machine.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a92bf3404569d5209644faf8dac39690e46c1fdbad22da5de0e39880ec2e901"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/machine.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5c618ac949973a5a6c1f8f045704d4f114f6b1ca9b708371dae222c8d0a2f4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"66976461ab7692c83b40881acfc9ee8ec65ae88ee438fc9a9a34e869e0e39790"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err = scanner.Err(); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6666dc64e3ae12e227a28e19b48a3768ea512154be8f383ef380d6e912b4d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/common/completion.go"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0e47bcd7285b3d618bc38c97f0126fce81cd259642a34a994cb3d0e02ab2fb"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 1 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060strTime\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/podman/machine/list.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"72997f9964efd4e97343f4ebf1d2eb6b1655d831b83a33ef3ca21307052921cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060BlkiThrottleReadBps\u0060 turns a non-nil \u0060err\u0060 into \u0060return []define.InspectBlkioThrottleDevice{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"500967963844672d0f67b35d673ce7439b70f34a47279018d3a7de73262f4e97"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060BlkiThrottleWriteBps\u0060 turns a non-nil \u0060err\u0060 into \u0060return []define.InspectBlkioThrottleDevice{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bc35fe68189200b43a1bb29a34a2d3cf969dc22d5fd831cd6b3e42be0bf3e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060NetworkMode\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fdd0c9c844df8c1091123d0a4c1dd2ea8ecbf8daa24b538cf9575ca88ed403"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060NamespaceMode\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libpod/pod.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bbe0cbf7a322b74b6f00924c32b81187efcc1d621f7b6830239efb894c0a04"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-322","guid":"f9bcce90-227a-d056-9902-7b1c2f9f299c","name":"Key Exchange without Entity Authentication","shortDescription":{"text":"Key Exchange without Entity Authentication"},"helpUri":"https://cwe.mitre.org/data/definitions/322.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)","shortDescription":{"text":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-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-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-676","guid":"550e6fab-2881-3252-8a05-c688a6b19c14","name":"Use of Potentially Dangerous Function","shortDescription":{"text":"Use of Potentially Dangerous Function"},"helpUri":"https://cwe.mitre.org/data/definitions/676.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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":94,"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."]}]}