{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"dialog.ShowPluginInputs (cyclomatic 31): dialog.ShowPluginInputs has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 14 of the 31 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 128, 78, 104, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/dialog/plugin_inputs.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c908fdda3e7907ac011a75932ad747adc45ba14f8047ad58e3c4716d25968b53"}},{"ruleId":"D1","level":"warning","message":{"text":"render.hydrate (cyclomatic 30): render.hydrate has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/cust_cols.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"21637f6c22fc14ad4ce2b6892b4b2cd982d5568ca7fb73fb8410a8a4bcd480ae"}},{"ruleId":"D1","level":"warning","message":{"text":"dao.tailLogs (cyclomatic 23): dao.tailLogs has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 366). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/pod.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5472763a5a593ba2300c07baf15de930477e72788168a5875a2a5d0cdafa14"}},{"ruleId":"D1","level":"warning","message":{"text":"render.PodStatus (cyclomatic 23): render.PodStatus has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/pod.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd15c355a4204b3a8db0c9b8d809b192d960768e9f7ade74ee56c80f2f6d083c"}},{"ruleId":"D1","level":"warning","message":{"text":"Pulse.nextFocusCmd (cyclomatic 21): Pulse.nextFocusCmd has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 434). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/pulse.go"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fab051eb8bb75bacb1152bc1dd600d86e88d1500c28b7f227c25244818e7ea"}},{"ruleId":"D1","level":"warning","message":{"text":"dao.hasSecret (cyclomatic 18): dao.hasSecret has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/dp.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"077603236070982ff9fd9f8075ab59d12c37975ea8f88bf7ce2e8d9a0c64e2f4"}},{"ruleId":"D1","level":"warning","message":{"text":"Table.defaultRow (cyclomatic 18): Table.defaultRow has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/table.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d385b31bf79d73608e794c0279a53bda7a2af35150139ec0533c3fb9b3c2af"}},{"ruleId":"D1","level":"warning","message":{"text":"view.customJump (cyclomatic 18): view.customJump 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":"internal/view/custom_jump.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0631ace7e29f2d6e7bab55edb088ebd926400d0d9bbac3c8fe3c1b9dbb6f4bf"}},{"ruleId":"D1","level":"warning","message":{"text":"Command.run (cyclomatic 18): Command.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/command.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"950a6dd17160c83beddd4abbff5f12c82fdd2e97f8a3c6b0194f24ee5ff674e5"}},{"ruleId":"D1","level":"warning","message":{"text":"Command.specialCmd (cyclomatic 18): Command.specialCmd has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/command.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d239e0a9fbc76ccaa49ba1663c81e968d26f494e9582827c87e4df7fb71b95"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.Refine (cyclomatic 16): Config.Refine has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"dccc7c5b524780b99162b93cd61b0d37fefc3830112e2fb243157a9802a9b279"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.newArgs (cyclomatic 16): cmd.newArgs has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/cmd/args.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"088119b8aec5f2897a6b60d14e054ec493a7593969ec5aa3ba13c6e6295761dc"}},{"ruleId":"D2","level":"warning","message":{"text":"render.hydrate (cognitive 76): render.hydrate has cognitive complexity 76 (threshold 15). Drivers by points: if/else 48, match/switch 19, loops 6, boolean chains 3 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/cust_cols.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aac7c325c64a58e90b13b699f40d15f0a3ad95f468db0295764d6ac87f9c07f"}},{"ruleId":"D2","level":"warning","message":{"text":"dialog.ShowPluginInputs (cognitive 49): dialog.ShowPluginInputs has cognitive complexity 49 (threshold 15). Drivers by points: if/else 39, boolean chains 4, loops 4, match/switch 2 (nesting depth added 25). Of this number, 23 points are the body\u0027s own statements and 26 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/dialog/plugin_inputs.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ccdc1df53d64028ff49ed2161ebca3b07202a4d0e6ed0e425eaadeea0c6705"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.tailLogs (cognitive 41): dao.tailLogs has cognitive complexity 41 (threshold 15). Drivers by points: if/else 26, match/switch 11, boolean chains 3, loops 1 (nesting depth added 24). Most of this is not in the body itself: 1 of the 41 points is its own statement and the rest belongs to one function literal inside it that branches (line 366). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/pod.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb971bcc96c3343907233bf2e8fd95362e4c5a99df6d68f8de634624ff9ecf1"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.newArgs (cognitive 32): cmd.newArgs has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26, match/switch 5, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/cmd/args.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10fd96e9fd02c4943f050deb0ec723934134b96691d06742c9aea0aa5b3b1fe"}},{"ruleId":"D2","level":"warning","message":{"text":"render.PodStatus (cognitive 31): render.PodStatus has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, boolean chains 7, loops 3, match/switch 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/pod.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"18594a73d11129deb729c07630a1910be5aea7680d046a8f1fe772e3f7151bee"}},{"ruleId":"D2","level":"warning","message":{"text":"Pulse.nextFocusCmd (cognitive 31): Pulse.nextFocusCmd has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, match/switch 5, boolean chains 2 (nesting depth added 14). Most of this is not in the body itself: 0 of the 31 points are its own statements and the rest belongs to one function literal inside it that branches (line 434). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/pulse.go"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d369618684103c05e216a4632783604833d09168026b38bc93484c793e5a0e53"}},{"ruleId":"D2","level":"warning","message":{"text":"view.pipe (cognitive 30): view.pipe has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, loops 6, boolean chains 1 (nesting depth added 15). Of this number, 17 points are the body\u0027s own statements and 13 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":"internal/view/exec.go"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"8334d73ab6074d7497c894b43dc263e4576f49a7382a75c767c1e08344f772e7"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.hasSecret (cognitive 29): dao.hasSecret has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, loops 7, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/dp.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e47044ff48a30dbe88c73e83e8b6a4630d8e0f718d0f5f687f9c75689cfdb9f"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomView.getVS (cognitive 28): CustomView.getVS has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, boolean chains 2, match/switch 2, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/views.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a06e208e4e5bcd2324a9b356d1ede88d12636a0a5ee2b4094e7fa8b8bb44540"}},{"ruleId":"D2","level":"warning","message":{"text":"StatefulSet.Scan (cognitive 28): StatefulSet.Scan has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, loops 4, match/switch 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/sts.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"82248088aead6dfdf9f422c3c554be566edb8b97406b9feeecc299927286b7b3"}},{"ruleId":"D2","level":"warning","message":{"text":"Configurator.ConfigWatcher (cognitive 28): Configurator.ConfigWatcher has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, match/switch 2, boolean chains 1, loops 1 (nesting depth added 16). Most of this is not in the body itself: 3 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 197). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/config.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c45d7d5eb122336db2ad390bbd7e80c2b25d31144b36d17d190f7d2aa2791f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Command.run (cognitive 28): Command.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 27, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/command.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"312fb86903f5b47320025d2118e833aad6248819b6dee1d72f940c376c075f26"}},{"ruleId":"D2","level":"warning","message":{"text":"view.customJump (cognitive 25): view.customJump has cognitive complexity 25 (threshold 15). Drivers by points: if/else 24, boolean chains 1 (nesting depth added 7). 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":"internal/view/custom_jump.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae73da0d270e48e5570131e400f9c110ad0ebbb16600d7a492a3a01aa3d6c16"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.Refine (cognitive 24): Config.Refine has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"481e719ebdc44a10913c55b194e38bc5f872a64a1bf7f4cb7d934c3a0f61095f"}},{"ruleId":"D2","level":"warning","message":{"text":"config.closestLForChroma (cognitive 23): config.closestLForChroma has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, loops 8 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/color.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed182f46fa985dfe33b7771254933b2935b506dc3b09beed29927d9083c31373"}},{"ruleId":"D2","level":"warning","message":{"text":"Pod.Scan (cognitive 23): Pod.Scan has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, match/switch 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/pod.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"b249fca19a90211d571639396a3cb5afc01590e069c00af1e874818e4737c1ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Recorder.dispatchSeries (cognitive 23): Recorder.dispatchSeries has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, match/switch 4, boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/recorder.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c38cf8a59712d50825cf95c51e84cb11d46c2ae2eeb8bec59024b1e4a32ff3c"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.buildRow (cognitive 23): Table.buildRow has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/table.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d23e523176e47b44543054baf84afc6f34d8c3218d77eab6770fc0411afc7b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugins.load (cognitive 22): Plugins.load has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 4, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/plugin.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba76c88d0735d101555fa3f467cd63be5c1171c47f1a15185058535d62fa3238"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.loadPreferred (cognitive 22): dao.loadPreferred has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 3, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/registry.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d55a95009b8173ecbc55e9cc3c95367393d2edb38504485bf8b45deb1228376"}},{"ruleId":"D2","level":"warning","message":{"text":"ScaleExtender.makeScaleForm (cognitive 22): ScaleExtender.makeScaleForm has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 1 (nesting depth added 8). Of this number, 16 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":"internal/view/scale_extender.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"841b7c6cf30d5dc9e81c81924ae0c9e94022581cc95bae8125007b205037dc41"}},{"ruleId":"D2","level":"warning","message":{"text":"Deployment.Scan (cognitive 21): Deployment.Scan has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, match/switch 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/dp.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d9d9df27159eb767594d36fe9476a02d93203290deeac14d280f1a0abdc378"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonSet.Scan (cognitive 21): DaemonSet.Scan has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, match/switch 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/ds.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"9637a038659d27a4beaf122ea6c3841a89d14556924596ffc5b2f84cc0ce778a"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.readLogs (cognitive 20): dao.readLogs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, match/switch 3, boolean chains 2, loops 1 (nesting depth added 10). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/pod.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04e1f319ba9a9deb8b8d1aa3e0fb105ba44e4a98c275334ad8b85a64f32e75d"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.defaultRow (cognitive 20): Table.defaultRow has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 3, loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/table.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d5bce93ec5035485f6031e5a003fc3197f614195b0a109885e24d8efb81187"}},{"ruleId":"D2","level":"warning","message":{"text":"view.execute (cognitive 20): view.execute has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, loops 5, boolean chains 3, match/switch 1 (nesting depth added 7). Of this number, 18 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/exec.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe5c4ce61e2255ec888c74ea1124b01d75b1c0830efb6c0a5b519f9b9761598"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.status (cognitive 19): dao.status has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/workload.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f0e557293d192f08c03ebebbacf2f1b136ba3c3eda7e4ecbcd7fc0a3b41fec"}},{"ruleId":"D2","level":"warning","message":{"text":"render.initContainerStatus (cognitive 19): render.initContainerStatus has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 2, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/pod.go"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bc02efb41f65a4c2ba94ffb5f3e7b546dc7dbcf4baac3468ee5c3240f511f0"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.decodeIntoTable (cognitive 18): dao.decodeIntoTable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/dynamic.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"60678c673550d767ceab88222e25a0dae52a9cead8655da72e879a48acdb2fb8"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.parseRules (cognitive 18): dao.parseRules has cognitive complexity 18 (threshold 15). Drivers by points: loops 12, if/else 6 (nesting depth added 11). 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":"internal/dao/rbac.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99663e16f272daf92771c6225ddffffbbf1a97e58fe4681697c61353b651881"}},{"ruleId":"D2","level":"warning","message":{"text":"Alias.load (cognitive 18): Alias.load has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/alias.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49b40823105b3ef1b7d23f256796b193ddef22b36d46d39061d025d14bc58be"}},{"ruleId":"D2","level":"warning","message":{"text":"CronJob.Scan (cognitive 18): CronJob.Scan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/cronjob.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b69699cb395c85e40392bab838b9b9ec26697bacf648d9d2404ba2626f24ee"}},{"ruleId":"D2","level":"warning","message":{"text":"Job.Scan (cognitive 18): Job.Scan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/job.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a35141f1598b2d7c4661fe5a30c033bff11128c5833ec332a83d9a19778f17"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.styleTitle (cognitive 18): Table.styleTitle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/table.go"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"3148136a02f7c3a5cdfd2b0f7aa0a2cd30383abfbf4878502c7e8c9749506b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.Validate (cognitive 17): Plugin.Validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 2, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/plugin.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fb542d34f8175f2890a4939c78cb0b1e54ea97f9955aac992ff41d61519827"}},{"ruleId":"D2","level":"warning","message":{"text":"Workload.List (cognitive 17): Workload.List has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/workload.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"95dae079100546e0920b2aeb5952dc20d8dfc9cbf5ffdfe904918382a0e36432"}},{"ruleId":"D2","level":"warning","message":{"text":"view.pluginActions (cognitive 17): view.pluginActions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 1 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/actions.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a9c51336d6e587db5afdf070b64792af214503644e250b0538ce02e589d322"}},{"ruleId":"D2","level":"warning","message":{"text":"view.decorateCpuMemHeaderRows (cognitive 17): view.decorateCpuMemHeaderRows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1 (nesting depth added 8). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 242). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/helpers.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"835a914aa75f6e26f62365a7284676cb5d0fcb1a5ff88970ee04f68969ce1dbe"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.getContainerStatus (cognitive 16): dao.getContainerStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 6, match/switch 1 (nesting depth added 9). 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":"internal/dao/container.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6556e2d2d8f024ed77799d1a11b0542c6c37693fae3591c843717d928767b3"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.loadCRDs (cognitive 16): dao.loadCRDs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/registry.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2693405ae6af28ca422d8a3cf30bc65f5654df731db017cafd1a9767d7a02671"}},{"ruleId":"D2","level":"warning","message":{"text":"Configurator.CustomViewsWatcher (cognitive 16): Configurator.CustomViewsWatcher has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, match/switch 2, boolean chains 1, loops 1 (nesting depth added 8). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 69). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/config.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4729910b3ba8193347c10d104c2c90afa2253c72bfdda3ddbe48ec9d5eb977"}},{"ruleId":"D2","level":"warning","message":{"text":"Configurator.CustomJumpsWatcher (cognitive 16): Configurator.CustomJumpsWatcher has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, match/switch 2, boolean chains 1, loops 1 (nesting depth added 8). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 115). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/config.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2857c365201a3423079e5aaf8ad5cd55131fc3601539bc391e75b25d87935439"}},{"ruleId":"D2","level":"warning","message":{"text":"Browser.refreshActions (cognitive 16): Browser.refreshActions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/browser.go"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"2399a8c08e67e330c1518093e9820b406a185270f6c257c6c0c030e43565b693"}},{"ruleId":"D2","level":"warning","message":{"text":"Command.specialCmd (cognitive 16): Command.specialCmd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, match/switch 1 (nesting depth added 6). 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":"internal/view/command.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9d358a8352e3d9384b4436bc78ec934daac825837fa32e204eb5491d2d9b50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Table: TooManyMethods \u2014 53 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/table.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"739ca6067083b4a5bb00d74d64351e3f332a13e1271e8bd6744df0db8e446b38"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Xray: TooManyMethods \u2014 51 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/xray.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d227ed3ce9f07bfbff312d2888dc03f9504a54737f559db7004f6eeefd39ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/app.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0813d6da16f7754302e3a122605f21ec3381ed9f4bdfa153aff3468ae17a2718"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Log: TooManyMethods \u2014 44 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/log.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8c635da523c6e92d9b9af6896e2fc1954f17aa615bafa920aba1af2771e4bf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Browser: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/browser.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e7bf2a423a035c698515767e5ad2177cfb4f0246a5178a6d0413d5e463e810"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: APIClient: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/client/client.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9f23a0a82146d35e7cba353f6bcdcf857969657c8ab518cec3a8b3a58b77a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Log: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/model/log.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f61cbebd9418c2dc9b942c2b91089087a0fed5b5858d7aa191935c01d3b3818"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveView: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/live_view.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4f9a8380b8cebab5c6ffb7d43c881ebeff6d175589d4d8a054021335a96284"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Pulse: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/pulse.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95b096215a9020094d967f6e73ce7c5f95f65dd228072948a2128db552e2f7b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/app.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c80ae638d8027d19623d84c266fc107a88314e7fa276a9d3badf866a8b4d09b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Interpreter: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/cmd/interpreter.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c437901d7e6977dc017294be8407b3dc39cfa29547f5b3ec5f47a47671749f0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TableData: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/model1/table_data.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9152ae48785b05e7a60d35be85373172d707119fdcd6314bef64fc9a72b14a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Details: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/details.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93885c607841a0f60eb42457db09050b32bdf8c741121efd099ce7eff9b9f1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/styles.go: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"internal/config/styles.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f413988c0714b321cdec03468f6c6585d78567f77a5c5311c932fdded74558"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view/app.go: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"internal/view/app.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d5046cf53477066a8f16ff47257823cfa904df541d3faf23fa582c3daceae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/dao/cluster.go:83-100 | internal/dao/cluster.go:130-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/cluster.go:83\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":"internal/dao/cluster.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afb1fdbe24bf39970c80a35e6fe50c079279c8f6334da793c2539dfb1385923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/dao/generic.go:113-129 | internal/dao/workload.go:47-63 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/generic.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"910a96c2dcb0d37df594cd826e4aa64c154ddff49584cce5b02620e9188a6d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/dao/pod.go:387-403 | internal/dao/pod.go:411-428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/pod.go:387\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/pod.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a13b285a4e8392c60da0a3f63f538c2bb9c6615f090eb1d3b5b3fe5ea3f2de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/dao/dp.go:156-169 | internal/dao/ds.go:193-206 | internal/dao/pod.go:320-333 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/dp.go:156\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/dp.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10bdb61e287e5028e9b2e665453ddbdb20b698f6167c70223b5343760c3c7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/dao/cronjob.go:202-215 | internal/dao/job.go:164-177 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/cronjob.go:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/cronjob.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b52eb12699431aed428824062a664a8b835902e6ae7a212a83eb4c28cce1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/ui/dialog/restart.go:46-59 | internal/ui/dialog/transfer.go:96-109 \u2014 before extracting anything, compare \u0060internal/ui/dialog/restart.go\u0060 and \u0060internal/ui/dialog/transfer.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/ui/dialog/restart.go:46\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":"internal/ui/dialog/restart.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d61c8dee4a0a3a5f5d74a9b7ac056576f2ab0cc69518851fea891c7a87ea6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): internal/dao/job.go:162-174 | internal/dao/pod.go:318-330 | internal/dao/sts.go:167-179 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/job.go:162\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":"internal/dao/job.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4b4dd39da468f6f38944e5147935b7b82afcf407f82f1d17172d90a4d6ae57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/client/metrics.go:178-190 | internal/client/metrics.go:260-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/client/metrics.go:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/client/metrics.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f90f72f85f5669cf77d762e796af4126e34e998992d29818dbaea84743ae6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/config/json/validator.go:149-161 | internal/config/json/validator.go:173-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/config/json/validator.go:149\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":"internal/config/json/validator.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea0f92db88850ef81cceb4bb4f60fa831f775ce3b96be3248c34bd4fb0f0acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/render/dp.go:86-98 | internal/render/sts.go:65-77 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/render/dp.go:86\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":"internal/render/dp.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aab1819940b3b0c8941d62c1d41144cada6d8639e76fcef3de1b143a322412a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/view/details.go:295-307 | internal/view/live_view.go:365-377 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/details.go:295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/details.go"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8444970a8caa15eb5e500b741bad64f87b88a15b1150e81a5d9ebad28752cbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): internal/xray/dp.go:50-61 | internal/xray/ds.go:46-57 | internal/xray/rs.go:47-59 | internal/xray/sts.go:47-59 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/xray/dp.go:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/xray/dp.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"64633f0e8ef57217aaf0926e0b5b11d31ca9f292f5ce4e36e7901ef38d9483f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): internal/config/styles.go:508-519 | internal/model/hint.go:24-35 | internal/model/stack.go:72-83 \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 \u0060internal/config/styles.go:508\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":"internal/config/styles.go"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6982b5aeb73e6f124c48d5a3e1d7a8a5b839641e5857780a6e3832c0e037e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/dao/pod.go:199-210 | internal/view/pod.go:534-545 \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 \u0060internal/dao/pod.go:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/pod.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cfef78b92edc2415e1681ed6cfdfd6fedf514ab58411b8e71eb4f64f5de443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/model/rev_values.go:148-159 | internal/model/values.go:176-187 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/model/rev_values.go:148\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":"internal/model/rev_values.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da0dbc1fdafa1525bd29f89e498963104da3accb353faa35436ed6ff87114cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/model1/pool.go:36-47 | internal/pool.go:38-49 \u2014 before extracting anything, compare \u0060internal/model1/pool.go\u0060 and \u0060internal/pool.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/model1/pool.go:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also 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":"internal/model1/pool.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"10742a347970d692c4bdde1867fcd6e5a05c29197a7c673d75f5eca8c5f6f597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/model1/pool.go:65-76 | internal/pool.go:67-78 \u2014 before extracting anything, compare \u0060internal/model1/pool.go\u0060 and \u0060internal/pool.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"internal/model1/pool.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e66ad7563dbcaab4911a37476ebe3197915685c612f5d82e6eda1b3a345246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/render/pod.go:337-348 | internal/render/pod.go:356-367 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/render/pod.go:337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/pod.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e56a75aaa9957c5a7d24f960f58e5426cb20b6559b1f88f4235527573304ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/ui/dialog/confirm.go:47-58 | internal/ui/dialog/delete.go:64-76 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/ui/dialog/confirm.go:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/dialog/confirm.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"43788d2b7d411db6ff9f9680197780d860db8224ecc6ab53508430a1248b66f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/view/xray.go:341-352 | internal/view/xray.go:365-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/xray.go:341\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":"internal/view/xray.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fddef3dbaf79ea0bfe227c90a68166b3763a502a3b4ca7d0cd582121df6c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/xray/tree_node.go:414-425 | internal/xray/tree_node.go:453-464 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/xray/tree_node.go:414\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/xray/tree_node.go"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe6a2a4afb7e28565ffce76f391ae64a2221b56164c918d9a62702895c93292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 20): internal/render/crb.go:37-48 | internal/render/crd.go:44-55 | internal/render/cronjob.go:47-58 | internal/render/dp.go:63-73 | internal/render/ds.go:44-54 | internal/render/generic.go:33-43 | internal/render/job.go:45-55 | internal/render/np.go:45-56 | internal/render/ns.go:60-71 | internal/render/pdb.go:45-56 | internal/render/pv.go:72-82 | internal/render/pvc.go:41-53 | internal/render/ro.go:36-46 | internal/render/rob.go:40-50 | internal/render/rs.go:50-60 | internal/render/sa.go:38-48 | internal/render/sc.go:41-51 | internal/render/secret.go:38-48 | internal/render/sts.go:43-53 | internal/render/svc.go:45-55 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/crb.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"235bb927ba99d6d1976ed60c227ad1bb54194d234f967a9b3f674b90094a9de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): internal/xray/dp.go:31-41 | internal/xray/ds.go:27-37 | internal/xray/rs.go:27-37 | internal/xray/sts.go:27-37 | internal/xray/svc.go:32-42 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/xray/dp.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f172a8ad9f4e4f49da37f86756abcdbbe812881985dd7eb9d6da6295c9438d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/dao/ds.go:177-187 | internal/dao/sts.go:153-163 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/ds.go:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/ds.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a30411a011f8180d906753a227d4ab466ca5e9829c1069cfdc8540f3f2fc92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/dao/rbac_subject.go:55-65 | internal/dao/rbac_subject.go:78-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/rbac_subject.go:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/rbac_subject.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"73feecef18ba2961b619f44be0fd088f6728fa530733608f37ac9719cad7464d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/dao/reference.go:55-65 | internal/dao/reference.go:80-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/reference.go:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/reference.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e53832fe772d5455b3f80c60409d0b386b342d3fcb34e8cd715ee3e755cf3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/model/describe.go:161-171 | internal/model/yaml.go:165-175 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/model/describe.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5dce86175feb1af572b888c089821665588faa19e2d574d271694da3fbd5e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/model/tree.go:137-147 | internal/model/tree.go:152-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/model/tree.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48b3ccad603a3db6b2a8afb6559a3941a322a386746c6d6063656d8d7c625a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/view/browser.go:319-329 | internal/view/browser.go:345-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/browser.go:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/browser.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccf4f70f50a1f8f7ebf275f981d377902fb8b22a8b429d63a026586080a85b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/view/browser.go:662-672 | internal/view/xray.go:127-137 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/browser.go:662\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":"internal/view/browser.go"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"5529b1857d8fae37bf096cbdc6e9f5ad84f906fe624a40f3acc76c7038df533b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/view/container.go:67-81 | internal/view/xray.go:222-232 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/container.go:67\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":"internal/view/container.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"118e200c5ae4b5e631ecba667109b63fc9b4e67d8c226f3bd2f6894291d934a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/view/table.go:266-276 | internal/view/table.go:293-303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/table.go:266\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":"internal/view/table.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd455fc58994387e471e6ffc22ea9157adabab7ad1c6ca0350ad246a88367275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): internal/dao/dp.go:143-152 | internal/dao/ds.go:180-189 | internal/dao/job.go:151-160 | internal/dao/sts.go:156-165 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/dp.go:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/dp.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"27006ba5ec6c6ee222e3e4b9a3dc1bb89139f549d4ec84f59b2e654860b67763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): internal/model/describe.go:119-128 | internal/model/rev_values.go:140-149 | internal/model/values.go:168-177 | internal/model/yaml.go:128-137 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/model/describe.go:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/model/describe.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a593718da5c0c6ab0a77da117aa01952160e66e8367f0c2f57f317a31e73e52f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): internal/view/dp.go:53-62 | internal/view/ds.go:53-62 | internal/view/job.go:56-65 | internal/view/sts.go:42-51 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/dp.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c2f2fab52714a1ef80d24d473c2c4db866da63f0796c04a504826af7c16cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/dao/helm_chart.go:92-101 | internal/dao/helm_chart.go:107-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/helm_chart.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dde102b5ddbf5e3ec0b0960780fba92878a01816a528725350e52d0804e68b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/dao/rbac.go:102-111 | internal/dao/rbac.go:130-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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/rbac.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"32868ffaeee69ef46c6bf5048146b7cabb8c3704e03afb58cb2cfb9b2c60790b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/ui/dialog/restart.go:28-37 | internal/ui/dialog/transfer.go:40-49 \u2014 before extracting anything, compare \u0060internal/ui/dialog/restart.go\u0060 and \u0060internal/ui/dialog/transfer.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/ui/dialog/restart.go:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/dialog/restart.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"361e977f116301abeb090dff83b54737e6131f23a96ad02a51dfe00bf4ecc9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/view/browser.go:487-496 | internal/view/workload.go:90-99 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/browser.go:487\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/browser.go"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"186df063aa3362c20426d2a922562c0e37ef5937204aa4f9d04d8ba75ef54d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/view/cm.go:49-58 | internal/view/sa.go:67-76 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/cm.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"302ee3677caa39c9b16426f0aadad828a421ab8f6afa4574b7b9aa43faea6bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/view/container.go:139-148 | internal/view/pf_extender.go:83-93 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/container.go:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/container.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b184c9245930134bc2fc0d211143432d8a7bc07f46e40e187643f4c7420b0933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/cronjob.go:105-113 | internal/dao/cronjob.go:178-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/cronjob.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":"internal/dao/cronjob.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b61b013a20d476dc91672466c8a4add83754eff13ab39eb86d865dbc4449103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/dp.go:106-114 | internal/dao/dp.go:132-140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/dp.go:106\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/dp.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f9c5dfb78a7589e80d8a9f7a16622c98bc44ddc947033fd2b2427ff44abac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/ds.go:143-151 | internal/dao/ds.go:169-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/ds.go:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/ds.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12a9de5dd27feb9874875a0db9d9ae80f06777e5b0ed602aacc0be65553ea4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/job.go:78-86 | internal/dao/job.go:97-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/job.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a356b198098b6ae2b9c9f8c72bbb0765a68d45a9bd31cdc021ae263d0083512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/job.go:114-122 | internal/dao/job.go:140-148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/job.go:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/job.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd0a91f2aa1ee7fdff95a942e19b8a353856153124c20c8b1b9d8effe44ddd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/pod.go:262-270 | internal/dao/pod.go:292-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/pod.go:262\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":"internal/dao/pod.go"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edd31ac6b650c7cc2ddc59f6fae34c5fe8fd0bba8f9a96e8cdb4d42ef9c26f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/rbac.go:66-75 | internal/dao/rbac.go:90-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/rbac.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"18929f74083ce65c5331dcb019de09a9a92ddb77574c38d1a2a063cc1330f7ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dao/sts.go:119-127 | internal/dao/sts.go:145-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/sts.go:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/sts.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d406c0cf44dba9269aa4c43d56db0dd8de8dca1098b702b1502dce9389e4e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/model/describe.go:176-184 | internal/model/yaml.go:200-209 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/model/describe.go:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/model/describe.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2821aa68fc504ffd414bf94a8b63d36602ac3a685bb311dd935df58c4d56ac5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/model1/pool.go:53-61 | internal/pool.go:55-63 \u2014 before extracting anything, compare \u0060internal/model1/pool.go\u0060 and \u0060internal/pool.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/model1/pool.go:53\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/model1/pool.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"431da8926f3b2dbfedb26d5c14ae02dcbda27f5b0a48697043014c7ab7652b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/render/ep.go:59-67 | internal/render/eps.go:61-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/render/ep.go:59\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":"internal/render/ep.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"066acbda58f586718b0f4b886c81a78480238ef4b12fb24eafb95344cb43cd6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/watch/factory.go:205-213 | internal/watch/factory.go:235-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/watch/factory.go:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/watch/factory.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3a84509b40d09c00865fdb27e1c1a217710c03551d71da7a63eff0f43f9f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): internal/dao/cronjob.go:176-183 | internal/dao/dp.go:130-137 | internal/dao/ds.go:167-174 | internal/dao/job.go:138-145 | internal/dao/pod.go:290-297 | internal/dao/sts.go:143-150 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/cronjob.go:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/cronjob.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d90f7ddf692f6d1fdb182d4657990bb60cdf49a2e9da640da071404b0bca493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): internal/dao/cronjob.go:192-199 | internal/dao/dp.go:146-153 | internal/dao/ds.go:183-190 | internal/dao/job.go:154-161 | internal/dao/sts.go:159-166 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/cronjob.go:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/cronjob.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09b67493953e8124b1ecf3d33a4e6c3afb60b990cc7a949e608ef9ae71f6270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/dao/sts.go:64-71 | internal/dao/sts.go:102-109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/sts.go:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/sts.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4ddf396beca80544665683c67e65989d320b3cfdadb753d91b363b6615fd6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/render/pod.go:97-104 | internal/render/workload.go:34-41 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/render/pod.go:97\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":"internal/render/pod.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"35631fd07469cf41e42cdf88963ff2335e845031be01ab0736c4ba58317f0752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/view/details.go:69-76 | internal/view/live_view.go:72-79 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/details.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb0bc12acbe12307b2b67fb68a0a92a1980882bf0ace2dbbfae9734f0641604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/view/node.go:110-117 | internal/view/node.go:157-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/node.go:110\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/node.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec1423db7e6c9999a6471b0bdf5215eebd34838645eb95403043c51189ecd9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/view/pf.go:135-142 | internal/view/svc.go:189-196 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/pf.go:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/pf.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7cfd00a4f793fcff300fdd3d8388f757d3046855396cc3a3d2ac4fd9ad3385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): internal/ui/dialog/confirm.go:71-77 | internal/view/context.go:98-104 | internal/view/drain_dialog.go:25-31 | internal/view/image_extender.go:115-121 | internal/view/scale_extender.go:158-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/dialog/confirm.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3388f7d64006adf6afdfb75aa298a019669579d03873221ae290fcd34a557ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/ui/dialog/prompt.go:18-24 | internal/ui/dialog/restart.go:23-29 | internal/ui/dialog/transfer.go:35-41 \u2014 before extracting anything, compare \u0060internal/ui/dialog/restart.go\u0060 and \u0060internal/ui/dialog/transfer.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/dialog/prompt.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce74ccc71a41da8eac10de0afea1f4a042c28f2ac8fc00489cfe4b5fc282540a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dao/cluster.go:72-78 | internal/dao/cluster.go:119-125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/cluster.go:72\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/cluster.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2999764ff55b86b7078f57f8c06df0012e01357960040bb0c2cdafb42009a745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/ui/dialog/confirm.go:19-25 | internal/view/pf_dialog.go:28-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ui/dialog/confirm.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8ecf368dc8e1b1e66cb6ea4c0c9f77234cba9b260a07ded217e237f435b96e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/ui/dialog/confirm.go:89-95 | internal/ui/dialog/plugin_inputs.go:162-170 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/ui/dialog/confirm.go:89\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":"internal/ui/dialog/confirm.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"adad5a7f515956be411363cec6feae02cf0a68aaa2c8d1301b672b79be24aec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/ui/indicator.go:54-60 | internal/ui/indicator.go:78-84 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/ui/indicator.go:54\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":"internal/ui/indicator.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08b30cc305d68b08bbfd95e828a8a8859a5c3ead574cb0a7bc53a3600a775ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/render/container.go:130-135 | internal/render/pod.go:190-195 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/container.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6165fe27e1aa9e1c7b1e88045675bd1f9a6c2f14831072ac64ee63928a4496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/render/pod.go:496-501 | internal/render/pod.go:585-590 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/render/pod.go:496\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/pod.go"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"070b4f661d342f28422eb8b4cf07920a7829b106b98adb0f435195f2d43fa7fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/tchart/gauge.go:106-111 | internal/tchart/sparkline.go:151-156 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/tchart/gauge.go:106\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tchart/gauge.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8617d54077477226ff89ccbb4681918b0f0f43200c45d5e4e87ebbd554c14fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/view/cronjob.go:99-104 | internal/view/cronjob.go:157-163 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/cronjob.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f47b6cf9cc5b13f5e4ca3dcc34c345afff4ec280a0dea1166ff1f5cf3354ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/view/details.go:146-151 | internal/view/live_view.go:155-160 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/details.go:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/details.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5fc567f9943cf692d7b1a129f8e0f0f103a43532585ce5b0236cda2733dffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/view/dir.go:223-229 | internal/view/dir.go:264-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/dir.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d0e5e037daaedb037f1b3fcc8b28b442e01d35414a0db20caf179924b62b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/dao/log_items.go:129-133 | internal/dao/log_items.go:153-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dao/log_items.go:129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dao/log_items.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"be732fb60439cd6c7234ac6daf921f00b3afaa3f86469118a1bd71451a960669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/view/browser.go:637-641 | internal/view/workload.go:115-119 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/browser.go:637\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/browser.go"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5f6bccf263c1825cb18c0ae8dfa71f332055e0934e4fe93b52c97eb3b494f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/view/exec.go:67-71 | internal/view/exec.go:266-270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/exec.go:67\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":"internal/view/exec.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d965be9d4184604a5e1864015b602c6ae32c3206a66531e77e6d1a1f0b27845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/view/exec.go:76-80 | internal/view/exec.go:272-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 \u0060internal/view/exec.go:76\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":"internal/view/exec.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"eceab0d0214a91b3e2304ccb3320bbc815cdf7e089210e3073ee2c81e95b5914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/view/pulse.go:505-509 | internal/view/pulse.go:521-525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/pulse.go:505\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/pulse.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"381c12e637b631098bd93f18ec55f0fcdd0c495e1559f16b63776d4054ba9329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/view/xray.go:203-207 | internal/view/xray.go:215-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/view/xray.go:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/xray.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"043d930c90d0e73dfc48a95f710eca130d67d572cf4139df4fe2a61c80113aad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/render/pod.go: internal/render/pod.go changed 2 times in last 90 days, max complexity 23. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/render/pod.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e2b23cce5c72f87f95257347297d595bb1f87310a5d0e34f2187f85ef4b840"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/view/custom_jump.go: internal/view/custom_jump.go changed 2 times in last 90 days, max complexity 18. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/view/custom_jump.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea1e6e5de9e8977e2829a2f20697bc0d3b5a208d127ddcde677a2279e30395f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: internal/config/alias.go, internal/dao/helpers.go, internal/model/pulse_health.go, internal/client/gvrs.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e4dea9739b7d147d155447c9ebbef653187bce02287f658d553640a019802223"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 4 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 171 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (2 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"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"}}]},{"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":"5e5d1e4ebb56e5ed1e3c4bb7540c60e1d1179f4963d73283d4ccab64e5e8ef57"},"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"}}]},{"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":"f5a9fba22ae658a13e13561f8baa20bf92af987a52e0ce77d9d6f5ed952784b0"},"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"}}]},{"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":"bd303ea3300774f8fc82013f0d8a404434e9f3259408e7d0964bd025b1b1177c"},"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"}}]},{"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":"45e5697d92d06f0b61bc94fcea61ee85dee9603c2a64e3a0f101be5ff3d31739"},"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"}}]},{"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":"b0f8475a3aa8a7324fdc07140c5d1e434985cc16671d66fc41400948c2158d5d"},"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"}}]},{"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":"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":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 3 of 171 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: internal/model/values.go, internal/ui/modal_list.go, internal/dao/patch.go. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: helpers.go \u2194 log.go: \u0060internal/config/helpers.go\u0060 and \u0060internal/view/log.go\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/helpers.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47bbc8e464450b4f5e77cb6f16549d672a2d3c12d4175612af4af05a2807714"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"ruleId":"D38","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":"5e3545524e8875b4c7eba7c1011fc73f5980286a976278c5029e01d01e301600"}},{"ruleId":"D38","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":"1ecf24511eab368b0bf40ab2d112b740f766d32f902e1b36ad91aabbcf383d87"}},{"ruleId":"D38","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":"a3410ef72745e05c890890038b27e184253758caa4dd9790652789b2447c8c40"}},{"ruleId":"D38","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":"cd561985491d2a0882c6e741822bf90822e99f688ee69aec53a60fe40e4208d5"}},{"ruleId":"D38","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":"a637b063f037b77449515a84b2820a6a7f61a0c11240707a07ca8e208675a4ad"}},{"ruleId":"D38","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":"c3101d36131a52584dde37b042bdfe9fc6a1d1edad6398c91ef166385743b007"}},{"ruleId":"D38","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":"c8e6740321a9758be2667eea6842293616ba35402441f8df0a0ca2a8f6a5fa68"}},{"ruleId":"D38","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":"94e02eea5764fec7c68881dfaf08794994cb5f5915475658189d0ffad65d6e22"}},{"ruleId":"D38","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":"231ad4dc838e4a2768e6f7a1e67ca410b16632a9e046ea516d551978147d4308"}},{"ruleId":"D38","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":"11d329f54ab2d88651b34fb1b1a7c067143ecde40009cd256562c3aa7c54ff96"}}],"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-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":22,"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."]}]}