{"$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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"cmd.prepareConfig (cyclomatic 60): cmd.prepareConfig has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/start.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"641d5c82406a97187eb96d987d1e1ec97760453e172765bfc80f6c340ed476af"}},{"ruleId":"D1","level":"warning","message":{"text":"lima.newConf (cyclomatic 55): lima.newConf has cyclomatic complexity 55 (threshold 15). Of this number, 54 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":"environment/vm/lima/yaml.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f1220c2495b5e6acc9eb08d3f30f192a8dfa63ad9eb4cc2d50ca955a59d40f"}},{"ruleId":"D1","level":"warning","message":{"text":"limaVM.startDaemon (cyclomatic 31): limaVM.startDaemon has cyclomatic complexity 31 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 15 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"environment/vm/lima/daemon.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57e6669aa41f448cbdf02578b94bb4644062033d55226c7a4fe3c324819c1ea"}},{"ruleId":"D1","level":"warning","message":{"text":"cmd.setFlagDefaults (cyclomatic 25): cmd.setFlagDefaults has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/start.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bc5f1303f364feb804364e5bca4894bcb7d1b03a5798a6328af268a60464e5"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPClient.Download (cyclomatic 21): HTTPClient.Download has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"util/downloader/http.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb31ab252f440c6b5380baef9281077298e0f581d5369eccb2abde083359101d"}},{"ruleId":"D1","level":"warning","message":{"text":"configmanager.ValidateConfig (cyclomatic 19): configmanager.ValidateConfig has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/configmanager/configmanager.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e035dee3152805765b8aed81f7655f6ba389e771739b4ee34387fb5e5129f4c"}},{"ruleId":"D1","level":"warning","message":{"text":"app.generateSSHConfig (cyclomatic 18): app.generateSSHConfig 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":"app/app.go"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5c9d425814b3f0e2146a477f7f3b2886746e23779f8a7b2dbaafae18cb2388"}},{"ruleId":"D1","level":"warning","message":{"text":"colimaApp.Delete (cyclomatic 17): colimaApp.Delete has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/app.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4933357ba46fa2c068d19f5dd5ebaf4c329dca3bc6424818da326e904d34bbdd"}},{"ruleId":"D1","level":"warning","message":{"text":"inotifyProcess.handleEvents (cyclomatic 17): inotifyProcess.handleEvents has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"daemon/process/inotify/events.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e82df4bab8dc6b42844c09b8e1496d45d84c33e5b87eb6a70aa31d61fa59a1"}},{"ruleId":"D2","level":"warning","message":{"text":"lima.newConf (cognitive 85): lima.newConf has cognitive complexity 85 (threshold 15). Drivers by points: if/else 68, boolean chains 10, loops 6, match/switch 1 (nesting depth added 29). Of this number, 81 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"environment/vm/lima/yaml.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd89b606099dae663e745c346fbd56852682e370d20bad97b85fadc3ad448226"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.prepareConfig (cognitive 81): cmd.prepareConfig has cognitive complexity 81 (threshold 15). Drivers by points: if/else 76, boolean chains 4, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/start.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce5aa4bfa0b1fd6bf29de751ebc67375c3aec504ce7e9f7a62c8ed6bcdde0a1"}},{"ruleId":"D2","level":"warning","message":{"text":"limaVM.startDaemon (cognitive 55): limaVM.startDaemon has cognitive complexity 55 (threshold 15). Drivers by points: if/else 45, boolean chains 5, loops 5 (nesting depth added 26). Of this number, 16 points are the body\u0027s own statements and 39 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":"environment/vm/lima/daemon.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c1181b03f268963f6217781bba3d3e4d7b6da17a182d03fa004b27b35ed7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"inotifyProcess.handleEvents (cognitive 35): inotifyProcess.handleEvents has cognitive complexity 35 (threshold 15). Drivers by points: if/else 31, loops 2, match/switch 2 (nesting depth added 20). Of this number, 28 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"daemon/process/inotify/events.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d300db12433b06ac891a73b2706dd6a7b59d8a3a7f077f3f92d52e7e4e37c9"}},{"ruleId":"D2","level":"warning","message":{"text":"cmd.setFlagDefaults (cognitive 32): cmd.setFlagDefaults has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, boolean chains 7 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/start.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4b3facbff878086859b5fabef6ad184ac95425aeeef8d784d2c7f394aac5eb"}},{"ruleId":"D2","level":"warning","message":{"text":"yamlutil.traverseNode (cognitive 31): yamlutil.traverseNode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 26, loops 4, match/switch 1 (nesting depth added 20). 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":"util/yamlutil/yaml.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fa159104aeba47bff75abe82aafc722918bc93e218f884095c8456d7ee183c"}},{"ruleId":"D2","level":"warning","message":{"text":"colimaApp.Status (cognitive 30): colimaApp.Status has cognitive complexity 30 (threshold 15). Drivers by points: if/else 30 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/app.go"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a885b6dd3b6c32285bac5c63ce412dc2f61955d13ab2d9962b2893b254759c"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPClient.Download (cognitive 30): HTTPClient.Download has cognitive complexity 30 (threshold 15). Drivers by points: if/else 28, boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"util/downloader/http.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3a5daff3f1cb35f0eec19ac519015f56de788dbe8bf2d084ff587176cb02df"}},{"ruleId":"D2","level":"warning","message":{"text":"app.generateSSHConfig (cognitive 27): app.generateSSHConfig has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/app.go"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"4389710c3caadf1cc59fa9008b157293d5b60387536c42d12b664de7be3c2e75"}},{"ruleId":"D2","level":"warning","message":{"text":"colimaApp.Delete (cognitive 26): colimaApp.Delete has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, boolean chains 2, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/app.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c9671a756848840b7db9e88f0ce2ad23d82d93dab3b3dfaeed690fcd82f030"}},{"ruleId":"D2","level":"warning","message":{"text":"inotifyProcess.monitorContainerVolumes (cognitive 26): inotifyProcess.monitorContainerVolumes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, loops 3, match/switch 3 (nesting depth added 13). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 23, 61). 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":"daemon/process/inotify/volumes.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa4e860eda27213bc8db647c399dfc99e972430538f0cc73c8f2ed1685f231a"}},{"ruleId":"D2","level":"warning","message":{"text":"configmanager.ValidateConfig (cognitive 22): configmanager.ValidateConfig has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/configmanager/configmanager.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c72f8f0b41982b0e09a0b9796717de8e534363a964fdad7ca4aa6de88d36a3a"}},{"ruleId":"D2","level":"warning","message":{"text":"limaVM.addPostStartActions (cognitive 20): limaVM.addPostStartActions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 311, 358, 300, \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":"environment/vm/lima/lima.go"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a6273cf11fcad945d6c02100fedcb550f33bfb6c5cb8eda96379a1d028e3af"}},{"ruleId":"D2","level":"warning","message":{"text":"yamlutil.encodeYAML (cognitive 20): yamlutil.encodeYAML has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, match/switch 3, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"util/yamlutil/yaml.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"037fefa9ae95800e3cd69f56c062cd73acc632a4cfc6929ba7cbbf8ab2f60c75"}},{"ruleId":"D2","level":"warning","message":{"text":"limautil.Instances (cognitive 18): limautil.Instances has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"environment/vm/lima/limautil/instance.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"620b1175d0795916b701916745a3986e810c65f312b38c3b3a78e88e60347528"}},{"ruleId":"D2","level":"warning","message":{"text":"defaultWatcher.Watch (cognitive 17): defaultWatcher.Watch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 2, match/switch 2 (nesting depth added 9). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 44). 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":"daemon/process/inotify/watch.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41ee895395b728cd2a4a833f655b7979c168d0720c3f6657c47133d276c34c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveCommandChain.Exec (cognitive 16): ActiveCommandChain.Exec has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/chain.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b55c1d78a4dca6ca43edeed2491a187a088b682f577618570a63052a175a4fb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: limaVM: TooManyMethods \u2014 40 methods, declared across 9 files: lima/lima.go (15), lima/disk.go (6), lima/shell.go (6), lima/network.go (4), \u002B5 more file(s). That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"environment/vm/lima/lima.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8df147709f902d04180c66d730779f2bbe2821d3d4158a9fb25799c85a2b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): environment/container/kubernetes/k3s.go:67-74 | environment/container/kubernetes/k3s.go:95-102 \u2014 both copies are in the same file, so extract the block 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 \u0060environment/container/kubernetes/k3s.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":"environment/container/kubernetes/k3s.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f5ba66ca3b11ca8729c59a7fc10694fe08023769d77a8f18b7c594c25f24cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): environment/vm/lima/disk.go:50-57 | environment/vm/lima/disk.go:72-79 \u2014 both copies are in the same file, so extract the block 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":"environment/vm/lima/disk.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c38efd477eb1c9ea7a9d37a57033ba653553bc2a5ed4a3508e6fa15da15c777"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): environment/host/host.go:52-58 | environment/host/host.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 \u0060environment/host/host.go:52\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":"environment/host/host.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c8c20ac757e0ae34fda017487c8ad81e0c193f445710a606798833667caaeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): environment/host/host.go:133-139 | environment/host/host.go:145-151 \u2014 both copies are in the same file, so extract the block 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 \u0060environment/host/host.go:133\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":"environment/host/host.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3def28b59c6ab7c9e83d556e43bc2ec3d77e0ad67a5ed0553a77d35ac10146a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/start.go: cmd/start.go changed 5 times in last 90 days, max complexity 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/start.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1572356033558f5c7d63ff7a2f3e17598b65293f7f908c2a39768e8693f9c744"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 13 significant file(s) lose their only recent owner: model/runner.go, cmd/model.go, cmd/nerdctl.go, model/ramalama.go, util/yamlutil/yaml.go, util/downloader/download.go, util/util.go, daemon/daemon.go (\u002B5 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"430dd54287e94101c5c223d2bcfeb6ad739e2b7108226a427b6c13a20ba03845"}},{"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":"18b19f247152b5c87af5bf97aaa161568436f75019f31efd50a5da36ae6eea4e"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49d6132a1efffc3fffffe7146b4508a56b6f346824160f3c76954430a4571f3d"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0175696015d36badec043ae4eb830eb338353171191d905a4070ab534ddc77ad"},"taxa":[{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"9e2cbabfd9ae104e78967f5996b385092b9587286f7b4f9788c431652b410b43"}},{"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":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"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"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-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-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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-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":8,"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."]}]}