{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"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":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"},{"id":"D42","name":"Runtime Threat Enforcement","shortDescription":{"text":"Runtime Threat Enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/D42"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"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":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"tuned.NewNodePerformance (cyclomatic 51): tuned.NewNodePerformance has cyclomatic complexity 51 (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/performanceprofile/controller/performanceprofile/components/tuned/tuned.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"deba8916d2f3ad51f9bbddd9aef45052143b4cec07fb199b496fff1831c75726"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.sync (cyclomatic 50): Controller.sync has cyclomatic complexity 50 (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/operator/controller.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee34f54693de18dc668dc3b1cdf7a96ef52804f732c763373b42bd3242cf8f3"}},{"ruleId":"D1","level":"warning","message":{"text":"machineconfig.getIgnitionConfig (cyclomatic 41): machineconfig.getIgnitionConfig 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/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5040550178c44bf386e78f213129a38ed74c873acfa33528d908ebcf4b302a21"}},{"ruleId":"D1","level":"warning","message":{"text":"PerformanceProfile.ConvertTo (cyclomatic 40): PerformanceProfile.ConvertTo 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/apis/performanceprofile/v2/performanceprofile_conversion.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3463672a95ddc2e41e85497c512aa30389e9b41c231991fe5ccd1707df79c11b"}},{"ruleId":"D1","level":"warning","message":{"text":"PerformanceProfile.ConvertFrom (cyclomatic 37): PerformanceProfile.ConvertFrom 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":"pkg/apis/performanceprofile/v2/performanceprofile_conversion.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f9c68dba40c17a3b666ec0f0336e9cd7c98c46d1d2ff0c651b2ff336c87d5a"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.syncProfile (cyclomatic 36): Controller.syncProfile 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/operator/controller.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"543cfbde4cef329a3e398c1bd69c830f87833044f5ef1d9afb631f232e8b2bcb"}},{"ruleId":"D1","level":"warning","message":{"text":"tuned.expandTuneDBuiltin (cyclomatic 32): tuned.expandTuneDBuiltin 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":"pkg/tuned/tuned_parser.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"777a081007be744e97c2bd7fd0a54d707d5429edddd24ab25017dc29a24aa979"}},{"ruleId":"D1","level":"warning","message":{"text":"render.render (cyclomatic 31): render.render 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/performanceprofile/cmd/render/render.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d31b3da364e8e9600285dc3d94a19be80f0a4ccebf092d37377196d5f1e7846"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.Apply (cyclomatic 30): handler.Apply has cyclomatic complexity 30 (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/performanceprofile/controller/performanceprofile/hypershift/components/handler.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a5d405b023ed133292e3d028073743682d58b6ea8e40d13511319dcfb28070"}},{"ruleId":"D1","level":"warning","message":{"text":"kubeletconfig.setKubeletConfigForCPUAndMemoryManagers (cyclomatic 29): kubeletconfig.setKubeletConfigForCPUAndMemoryManagers 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/performanceprofile/controller/performanceprofile/components/kubeletconfig/kubeletconfig.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f0855e6da68a752df796026fda169a890626481ef49523a0a0f973c33aa4ed"}},{"ruleId":"D1","level":"warning","message":{"text":"render.render (cyclomatic 28): render.render has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/tuned/cmd/render/render.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da14cc9c2f915bce66a1c7a1bec80d38aa9e76c3f11bf6d53f7f126281a61f6"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.Apply (cyclomatic 25): handler.Apply has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/components/handler/handler.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"648a16011c68be657ff06ec84109eb5a162ba40c8acfe4462eef99671a5a75f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.changeSyncerTuneD (cyclomatic 25): Controller.changeSyncerTuneD 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/tuned/controller.go"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d38d51e603b5974d190561d0ae8e4618a46ec46701b54b3c311edfd20dce47"}},{"ruleId":"D1","level":"warning","message":{"text":"PerformanceProfile.ConvertTo (cyclomatic 24): PerformanceProfile.ConvertTo 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. This shape REPEATS in the file: one other method here (PerformanceProfile.ConvertFrom) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32e514e76b92bb1701f83783d8497b69462c72622acdc21fd9dc0df41f550f9"}},{"ruleId":"D1","level":"warning","message":{"text":"PerformanceProfile.ConvertFrom (cyclomatic 24): PerformanceProfile.ConvertFrom 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. This shape REPEATS in the file: one other method here (PerformanceProfile.ConvertTo) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6ea8898dffe19bc56f4a97e81d1771b005a07d2d856f1ab0132b14b61ba7dc"}},{"ruleId":"D1","level":"warning","message":{"text":"PerformanceProfile.validateHugePages (cyclomatic 22): PerformanceProfile.validateHugePages has cyclomatic complexity 22 (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/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5d0c1e80a66856e041618cebdc3c86f67fc2293c189110d183c997d1c099d1"}},{"ruleId":"D1","level":"warning","message":{"text":"metrics.RunServer (cyclomatic 21): metrics.RunServer 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/metrics/server.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cc94ea2cdec0401ce83916684909e6f741e8e16b5f5f026d2a9d6198fb4eb5"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileCalculator.calculateProfile (cyclomatic 21): ProfileCalculator.calculateProfile has cyclomatic complexity 21 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own 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/operator/profilecalculator.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4687d010aba3c7e2f57cc3a439c9dea114a090f22824a3062281e218a33888bf"}},{"ruleId":"D1","level":"warning","message":{"text":"main.operatorRun (cyclomatic 20): main.operatorRun 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":"cmd/cluster-node-tuning-operator/main.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"425bb2f73cc67f72ba88a8f96ff8a427e828f0fbbf70a706c29e1ee512bce937"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.computeStatus (cyclomatic 20): Controller.computeStatus 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/operator/status.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5023ecef4b3ac4cbd315759761885dedf6781a8fe818bd213838d4760e158a58"}},{"ruleId":"D1","level":"warning","message":{"text":"PerformanceProfileReconciler.Reconcile (cyclomatic 20): PerformanceProfileReconciler.Reconcile 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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2c323942f0f54c9fcce83b0ef676880065ab9e6e666df512407b221c8c1a09"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileCalculator.calculateProfileHyperShift (cyclomatic 19): ProfileCalculator.calculateProfileHyperShift has cyclomatic complexity 19 (threshold 15). Of this number, 14 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":"pkg/operator/profilecalculator.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bdc7f9e48f4440f124c9500551f3eb38418c01890f1f5c200520c9baff471f"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.syncMachineConfigHyperShift (cyclomatic 18): Controller.syncMachineConfigHyperShift has cyclomatic complexity 18 (threshold 15). Of this number, 17 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/operator/controller.go"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7c2522645c78b15942c2a9d93f7a8357c3d81936f6715446e04d5b2d08dcc8"}},{"ruleId":"D1","level":"warning","message":{"text":"tuned.TunedRun (cyclomatic 17): tuned.TunedRun 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 129). 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/tuned/run.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ceb31f478c925edb682db9d45460dc438915ac7dd477e993ec92b0042cd3e67"}},{"ruleId":"D1","level":"warning","message":{"text":"tuned.execCmd (cyclomatic 17): tuned.execCmd has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 273, 251). 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/tuned/tuned_parser.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0784c406003581b5382be8af12e5d1e4ccbdcb960e30b1d8463bb9948af8a765"}},{"ruleId":"D1","level":"warning","message":{"text":"profilecreator.CalculateCPUSets (cyclomatic 16): profilecreator.CalculateCPUSets 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/performanceprofile/profilecreator/profilecreator.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4885a8d6371d23c3e12d165501fa318f4b4d1f8eec345ad7c10fe5848e8c46"}},{"ruleId":"D1","level":"warning","message":{"text":"profilecreator.getOvsDpdkCPUs (cyclomatic 16): profilecreator.getOvsDpdkCPUs has cyclomatic complexity 16 (threshold 15). Of this number, 11 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":"pkg/performanceprofile/profilecreator/profilecreator.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf0a9e0e1d3d6aabd9f1630d29890f73d6278659ef2d1d44942f2c094ed3c09"}},{"ruleId":"D2","level":"warning","message":{"text":"tuned.NewNodePerformance (cognitive 92): tuned.NewNodePerformance has cognitive complexity 92 (threshold 15). Drivers by points: if/else 41 (81 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/components/tuned/tuned.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e130fe64431b8e2b69f4060e489f3bc7ff4a267006dd29b4572445e025e17b19"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.sync (cognitive 75): Controller.sync has cognitive complexity 75 (threshold 15). Drivers by points: if/else 39 (69 pts), boolean chains 2, jumps 2, match/switch 2 (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/operator/controller.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"75da0230bab12ed1e85bc6003016e431ffb090e625f8e829012c3c538e213ff7"}},{"ruleId":"D2","level":"warning","message":{"text":"machineconfig.getIgnitionConfig (cognitive 74): machineconfig.getIgnitionConfig has cognitive complexity 74 (threshold 15). Drivers by points: if/else 38 (69 pts), loops 2 (3 pts), boolean chains 2 (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":"pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"759143447b701bd8e35cd70d7303222bd8088cbcca0df7122f3834f2f5b13d08"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.ConvertTo (cognitive 72): PerformanceProfile.ConvertTo has cognitive complexity 72 (threshold 15). Drivers by points: if/else 34 (60 pts), loops 5 (12 pts) (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/apis/performanceprofile/v2/performanceprofile_conversion.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd54f0dca2a967d579c5a743e54c27af76f1717bcc437e2f958904879b90cde"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.ConvertFrom (cognitive 68): PerformanceProfile.ConvertFrom has cognitive complexity 68 (threshold 15). Drivers by points: if/else 32 (56 pts), loops 5 (12 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":"pkg/apis/performanceprofile/v2/performanceprofile_conversion.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bb32b489d06a916eea9d814785c99d9e9e8fefbaf9a24f7779e65d41949532"}},{"ruleId":"D2","level":"warning","message":{"text":"kubeletconfig.setKubeletConfigForCPUAndMemoryManagers (cognitive 64): kubeletconfig.setKubeletConfigForCPUAndMemoryManagers has cognitive complexity 64 (threshold 15). Drivers by points: if/else 25 (61 pts), boolean chains 3 (nesting depth added 36). 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/performanceprofile/controller/performanceprofile/components/kubeletconfig/kubeletconfig.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea23389b9b12df6d640157c94fea2b6d1e23726139eb21aaaab79058a53faf8"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.syncProfile (cognitive 54): Controller.syncProfile has cognitive complexity 54 (threshold 15). Drivers by points: if/else 26 (49 pts), boolean chains 4, match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/controller.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7cc4b51e6b3f1a97fb30753114f1fd480d925133b1180294dd443856db8b63"}},{"ruleId":"D2","level":"warning","message":{"text":"render.render (cognitive 51): render.render has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (39 pts), loops 5 (7 pts), match/switch 2 (5 pts) (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/performanceprofile/cmd/render/render.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"02367db3fe483b263459cad66364538829e1c7894157030aead6c21325405088"}},{"ruleId":"D2","level":"warning","message":{"text":"tuned.expandTuneDBuiltin (cognitive 51): tuned.expandTuneDBuiltin has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (31 pts), boolean chains 8, jumps 5, loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 24). Of this number, 49 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/tuned/tuned_parser.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f586f54a3a2ebbb46bc68e5b7f4038250fb6965308870a3281a110eb4f10bd44"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.changeSyncerTuneD (cognitive 47): Controller.changeSyncerTuneD has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (42 pts), boolean chains 5 (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/tuned/controller.go"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e2ec68b0e5e93dbaeac5e8c710468e623c915b0ee125bf45f732a03ba47760"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.computeStatus (cognitive 43): Controller.computeStatus has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (37 pts), boolean chains 2, loops 1 (2 pts), match/switch 2 (nesting depth added 21). 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/operator/status.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea26e8a887a0bc7bca944ac86d3e1f9b26e4ab595ef32b65c0e97bc0f5c86c21"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.ConvertTo (cognitive 38): PerformanceProfile.ConvertTo has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (29 pts), loops 4 (9 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. This shape REPEATS in the file: one other method here (PerformanceProfile.ConvertFrom) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b108c271efdf4dc2dae09138559b0a6a1f4a9457805cbbba22a1cd88df243b8f"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.ConvertFrom (cognitive 38): PerformanceProfile.ConvertFrom has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (29 pts), loops 4 (9 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. This shape REPEATS in the file: one other method here (PerformanceProfile.ConvertTo) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a131ae830fef9d6bc857bb0fea9333ef82f4110f02d39b44a96ae566c25b6e03"}},{"ruleId":"D2","level":"warning","message":{"text":"metrics.RunServer (cognitive 37): metrics.RunServer has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 4, match/switch 1 (2 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":"pkg/metrics/server.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5122ed8bcca08262dfc78be862893205a7717f1a7adb709cae084c6f6b7436"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.makeClusterData (cognitive 37): cmd.makeClusterData has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 4 (9 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/profilecreator/cmd/root.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1b47955f6b09adaa70937a0cd148be53fe0491cdc09d441582af6dc2d36c66"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileCalculator.calculateProfile (cognitive 36): ProfileCalculator.calculateProfile has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 3, loops 2 (nesting depth added 15). Of this number, 19 points are the body\u0027s own statements and 17 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/operator/profilecalculator.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8731e925b3093dc211f314bf4808fbed019baff241001cf602437517067e3d8f"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.syncHostedClusterTuneds (cognitive 35): Controller.syncHostedClusterTuneds has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 2, boolean chains 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/hypershift.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8e95b3f11c9083f94c8f1f41ab4a3eb5d230d189f7951639cbb1a22ec38a08"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.Apply (cognitive 35): handler.Apply has cognitive complexity 35 (threshold 15). Drivers by points: if/else 26 (34 pts), boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/hypershift/components/handler.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7b0c70cafa1118f185b1924f934bac5a4660d65dbb8b1e03053b96bf3cd88e"}},{"ruleId":"D2","level":"warning","message":{"text":"profilecreator.updateExtendedCPUInfo (cognitive 34): profilecreator.updateExtendedCPUInfo has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 5 (8 pts), boolean chains 1 (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/performanceprofile/profilecreator/profilecreator.go"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcf1fa4e51be3f31d3c879df12950aec3815d49cb9d5214982473a911f6d5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"render.render (cognitive 34): render.render has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (30 pts), loops 4 (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/tuned/cmd/render/render.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe55e3f77e878353fccab2769b2ebee157fef3b98315bcf0261ce33ebde3bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfileReconciler.Reconcile (cognitive 32): PerformanceProfileReconciler.Reconcile has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (32 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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb7c78aadce346998f687ab6f64ad0b042a97610f8d864f06c7b8e2728c146a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.operatorRun (cognitive 30): main.operatorRun has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (30 pts) (nesting depth added 10). Of this number, 28 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/cluster-node-tuning-operator/main.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4eb3723365b90428a71c6a2fe33805b6ebf2141afac01eff2f1d21f469af15"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileCalculator.calculateProfileHyperShift (cognitive 29): ProfileCalculator.calculateProfileHyperShift has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 2, loops 2 (nesting depth added 10). Of this number, 20 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/operator/profilecalculator.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"785e46929875a594667e5ec979559d7aae2836062921698a692af2416ed9a51d"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.validateCPUs (cognitive 27): PerformanceProfile.validateCPUs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (26 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/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"0603e36364061a16b1b65f474b2343c724f7e272de539843346a0d7ca760bbb3"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.Apply (cognitive 27): handler.Apply has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (25 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/performanceprofile/controller/performanceprofile/components/handler/handler.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f274687c32284996e6ae26c6d9fd468decf6d9dcdc2e1ac0f3b2754a717485"}},{"ruleId":"D2","level":"warning","message":{"text":"operator.tunedProfilesGet (cognitive 26): operator.tunedProfilesGet has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (8 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":"pkg/operator/profilecalculator.go"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fb10c59f14523bb83f9d15188a404f1de13a228ce925bc6162ab21e157f95b"}},{"ruleId":"D2","level":"warning","message":{"text":"profilecreator.GetMCPSelector (cognitive 25): profilecreator.GetMCPSelector has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/profilecreator/mcp.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"063507630d500bcec6a9d6e1280e4f262717b84ca4097afcc68415c1b9da558b"}},{"ruleId":"D2","level":"warning","message":{"text":"profilecreator.getOfflinedCPUs (cognitive 25): profilecreator.getOfflinedCPUs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 12). 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":"pkg/performanceprofile/profilecreator/profilecreator.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"644c75fb4d6941d687fddfd8686534806ca687818272bdebc080716b3079ae19"}},{"ruleId":"D2","level":"warning","message":{"text":"tuned.TunedRun (cognitive 25): tuned.TunedRun has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 3, loops 1 (nesting depth added 10). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 129). 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/tuned/run.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9003ba5fbaf3c3ac23b295a45a1d8685adb88097f252dae481a3cbde9ef7c8d9"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.syncMachineConfigHyperShift (cognitive 24): Controller.syncMachineConfigHyperShift has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 2, loops 2 (nesting depth added 7). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/controller.go"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"34be330402ace91f4fe16162a992f496f1d4830791cfce5746726b78ebd07311"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.validateHugePages (cognitive 21): PerformanceProfile.validateHugePages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 7, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"afee0aeaa5971139cf8ec2ed8e6ad14ddee2f9f75cd1e08537de59712333289f"}},{"ruleId":"D2","level":"warning","message":{"text":"tuned.execCmd (cognitive 21): tuned.execCmd has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 3, loops 1 (nesting depth added 8). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 251, 273). 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/tuned/tuned_parser.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6104c3f4ce13a93d1d8cbab373cdf32906b53b58da100a2bf38f2c1e7abd06e6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.dedupExpectedContent (cognitive 20): main.dedupExpectedContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 5 (7 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":"cmd/gather-sysinfo/gather-sysinfo.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"94144d9c1df178af4800741f6b3d68a8b5f90ab5f9779cd29fd28460304f9927"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.run (cognitive 20): Controller.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (20 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/controller.go"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03561a2523452d84cc930d2aef6d6265f28929f3363bfc3e84727039997f7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"status.GetTunedProfilesMessage (cognitive 20): status.GetTunedProfilesMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 3, 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/performanceprofile/controller/performanceprofile/status/status.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"8374566d23664928e57152fee96f2beffba87c8db19146f6a8adb18249a38d18"}},{"ruleId":"D2","level":"warning","message":{"text":"profilecreator.getOvsDpdkCPUs (cognitive 20): profilecreator.getOvsDpdkCPUs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/profilecreator/profilecreator.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc24439a1f0197af7080f5943c1c426372ab95530e9fb60c1ec27153654ff329"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.validateWorkloadHints (cognitive 19): PerformanceProfile.validateWorkloadHints has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6 (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/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e05135d1167734ed384ed7d10e4be071d664edddaf4f31c2a7061078b9855b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileCalculator.getPoolsForNode (cognitive 19): ProfileCalculator.getPoolsForNode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2, match/switch 1 (2 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/operator/mc.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53a641440608812b679e99d9b326b72340ae924a3db99bf4f17a862b6c10d75"}},{"ruleId":"D2","level":"warning","message":{"text":"metrics.buildServer (cognitive 18): metrics.buildServer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 100). 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/metrics/server.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"045d4ececba3d33acb92ad18313de83509a7e080bf38a90c77fc8bc8f502ebff"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.syncMachineConfig (cognitive 18): Controller.syncMachineConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 pts) (nesting depth added 5). Of this number, 17 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/operator/controller.go"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f4d5614e19e1e8de71c336e58c2da4cd3e4a3baab9f75fdd3c2fffff313903"}},{"ruleId":"D2","level":"warning","message":{"text":"profilecreator.getPoolsForNode (cognitive 18): profilecreator.getPoolsForNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2, match/switch 1 (2 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/performanceprofile/profilecreator/mcp.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"04969bfc7235374fcc48eeb7c3b5bc687b86344cef7de817b9533d86100c115a"}},{"ruleId":"D2","level":"warning","message":{"text":"profilecreator.ensureSameTopology (cognitive 18): profilecreator.ensureSameTopology has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (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/performanceprofile/profilecreator/profilecreator.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f020a6007fd113ec7627081b6421a56b02ec5e648ef0184685cbc22d3af741"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.removeResources (cognitive 17): Controller.removeResources has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, 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":"pkg/operator/controller.go"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a899a896552ff39cb3527a605b22080be7f353bfc7ea6b04648258c5f91bcb74"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.getObjFromTunedConfigMap (cognitive 17): Controller.getObjFromTunedConfigMap has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/hypershift.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"786d72b9cae80eb8a50881795b2eb0333d29f30d5bad274a4f013803ad103caa"}},{"ruleId":"D2","level":"warning","message":{"text":"cpuAccumulator.AddCoresWithFilter (cognitive 17): cpuAccumulator.AddCoresWithFilter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (13 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/performanceprofile/profilecreator/profilecreator.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8754462bac81aadf8c053cc92e1ffca979c55c43a4dcc9bafd086ab7314c29"}},{"ruleId":"D2","level":"warning","message":{"text":"tuned.retryLoop (cognitive 17): tuned.retryLoop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 7). Of this number, 12 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/tuned/controller.go"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcc9b46c0bf13e936253fff3a54134ed9d8bdb6318d031679f7b9e7cc78b94f"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.changeWatcher (cognitive 17): Controller.changeWatcher has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2, match/switch 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":"pkg/tuned/controller.go"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"47022a24260f1153580f236da65eb4873c5e94e415b918cea39f622a59e0a011"}},{"ruleId":"D2","level":"warning","message":{"text":"util.SplitKernelArgumentsWithout (cognitive 17): util.SplitKernelArgumentsWithout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), jumps 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/kernel.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"de13762a180061e2bd4ce38bf1f2ef684491f3388aec2ed0f331f70ca421ac90"}},{"ruleId":"D2","level":"warning","message":{"text":"PerformanceProfile.validateNet (cognitive 16): PerformanceProfile.validateNet has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, 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":"pkg/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b4281e2eb817af705c00340385fe0852fa7ffa4e9ad47195b86b00d08715bc"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.informerEventHandler (cognitive 16): Controller.informerEventHandler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). None of this is in the body itself: all 16 points belong to 3 function literals inside it that branch (lines 1234, 1205, 1219). 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/operator/controller.go"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75c524fc3ff504f83f1e6b5851f76f73d6e3ce03f444815d1a9a6ec35680b9a"}},{"ruleId":"D2","level":"warning","message":{"text":"profilecreator.GetNodesForPool (cognitive 16): profilecreator.GetNodesForPool has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 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":"pkg/performanceprofile/profilecreator/mcp.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e41abb4ee409c00ddbb483215f7879f13c4327ac91ebcac43d543305c787ef5"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.makeClusterInfoFromClusterData (cognitive 16): cmd.makeClusterInfoFromClusterData has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts) (nesting depth added 10). 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":"pkg/performanceprofile/profilecreator/cmd/info.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2243308456e19f172796ba355dfd9f62e0c39f168b249592f30b37802d3b332"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.listNodesForPool (cognitive 16): cmd.listNodesForPool has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/profilecreator/cmd/root.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"863c22ee2ccefa384f6b2c4011354875fb18883c61d1c3bab8cee8f3db16eb94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tuned/controller.go: FileTooLong \u2014 1023 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 523 over it, 2.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/tuned/controller.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9940c4f3d5bbdfefeda16e127914136690052ff38b8308797184dc4978671b72"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Controller: ClassTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods, 26 blocks, lines 66-1543. The bar is 400 significant lines; this is 408 over it, 2.02\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/operator/controller.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6d7d19a8162cfc0525d3f06953dffce2d65d00dd8dc6069186f623cce65750"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operator/controller.go: FileTooLong \u2014 921 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: Controller (26 blocks, 66-1543). The bar is 500 significant lines; this is 421 over it, 1.84\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/operator/controller.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"786efc1724d537574b93ba2c309be41af0254a7363bcbaa443d7044739dfc2eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: machineconfig.getIgnitionConfig: FunctionTooLong \u2014 getIgnitionConfig 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/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"100b0469ed819887eb616635e3be7c04daf966be3546b7b1106ef495d5a0663d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.sync: MethodTooLong \u2014 sync 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/operator/controller.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afd5a7b0721d51209d1b9d06d7e3dbfad4f3f00bca95e9617791e5ebac65538"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tuned.NewNodePerformance: FunctionTooLong \u2014 NewNodePerformance 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/performanceprofile/controller/performanceprofile/components/tuned/tuned.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5ec0b90f2f1884db60b4048cde42a6036fc3bc047e84aa4e27884bc05d16db"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Controller: ClassTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods, 24 blocks, lines 202-1621. The bar is 400 significant lines; this is 111 over it, 1.28\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/tuned/controller.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"6968580dd8e2dd7ee738bcd52cc27d854163f85b77e3a813117ff1495e0b69ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.computeStatus: MethodTooLong \u2014 computeStatus runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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/operator/status.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b587f99706e50be9a670d08e6ec33f5e034138d4758f7fc8f8d6cacb5696e938"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Controller: TooManyMethods \u2014 38 methods, declared across 4 files: operator/controller.go (25), operator/hypershift.go (6), operator/status.go (6), operator/validator.go (1). The bar is 30 methods; this is 8 over it, 1.27\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/operator/controller.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85b65274eef7274b1e4f866cc26475d029a1d0cfdc6e4998580417ce0076c52"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: render.render: FunctionTooLong \u2014 render 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/tuned/cmd/render/render.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54df18ee9e2bdda9f955b990b26eb512cef2877383a3bc343bdf7578559f51a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.syncProfile: MethodTooLong \u2014 syncProfile 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/operator/controller.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3255062ad01c16aab06e96e4fddfd3488f3b87f5a78d440c1ce7aa426d15c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: machineconfig/machineconfig.go: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"000a1cec67e886bc06b8135aed87a63f9eedc80943f7f43ef2642a55451e8f9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 51 shared lines): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:13-116 | pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:119-221 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:13-182 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:185-344 \u2014 These 4 members are variants of one another: a block of 51 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a471fc828154d92973df4155730708752e30ee8fd402dfc0574d1d906662d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): pkg/operator/controller.go:1203-1258 | pkg/tuned/controller.go:1465-1523 \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/operator/controller.go"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c34fbd98e4abc390033798d243ba05f38065fdf0514f39bcac7728138d0f9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (236 corresponding lines): pkg/apis/performanceprofile/v1/performanceprofile_types.go:27-262 | pkg/apis/performanceprofile/v2/performanceprofile_types.go:27-294 \u2014 These two members are one piece of code written twice and then edited apart: 236 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/apis/performanceprofile/v1/performanceprofile_types.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd47eaa0c472716bfa1dcaa28d1ecdbcc4872806afe7e8ea0f72b4b6f5d1ed8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): pkg/operator/mc.go:149-215 | pkg/performanceprofile/profilecreator/mcp.go:118-182 \u2014 These two members are one piece of code written twice and then edited apart: 65 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/operator/mc.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e6be52eb6252ea6c484a0528db54a9eb94e03959e206b19a83daa9a2287cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): pkg/operator/controller.go:1261-1289 | pkg/operator/controller.go:1292-1321 \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":"pkg/operator/controller.go"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"681c74f251b2355d384c677278be7206a336428382f7d4c284133cf88df26315"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): pkg/apis/performanceprofile/v2/performanceprofile_validation.go:271-313 | pkg/apis/performanceprofile/v2/performanceprofile_validation.go:319-361 \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/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9d1f77090b096daae54a264f24aedabbeae3dd2c1f6e051335e9db62083dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): pkg/operator/controller.go:180-213 | pkg/tuned/controller.go:302-335 \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/operator/controller.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"186e46b1339a55a64820a918d5c4ee6abdcd577202000537965873533d2d3853"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): pkg/operator/controller.go:1053-1088 | pkg/operator/controller.go:1091-1128 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/controller.go"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04cd7a73a135e02815e22b3ca52ecdcf48b388f1bcbbacdbba90fcfdaf0cdc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): pkg/performanceprofile/profilecreator/mustgather.go:108-133 | pkg/performanceprofile/profilecreator/mustgather.go:136-163 \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/performanceprofile/profilecreator/mustgather.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6ceede15f881c97e9606276c95683e73a920b4418624b755f6a270bf14e978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/performanceprofile/profilecreator/ghwhandler.go:94-117 | pkg/performanceprofile/profilecreator/ghwhandler.go:129-143 \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/performanceprofile/profilecreator/ghwhandler.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b402c509fd39ffc0fe542a6e67ec4030d171cdf6b5873a3d6d9c5541026f5a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): pkg/performanceprofile/controller/performanceprofile/resources/resources.go:66-89 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:227-250 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:317-342 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/resources/resources.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"69289148ac0994c2b82804d8df9af03261bb36feeabc4160e43b2171200cadf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): pkg/clusteroperator/status.go:11-36 | pkg/tuned/status.go:12-37 \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/clusteroperator/status.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"20be10d8ccd83faad820dce478846d958c04b66533da3dbdc44c893f22b654b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): pkg/performanceprofile/profilecreator/mustgather.go:86-105 | pkg/performanceprofile/profilecreator/mustgather.go:166-188 | pkg/performanceprofile/profilecreator/profilecreator.go:654-670 \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":"pkg/performanceprofile/profilecreator/mustgather.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea3c211e5726f5d769f66612d1c6a05e0a5109ed697ee0719b958c46d4f908f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): pkg/performanceprofile/cmd/render/cmd.go:41-62 | pkg/tuned/cmd/operand/cmd.go:37-57 | pkg/tuned/cmd/render/cmd.go:36-56 \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":"pkg/performanceprofile/cmd/render/cmd.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"081bb3e2b7ac516a659592024367a321d493dcd79cbcd38da5ed3ce23f8955b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): pkg/performanceprofile/controller/performanceprofile/resources/resources.go:103-119 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:182-198 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:252-272 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:344-360 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/resources/resources.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d179ffd9965900459a88823903c54f38e22be9c6a1cc569574eac65422c584ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:559-580 | pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:637-656 \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/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b82fa1974b5b9032d9b20657e5362567261d246e7f05832675a8fd6e8c3a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): pkg/performanceprofile/controller/performanceprofile_controller.go:170-192 | pkg/performanceprofile/controller/performanceprofile_controller.go:311-333 \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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3662b6fe43c94c0703b07ad92a0658b34318415b6f7365d99a015b632f6c6261"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): pkg/performanceprofile/controller/performanceprofile/hypershift/hypershift.go:232-240 | pkg/performanceprofile/controller/performanceprofile/hypershift/hypershift.go:242-250 \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/performanceprofile/controller/performanceprofile/hypershift/hypershift.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23ddf6eacd633623986ac5ea1efc4eb7346be748e247223e0cb119d66846963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): pkg/operator/mc.go:47-69 | pkg/operator/mc.go:73-97 \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/operator/mc.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30547d86a41a3d32d00330864cf7559e3f4a4b121079937046c4e9e8ef91388"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/operator/profilecalculator.go:789-805 | pkg/tuned/controller.go:586-599 \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/operator/profilecalculator.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"761afdd5e0acf428c8208c842f7b1fe2129af51abac1884cdc733afda08c4636"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): pkg/performanceprofile/cmd/render/render.go:68-78 | pkg/tuned/cmd/render/render.go:51-61 \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/performanceprofile/cmd/render/render.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e594148769898cb7ad7229b294670981fafa6c5c2b57e8c09784929f04dcc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): pkg/operator/mc.go:248-257 | pkg/performanceprofile/profilecreator/mcp.go:103-112 \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/operator/mc.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3e88e0a634594eb34bb9c347c7153b107d4bc4e7a85a8e059434f6a95f5c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pkg/util/strings_map.go:16-28 | pkg/util/strings_slice.go:35-47 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/util/strings_map.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d92ef8ca70378ae5725cce070928a9caa0e428252396578b071528c2f257433"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): pkg/operator/controller.go:767-774 | pkg/operator/profilecalculator.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":"pkg/operator/controller.go"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d55e22cdfb3f628e5ca177ca1c76991cecc30c84814a5575715f4c30f5b9cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): cmd/gather-sysinfo/gather-sysinfo.go:131-137 | pkg/performanceprofile/profilecreator/cmd/root.go:250-256 \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":"cmd/gather-sysinfo/gather-sysinfo.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f141efbf58ee81c3ac04ff175dec23f72af39ea66d10017be5da44c6cf938499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (160\u2013167 lines \u00D7 2): pkg/apis/performanceprofile/v1/performanceprofile_types.go:103-262 | pkg/apis/performanceprofile/v2/performanceprofile_types.go:128-294 \u2014 \u0060pkg/apis/performanceprofile/v1/performanceprofile_types.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_types.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 267 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/apis/performanceprofile/v1/performanceprofile_types.go:103\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/apis/performanceprofile/v1/performanceprofile_types.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"06276bc5c9e814314479e775da4e81cbba013237cdf0f14c4b852155a9161b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61\u201365 lines \u00D7 2): pkg/apis/performanceprofile/v1/performanceprofile_types.go:30-94 | pkg/apis/performanceprofile/v2/performanceprofile_types.go:59-119 \u2014 \u0060pkg/apis/performanceprofile/v1/performanceprofile_types.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_types.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 267 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/apis/performanceprofile/v1/performanceprofile_types.go:30\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/apis/performanceprofile/v1/performanceprofile_types.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b7f8d4b53e46b19d38a4a186968bfefc7e5dc132cbac534990b3de05ce8827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): pkg/operator/profilecalculator.go:278-319 | pkg/operator/profilecalculator.go:421-462 \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/operator/profilecalculator.go:278\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/profilecalculator.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea7ec23dd85bc2fef0630bdcc1e8cbf812d71a9faa1b3036f47e491bfd864e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:51-79 | pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:156-184 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:70-98 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:230-258 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b639166dca20f0f8945c2268f57ae516c2685e9da4a14ea7115da90a8f416e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): pkg/operator/mc.go:164-189 | pkg/performanceprofile/profilecreator/mcp.go:134-159 \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/operator/mc.go:164\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/operator/mc.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d86a2ff51ab09fb30f06950451b4405022bb660ad81b2bb7e1d68441e804ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): pkg/clusteroperator/status.go:41-65 | pkg/tuned/status.go:42-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. 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/clusteroperator/status.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbfac35f8c11a9f848ebe0f33f9ce0f8b3c92af9f3dca902f3e5ef62ce8de70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): pkg/clusteroperator/status.go:16-36 | pkg/tuned/status.go:17-37 \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/clusteroperator/status.go:16\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/clusteroperator/status.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac439b88284131cef03f3ffe7bacc4e26b3e52928b9c0e47cea8a0a3ecd8567a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:14-33 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:14-33 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:14\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab830bd1b4e56a104d96819e42aa8117dee5507ae95ceb64026e1548902fe8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:120-139 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:186-205 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:120\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a388a17404c149c7597eb7cb78933e559a7a0b75c5cfe8b67e5003b9a331a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:138-157 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:298-316 \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/apis/performanceprofile/v2/performanceprofile_conversion.go:138\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:316\u0060 calls \u0060To\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:157\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/apis/performanceprofile/v2/performanceprofile_conversion.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c5e08c6e89852b4edce7ad0fbc3521a5d9c9b31a2bf84b99db733c36a0d269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:101-116 | pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:206-221 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:167-182 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:329-344 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:101\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"44245ed60a958c8f5382b7bd4c9911a1857e04a0f0210be9a9906285c18128f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/operator/controller.go:1233-1248 | pkg/tuned/controller.go:1503-1518 \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/operator/controller.go:1233\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/operator/controller.go"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae68f5d750115fa7d429ede45694b8d8340ca6e029ef6cc73b3b2a729b6c7962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): pkg/performanceprofile/cmd/render/cmd.go:48-62 | pkg/tuned/cmd/operand/cmd.go:43-57 | pkg/tuned/cmd/render/cmd.go:42-56 \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/performanceprofile/cmd/render/cmd.go:48\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/performanceprofile/cmd/render/cmd.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c06883073492a867ce61ef09963258fa12870dd1e467b416aca8401b112167e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile/hypershift/components/handler.go:76-90 | pkg/performanceprofile/controller/performanceprofile/hypershift/status/writer.go:32-46 \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/performanceprofile/controller/performanceprofile/hypershift/components/handler.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da41ecfa8c3a8f4013f0be143f1e3808d0e2804f5be47b00dd3a8e51f0de05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:705-716 | pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:741-752 \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/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:705\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/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c5fee156696472f44523d1efa101849cd9128500f0a54ca2621da0327e7f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:842-853 | pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:859-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 \u0060pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go:842\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/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.go"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5deaa4c808ae7ce31cbf23201865e2cc34f8368f9d3d76fc439e34fc72c6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile/resources/resources.go:68-79 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:146-157 \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/performanceprofile/controller/performanceprofile/resources/resources.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"326e5541373de84432aaf5a08db144da3239258036ba8d2688cbe3edbd5b0e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile_controller.go:132-143 | pkg/performanceprofile/controller/performanceprofile_controller.go:263-274 \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/performanceprofile/controller/performanceprofile_controller.go:132\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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96bfd801201ded6cb72da44cc2791865b61b323b29be8a7630b1a9872fa1631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): pkg/performanceprofile/profilecreator/mustgather.go:94-105 | pkg/performanceprofile/profilecreator/mustgather.go:178-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/performanceprofile/profilecreator/mustgather.go:94\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/performanceprofile/profilecreator/mustgather.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50344a02248b5171b143d7804d0c6fea5c12737357d5bea2651003f09581f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): pkg/performanceprofile/controller/performanceprofile/resources/resources.go:68-78 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:146-156 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:319-329 \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/performanceprofile/controller/performanceprofile/resources/resources.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b52112d50450d8e41c0e32f910ffb159edacdb693e663366bd9dd5ced7996f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:82-92 | pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:187-197 \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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b6cea3dd47c5c17d9c545a4f568855ab469f92d1428c937feae8aac831b1fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:88-98 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:112-122 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:88\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"894f0e863ec65cd052b269f2a4236ca285bbbeebc7cd95779206174ef2300050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:193-203 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:272-282 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:193\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a993e601f2c2d10865ca937084ff4d0143239dbc8e837b108f19f1594fb3da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:36-52 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:55-71 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:36\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1604167ee163f853770c7456a72789ac0b256c5c1b7775d0ce590e3d74a14acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:142-157 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:216-231 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:142\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65414114ab30c291375ca2137b1af191264762d65227d661bf3e630229e814f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:108-116 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:268-276 \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/apis/performanceprofile/v2/performanceprofile_conversion.go:108\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/apis/performanceprofile/v2/performanceprofile_conversion.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"73713d5891d6752614da6e919df047f4af04652918a364029df5ccc9a3c60015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:29-36 | pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:135-142 \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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"312409d937fa8f646e1126ca76cc3a7c9ab3d4fbac70f3c384c9bbd96aeb7765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile_controller.go:86-93 | pkg/performanceprofile/controller/performanceprofile_controller.go:246-252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/performanceprofile/controller/performanceprofile_controller.go:86\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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f802c27b32df3a70a8b96383dec94e9f924eaee8a4429acf553cedc7477694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): pkg/performanceprofile/profilecreator/ghwhandler.go:105-111 | pkg/performanceprofile/profilecreator/ghwhandler.go:134-139 \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/performanceprofile/profilecreator/ghwhandler.go:105\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/performanceprofile/profilecreator/ghwhandler.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d52a8d5170dfb1af2489512cce4280636f597f8bbba5c32ef9d361a4230a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:87-92 | pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:192-197 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:111-116 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:271-276 \u2014 \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go\u0060 and \u0060pkg/apis/performanceprofile/v2/performanceprofile_conversion.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 9 separate duplicated blocks between them, totalling at least 146 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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go:87\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/apis/performanceprofile/v1alpha1/performanceprofile_conversion.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bbada1ec3722339586959fdde8b36b8c30ecb989bf8c95dc1062c8805cad48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:29-34 | pkg/apis/performanceprofile/v2/performanceprofile_conversion.go:201-206 \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/apis/performanceprofile/v2/performanceprofile_conversion.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v2/performanceprofile_conversion.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dacd5bbf50a8177178152cb108b678b16875b2a74432929a33a1aedd87620d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile/hypershift/hypershift.go:233-238 | pkg/performanceprofile/controller/performanceprofile/hypershift/hypershift.go:243-248 \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/performanceprofile/controller/performanceprofile/hypershift/hypershift.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e7bcfc71ffbb38a9ab83b295b4b73517eaa92d7a496fee7bb251a2a0b91f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile_controller.go:620-625 | pkg/performanceprofile/controller/performanceprofile_controller.go:629-634 \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/performanceprofile/controller/performanceprofile_controller.go:620\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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"5733c4218f2891efc93d842b9734a1b4e82f699a4d22a7097a2d3ba440280938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile_controller.go:666-671 | pkg/performanceprofile/controller/performanceprofile_controller.go:675-680 \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/performanceprofile/controller/performanceprofile_controller.go:666\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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0300366b7d71a767cc181203e2431880317062927ceeb243aea4193fb06f317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile_controller.go:197-202 | pkg/performanceprofile/controller/performanceprofile_controller.go:220-225 \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/performanceprofile/controller/performanceprofile_controller.go:197\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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"921702fa1c881b629976c968ed770608b490348b0a595e28922fe9b7d481d0a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/operator/hypershift.go:232-238 | pkg/performanceprofile/controller/performanceprofile/hypershift/components/handler.go:305-311 \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/operator/hypershift.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7907fa872e7532e94d19ed553f49e1e331b026f90762cfeb654797c7b04c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): pkg/performanceprofile/cmd/render/cmd.go:103-107 | pkg/tuned/cmd/operand/cmd.go:64-68 | pkg/tuned/cmd/render/cmd.go:86-90 \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/performanceprofile/cmd/render/cmd.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2d4755cc83d6d5cf8cd87fc87c64c304b9d30f0088b5b6396482c9a8d1f00d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): pkg/apis/performanceprofile/v1/performanceprofile_types.go:228-262 | pkg/apis/performanceprofile/v1alpha1/performanceprofile_types.go:127-161 | pkg/apis/performanceprofile/v2/performanceprofile_types.go:260-294 \u2014 \u0060pkg/apis/performanceprofile/v1/performanceprofile_types.go\u0060 and \u0060pkg/apis/performanceprofile/v1alpha1/performanceprofile_types.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 35 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/apis/performanceprofile/v1/performanceprofile_types.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"66712458918ff92cce874268f7fdd79d5d71417aa9a7e3b048ebc407f2f7c186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/apis/performanceprofile/v2/performanceprofile_validation.go:286-299 | pkg/apis/performanceprofile/v2/performanceprofile_validation.go:334-347 \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/apis/performanceprofile/v2/performanceprofile_validation.go:286\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/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6474b92a0bda91774de47b3ccbec67706ff4359cb376ddfceb836d0562bbda70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/apis/performanceprofile/v2/performanceprofile_validation.go:301-313 | pkg/apis/performanceprofile/v2/performanceprofile_validation.go:349-361 \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/apis/performanceprofile/v2/performanceprofile_validation.go:301\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/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f917b81582d5768540f0ce461806943fcd9aa84c821dd0cf9c21e64cd67921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile/components/handler/handler.go:44-56 | pkg/performanceprofile/controller/performanceprofile/hypershift/components/handler.go:94-106 \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/performanceprofile/controller/performanceprofile/components/handler/handler.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 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/performanceprofile/controller/performanceprofile/components/handler/handler.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ee5597ab3e3eb36407ee3bc2889ed02ef7603d8a044d3811d8fd441fbda305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): pkg/performanceprofile/controller/performanceprofile/resources/resources.go:107-119 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:186-198 | pkg/performanceprofile/controller/performanceprofile/resources/resources.go:348-360 \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/performanceprofile/controller/performanceprofile/resources/resources.go:107\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/performanceprofile/controller/performanceprofile/resources/resources.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"585f2890e79c848aef51748324cad2be002b93c158074816965cf8cdc97cff7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/operator/controller.go:1206-1215 | pkg/operator/controller.go:1220-1230 \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/operator/controller.go"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04a80d984234afa6598d854b9a9a207c74149896bafdea100084040911647e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/operator/controller.go:864-872 | pkg/operator/controller.go:1016-1026 \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/operator/controller.go:864\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/operator/controller.go"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"e789468dd7321e58c45dd12a8e549c62df527b1d67c0273a4230e293e2fdc803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/performanceprofile/controller/performanceprofile_controller.go:411-418 | pkg/performanceprofile/controller/performanceprofile_controller.go:450-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/performanceprofile/controller/performanceprofile_controller.go:411\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/performanceprofile/controller/performanceprofile_controller.go:410\u0060 calls \u0060GetNamespace\u0060 and \u0060pkg/performanceprofile/controller/performanceprofile_controller.go:448\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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a73ead857bdd87a3060249622ce2601f56bbacf5d9b0f0c4f0b2489d7735c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): pkg/operator/controller.go:1211-1216 | pkg/operator/controller.go:1225-1231 | pkg/operator/controller.go:1249-1254 \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/operator/controller.go"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f5588c091de6bf2b978a2eaacd80fee6552127ff3e559b5339f204f2c5eff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/operator/controller.go:1450-1455 | pkg/operator/controller.go:1462-1467 \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/operator/controller.go:1450\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/operator/controller.go"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c1d3d844311d774310ce3f1664777428546b684450559041a198b76e76e23e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PerformanceProfileReconciler (LCOM4 4): PerformanceProfileReconciler\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/performanceprofile/controller/performanceprofile_controller.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fda065513152721aa2ebeccf7f5dc9a3c0f7bd6c9bc6b95fb0958eee15f8b1"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 Go suite: Coverage NOT MEASURED: the Go half could not be measured \u2014 the Go suite ran but its cover profiles carried none of the module\u0027s own source. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/coreos/go-systemd: Direct dependency \u0060github.com/coreos/go-systemd\u0060 is required at \u0060v0.0.0-20191104093116-d3cd4ed1dbcf\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2019-11-04, 7 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/coreos/go-systemd\u0060 and has not moved this requirement in 7 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/coreos/go-systemd\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":"f7af82ffbcc99a03dc94a2d11aeef9012e868a1bf7f75b4663a4dd4cbe53f139"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 7 significant file(s) lose their only recent owner: pkg/tuned/controller.go, pkg/operator/controller.go, pkg/operator/status.go, pkg/performanceprofile/controller/performanceprofile/resources/resources.go, pkg/apis/tuned/v1/tuned_types.go, pkg/sync/bootcmdline.go, pkg/operator/validator.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3880331b3358c30d46567db1179e2f475a1c866fc039b1bd6240467be84c8b66"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 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 (9 single-owned of 51 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; 51 of the 100 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \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/performanceprofile/controller/performanceprofile/components/kubeletconfig/kubeletconfig.go, pkg/apis/performanceprofile/v2/performanceprofile_conversion.go."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle init containers vs application 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":"test/e2e/performanceprofile/functests/utils/resources/resources.go"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16129eb754c05930e80e0c4a774d7429325c6365f1ef5be2f3965ea0f05e341"}},{"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":"test/e2e/performanceprofile/functests/utils/cgroup/v2/v2.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d97fa2569538691d2d50fdf53e56254d2a89adca44d3ef95b3cd623e4b47ad"}},{"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":"test/e2e/performanceprofile/functests/utils/cgroup/v1/v1.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1023ab20b1e32eb241b972c246014a4c79aeb415f69a0015568db8c939bcd16a"}},{"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":"test/e2e/performanceprofile/functests/utils/cgroup/v1/v1.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbb827e7f9f01c960f3b9e9e4db858c344365351b8f911c33d9859730588a6b"}},{"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":"test/e2e/performanceprofile/functests/13_llc/llc.go"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dd7de41c34bc26b10c4943c961af51fc01383fb13ee4616df16580780cd951"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently this package only calculates CPU-based load. To support other \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/performanceprofile/functests/utils/baseload/baseload.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5143734613a7d67cd632846d60b72ee13c87cdacbf6311ec23e6b63a1c368807"}},{"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":"test/e2e/performanceprofile/functests/9_reboot/devices.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d065101362363e0009c0bd1a880a392f498feb3d2474fee3a1e4d448eb776afa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO get commonly used variables from one shared file that defines constants \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/performanceprofile/functests/5_latency_testing/5_latency_testing_suite_test.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b62a60aa177e2c61c7245ee5baaf069f1024c560d8284cba5f756578971a8c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO get commonly used variables from one shared file that defines constants \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/e2e/performanceprofile/functests/5_latency_testing/latency_testing.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b2f4c2af658d7e10f8210af9b3a9b22e4cc28567bbfd26201bfccbfd239c4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - This test case is highly specific to MCP. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/performanceprofile/functests/2_performance_update/updating_profile.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a416956a97e6fe5d347e0fb2259f663ba20b54260beb0f49ef04821cec3b22a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: adjust the test to consider having shared CPUs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/performanceprofile/functests/1_performance/cpu_management.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"78acf2b9adeeb24198d3c434db87f1652ad285813cfb65eae9dfa882587c0afc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO log what? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/performanceprofile/functests/13_llc/llc.go"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb0b6d3fed4b95099b269a348e7e0a178949976aeca48ffc82729757b2b30fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO log what? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/performanceprofile/functests/13_llc/llc.go"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"71abccd250a797018571e3db692e170902d412bd0acb0a4bf6d73079ff712772"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be really safe we should add SMT level cpus \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/performanceprofile/functests/13_llc/llc.go"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"29baa50577792fa469ee810643b64e11f3836ac4149381d7a4ca0b66504b4bef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we assume all L3 Groups are equal in size. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/performanceprofile/functests/13_llc/llc.go"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e38686344142a3668cf71949a4bbe8840bfbfa1c1da03cdb5be23af59246376"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Get the name from MCP if not specified in the command line arguments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/profilecreator/cmd/root.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab3767dbb856063a7ee48ccf9aff61cbd257777869d4644f990e7b91d05997c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we should merge all create, get and delete methods \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/resources/resources.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1be6c45c33e5230364d21a3aeecf93c9f14a0005a6e882bb7d34516b89025c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: change it back to longer name once https://bugzilla.redhat.com/show_bug.cgi?id=1787907 fixed"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/components/consts.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceab12444aa5e935ee0fec3adcc7cfaf43b6d9ccc8c5043b0a5021167a6c5270"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove once HyperShift has switched to using new key. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/hypershift.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5a4c2cc206aea42e40a9f5b525d9a8841eccc302f5e779f46f458c11e40deb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO extend this to unknown resources with a client pool \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/generated/informers/externalversions/generic.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb9295f7144a1bcad13ebf734588ec0fe3ddbe687a9cc2835b39f4e7aa0a139"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(user): fill in your validation logic upon object deletion. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/apis/performanceprofile/v2/performanceprofile_validation.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3356f0b0ba85110b71718d453a96773af8db2910532a93f3126a13046ff8ddf"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060cmd/performance-profile-creator/main.go\u0060 makes this repository a deployable product (line 17)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/performance-profile-creator/main.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0252dede1f955fe273fd0d1e19e892f3a541396963422dbc0c625a3d5cfc1c"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc01a0712fb380320ec998e550884f478d1246d81d861f2eaf4d6337fdbf000f"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"f4462b4bb8681aa40657cfd4d4231916ddaeb8c9a12afb9a0c21ddc490def049"},"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":"dcbd36e80e716a65b8c54e63190793376e573491b818f78cb6d7442ad5a96457"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"073e97f4a1d014979f8778930f1c75ffca418ae6cbf001fade5fd00b2fe825bd"},"taxa":[{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e479bd3900d8a1c58ecd0a9151ca3f53bb20244fba546738039048eb8dd821f4"},"taxa":[{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b3556dfcc1bb19ae0391e3e371fcfbd35967ff0726ecf6fe4ea3372f54f6bb56"},"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":"0e0c0616226874491a247bf1ff76e8a2e71780b3875e82dbee7aaadcdcaa1264"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"40fea6086429033289767a59626505711d825b35d962da17b71342fc2e55b878"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"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":"d2cd4437b7be35d57a4cdd45425982677203e5498a05982ba428a10fd3ba9aee"},"properties":{"dependency":{"package":"stdlib","version":"1.26.0","advisory":"GO-2026-4599","aliases":["BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27137","BIT-golang-2026-27138","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33810","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-46600","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-4600","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4866","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5942","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"medium","fixedVersion":"1.26.1","relation":"direct","declaredRange":"1.26.0","reachability":{"kind":"production","file":"pkg/metrics/server.go","line":103,"symbol":"http.Error"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96d5e545eafd81c73e2397a6ad5af1844d69be8bcccaf1e10160f24bbddd2cf7"}},{"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":"965d866b08ac07cbb0a689961021ae0503bef7ebaf3c13dc101554c7d51f9050"}},{"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":"4fb10ffb86ee799394f64bad8439c16770513e78e9cef084cf0f527e5fc57f14"}},{"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":"40df6698a9928a6b62bd93dc8cfba5298a9421bfebf200b99b82ae8618e37cf7"}},{"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":"52fe3f8ccb35e02cd038bdc6fefb525fc211d9dba7ed245c3cf419c4e5e5ee95"}},{"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":"74de02df3b93d032b10cfb3d4ac3ab14f181ba224d0094447210ff04ab493ef2"}},{"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":"c57bf38703a8e2743241a9d7c89ddc026a2d50eae18ee047c8127263e9f85a5e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"adead348cc86da931b90dea9c0960731783e06ecd31e047d49b915630fd651e1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa6efc56688286c6bf1ee25c38a5bf9107031cc87cb2f61a052c997930f5dfdd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"54505eeb6406781aa8bb7f4ac9f810e2ae4f9886f9109bc6563ed85e0a98297e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7583206de5c0f46abfa199919994d7442dab2e3e8a6cee8788d92343c1f88b3d"}},{"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":"e043d043c40c9de052f6d04451ac224cfab3c3776f9daf82c81592c2e4b5bd75"}},{"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":"6c046e86e2a55c67e18eab787d465ace2f25e595bd9cf4de79bdb5392a1b3456"}},{"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":"9babb190c57e1cf84078c539255742dea9bff86a5254e660a5ea504916ad0c26"}},{"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":"65dc9e73417e282c8408637efb16ba8286acfe2dcd790842c98a51adff898de2"}},{"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":"6227931498f62399ef0a025c6b797811ebaeb13ced27ea19174cbe6c62647221"}},{"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":"9c6b85e511aaef31f43cbc511b7f865efc6fb960bf5c04884ab047f1410f03dc"}},{"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":"61d97ccf1eabc7611ce39593be356e3e17d482d8616ba86aad140d61d7452f2f"}},{"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":"f4f2a3b33249a6f84c28a3412be424cec1aedcd27d657d01874898985d4200b2"}},{"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":"92e7fc151aaa794db3b9355274cd0eb9d8737371523289a7cefea0d2aea74471"}},{"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":"add15ac83601afc7119ced73c8097236f65446f1bdbcee8a632b5209edd599b7"}},{"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":"f67bcaf0795bbd85ac5ecdc31fcdce9be7551b54512efd4330a9c9acb5944af0"}},{"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":"a6f3e2f4410371d79e965069e112322877c053a80fab5f1b7016f67e65b7ef63"}},{"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":"dad4448ec51de294da2d1f20ba2404c51b93963bc7b36dfc5db50f2fe8323e7b"}},{"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":"cfa971d13213ba940cca7cd506484e8bff328f5c94a4622e2b48c378535f4b4a"}},{"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":"39dfefb72e4d71f74f70a19b3db1149d022d78038c0d751e725de5cf33989b10"}},{"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":"433a9e95d287ff3688db14fdd5a3288c52432c67bfdb96ded5a13a208d38e2ea"}},{"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":"c0a02b3512bc38247656a27d38876803f4d10f17fce5b007adb15ca193342f06"}},{"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":"3821cc0ceb573ed4124a82502708be6bc304e9daae2e58c7f713d5f35bdc675c"}},{"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":"41a5e73fa1e3451ad9796ac9963445efc4365c5bbdcc67e10ee18c534019108e"}},{"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":"3b2f39e21f69ffa5f541b9fa57f3a31f4e38a98e1ecd9108963fcdae34e8abbf"}},{"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":"250857ee538ee3393701b5a55c750a1d25c15ca2ee33a60d5cfca80e19ab21ff"}},{"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":"30e1f08d334d064920daa60f69f271560f125eb5dccfbb29206de8f58bae6696"}},{"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":"7e48d208e8a16f218c1b112997f3f7b85d92bff9a4bf475cc07fc37f7f69f2fe"}},{"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":"b539ca54dd6e75f2b03be39ab388fae35623061dab62a5d01338ed5374f5a8da"}},{"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":"d4694a88d0bf9ff3994d76ab4cec98925c28e6de966926dc0bbea5db9750541c"}},{"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":"526fe6bb2ced1e976e3c44cef4e365658682d040f4f4b9ee6ca2b2b2ab3b45e3"}},{"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":"eb3543eae1f71b32f1e81de5e8a2fd1d017b921de3e5f11c6bc74c1ca93ebdbb"}},{"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":"4ff063f0431ad606968d26eada47508cce09c1727d7d4e8ee960d7d0d2f3cab2"}},{"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":"4fa356fdb30d0d9404e50211a4f2bd2472f81e4832dca7d8f5069ad0bbf2bfe1"}},{"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":"01454a47e65ebfa630bbe72dd826bda43e7b148af98740514f7776e5cc1b55b2"}},{"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":"efa725f60365748a9d818ad80064a0906ab10f0dac8c1890bcfde80dc2808813"}},{"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":"6e9349e451d789437f6f966a9eef76895a3b3c406187bb2d73adf5e2d0b86d59"}},{"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":"3ea854af4d609fca8e6df28a091f5b1fd1ecf4411c6d01f312f0e2da0eaf86bf"}},{"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":"b9b099287de4ee2c86882158b2180d624477fa1b01af23965abc4d8bf0e385e5"}},{"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":"1a8be84e90b10b4bf4ed26a65c4a0ad09ed85134646472d5c67d595cbb28ae70"}},{"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":"4e040f8c2da9645ced542b7cdadd695faff920e36d67ea0a75b7badff148791d"}},{"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":"a73839cae110417ca2c878e24ad7ce885c4f05736e8298c67c8f919ef8a5cebe"}},{"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":"0f60ad67a84fc1de1f397fa756a22c63194691687af2c0a1627d5b1efafcd24d"}},{"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":"135a65ace45656c53a0353a12d6880d6ad2fa7035757f43490afcf33bba60a46"}},{"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":"2d1a450edb094e84884ea6c367047e639680b3320779b56dd5a825dc3dc2dc80"}},{"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":"236be6c6bce73bcc8ec5273969c8eb7037072115bba871aff512aa26f79ae80f"}},{"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":"d419464a57b28892953df7a5e9ab08ceae4ce10174f2b93d03febbdcc9745132"}},{"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":"ac98df4421a62bf7996b13f520056941e035fb51ec5525287c74afdd390669ae"}},{"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":"2f3226bf4179ac2bd11ce46ec6e331ade9def7e39fc77b26bfd8c79257ccb94d"}},{"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":"a74d1cbb802e45fe0ffe37344316602b0224b3f87d8bacebc8df1ee80ac651d3"}},{"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":"677f2e5b23cae13d9f4dc4421fb2a298b67a9ce47bdb28f77dea024741c1be12"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/tuned/manifests/ds-tuned.yaml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a56bf2726bf23020eeebe37a7f6661f419347568b0769b21b58f83762a10d7"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"manifests/50-operator-ibm-cloud-managed.yaml"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0cc6792b43923b4920b172701e03b5566462efcd48290df7b3ea6487ad0368"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"manifests/50-operator.yaml"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceceb69cd1146482b77cb31f25eaa68e1daed209f4b1cab40fa5b2e3371ba339"}},{"ruleId":"D42","level":"note","message":{"text":"No runtime threat detection: No runtime threat-detection engine (Tetragon TracingPolicy / Falco) is committed. These observe process, file and network activity in-kernel and can alert or kill on malicious behaviour a static scan cannot catch."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"aade9827a37dfc7ee064f80a997f47b5d11e31bc09704e26b9252bef00aa0c58"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch gitsubmodule: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060gitsubmodule\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"189dbbebbc083d2f437329c82dc1cae8adbf1b7293a5bc9e2de708f747e84eda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060condition.Status == c.Status \u0026\u0026 condition.Reason == c.Reason \u0026\u0026 condition.Message == c.Message\u0060 appears character-identically in 2 files \u2014 pkg/clusteroperator/status.go, pkg/tuned/status.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/clusteroperator/status.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a13aaf9775658cd37ad84cd0ac2f8c7b68b55df83760fb02add788bf3922a2b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060conditionA.Type == conditionB.Type \u0026\u0026 conditionA.Status == conditionB.Status \u0026\u0026 conditionA.Reason == conditionB.Reason \u0026\u0026 conditionA.Message\u2026\u0060 appears character-identically in 2 files \u2014 pkg/clusteroperator/status.go, pkg/tuned/status.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/clusteroperator/status.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3399a8817de5560eb42e84fa4cfc0d1ddae1af287578f6dc26e64af0448687e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !k8serrors.IsNotFound(err)\u0060 appears character-identically in 2 files \u2014 pkg/performanceprofile/controller/performanceprofile/hypershift/components/handler.go, pkg/performanceprofile/controller/performanceprofile/hypershift/status/status.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/performanceprofile/controller/performanceprofile/hypershift/components/handler.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e16dcc2b3a6be20c5e1b84096295fdf6e42f55e64287ba61c05fbe114d8e423"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mcMutated != nil || kcMutated != nil || performanceTunedNeedsUpdate || runtimeClassMutated != nil\u0060 appears character-identically in 2 files \u2014 pkg/performanceprofile/controller/performanceprofile/components/handler/handler.go, pkg/performanceprofile/controller/performanceprofile/hypershift/components/handler.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/performanceprofile/controller/performanceprofile/components/handler/handler.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a720ac959737644410bdcc5ffa3b8f5871d1941917f6b8dd411560b08de63e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.Spec.CPU != nil \u0026\u0026 profile.Spec.CPU.Reserved != nil\u0060 appears character-identically in 2 files \u2014 pkg/performanceprofile/controller/performanceprofile/components/kubeletconfig/kubeletconfig.go, pkg/performanceprofile/controller/performanceprofile/components/machineconfig/machineconfig.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/performanceprofile/controller/performanceprofile/components/kubeletconfig/kubeletconfig.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f632dfc718552df1117c76a209f759d94dce37527b595a7e7e94dc1834ff0a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selector.Empty() || !selector.Matches(labels.Set(node.Labels))\u0060 appears character-identically in 2 files \u2014 pkg/operator/mc.go, pkg/performanceprofile/profilecreator/mcp.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/operator/mc.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25aab0c0f122f20ba900dfb2dd2382dbae96bd92fa7736c5b51c5ccc44743b5"}},{"ruleId":"X26","level":"warning","message":{"text":"Collection crosses a callback boundary unsynchronised: \u0060execCmd\u0060 hands values from a goroutine to the body waiting on it through \u0060out\u0060, a variable \u2014 the goroutine writes it with \u0060out \u002B= \u2026\u0060 on line 267, and the body touches it at line 301. Those two spans provably run concurrently: this body waits on \u0060chReader\u0060, which nothing but the goroutine raises, so the goroutine cannot be the flow that is waiting for it. The touch comes after the goroutine is started and BEFORE the body waits on \u0060chReader\u0060, so the Go memory model orders nothing between it and the goroutine\u0027s write. A goroutine\u0027s closure captures \u0060out\u0060 by reference, so every goroutine and the body use ONE variable, and a plain variable has no synchronisation of its own: by the Go memory model a write concurrent with any other access to it is a data race (the race detector reports it), a racing \u0060\u002B\u002B\u0060 loses updates, and a racing read sees a stale or torn value. \u0060chReader\u0060 is a channel, which orders the handoff\u0027s signal and takes no exclusion over the variable\u0027s own state. Hand the values over the channel itself instead of beside it, or guard every access to \u0060out\u0060 on both sides with one \u0060sync.Mutex\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/tuned/tuned_parser.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"72777aa98443deeb6b5526ffcd02ac4a4d51b75f62382e10d930f638fd2a20be"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports the zero value of a failed type assertion): \u0060object, ok := o.(metav1.Object)\u0060 failed on this branch, so \u0060object\u0060 is the zero value of \u0060metav1.Object\u0060 here, and that is what is reported: the value that did not fit is lost. Report \u0060o\u0060 itself (and \u0060%T\u0060 of it) instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/tuned/controller.go"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"932c72758334627d8b4d6b29233203807ec825f6ee9c59e99690465cd326f6a9"}},{"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/performanceprofile/controller/performanceprofile/status/writer.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52225814dc04503b199d2fca3fa55a7a453379f08d7dee0cc29d55f92e35ef2"}},{"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/performanceprofile/controller/performanceprofile/resources/resources.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"057ee21da8080cb2423b582811351ac92311d928759151345113be72cbb36681"}},{"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/performanceprofile/controller/performanceprofile/components/utils.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc6ea9a62a5b667926287ff2db8cdc8076e0f56660894a4793bf7c2c91b8bd3"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports the zero value of a failed type assertion): \u0060object, ok := o.(metav1.Object)\u0060 failed on this branch, so \u0060object\u0060 is the zero value of \u0060metav1.Object\u0060 here, and that is what is reported: the value that did not fit is lost. Report \u0060o\u0060 itself (and \u0060%T\u0060 of it) instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/operator/controller.go"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ac51e1fcfdb870cfc53a77b9b5d5ea7aa2211ed89ed76fffec366ca1a166f4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060CPUListToMaskList\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022, nil\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":"pkg/performanceprofile/controller/performanceprofile/components/utils.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f57d8fb8524409749393080a0bce6e44e30e6025d079837013733834e3af3b2"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-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-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-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-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-703","guid":"fa730aa9-95e4-845e-83fa-8169f2cf339e","name":"Improper Check or Handling of Exceptional Conditions","shortDescription":{"text":"Improper Check or Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/703.html"},{"id":"CWE-704","guid":"50bd74b4-a921-5159-8671-99fd7e78c810","name":"CWE-704","shortDescription":{"text":"CWE-704"},"helpUri":"https://cwe.mitre.org/data/definitions/704.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":68,"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."]}]}