{"$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":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","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"]}},{"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"]}},{"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":"windowsWebviewWindow.WndProc (cyclomatic 120): windowsWebviewWindow.WndProc has cyclomatic complexity 120 (threshold 15). Of this number, 119 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":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19f2e7aa56ce61192774bf44634b32db72eaf6b2d0730d56f7b1d3ca288667a"}},{"ruleId":"D1","level":"warning","message":{"text":"w32.MenuBarWndProc (cyclomatic 95): w32.MenuBarWndProc has cyclomatic complexity 95 (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":"v3/pkg/w32/menubar.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1e01db0003195917c248d50d1558f7609a05e9c2329397db1ed0a5877bbc0c"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageProcessor.processWindowMethod (cyclomatic 78): MessageProcessor.processWindowMethod has cyclomatic complexity 78 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/messageprocessor_window.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7891cf9b02f883be5277419b2152629d432d5ae553f6d75b7807453e5efabe8"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 63): main.main has cyclomatic complexity 63 (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":"v3/tasks/events/generate.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab23f65ec61efeeadcefc268d766999282edd95962b9055fee28f5ccda65ea9"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseBuilder.CompileProject (cyclomatic 50): BaseBuilder.CompileProject has cyclomatic complexity 50 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/commands/build/base.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d4c9d56de0dfb41054e61efb261c6b30b48979637392a2d21c6ea4d05adc7b"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeScriptify.convertType (cyclomatic 49): TypeScriptify.convertType has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/typescriptify/typescriptify.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cd43119f04868e2d307974eec12e1f235ae46f336cddc00eb1a6eec822a178"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.runTask (cyclomatic 48): Executor.runTask has cyclomatic complexity 48 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/exec/exec.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"591dcd8095ed0e0570f41446f146c2aacb022b1cd7e16dd0e10455fd3db87757"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsWebviewWindow.printStyle (cyclomatic 48): windowsWebviewWindow.printStyle has cyclomatic complexity 48 (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":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1544a822a67afab1f128cc7290e679b46bbc4cc8b3ed8cd42a2e8e5c8e8653"}},{"ruleId":"D1","level":"warning","message":{"text":"Dispatcher.processSystemCall (cyclomatic 44): Dispatcher.processSystemCall has cyclomatic complexity 44 (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":"v2/internal/frontend/dispatcher/systemcalls.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"485f4275f86fc1e9a32c2f3bc84161d49ac10edc68bafcf7e1ecf32978d2bbbd"}},{"ruleId":"D1","level":"warning","message":{"text":"dev.doWatcherLoop (cyclomatic 43): dev.doWatcherLoop has cyclomatic complexity 43 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/internal/dev/dev.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc01c1b2185b5dcf9038784850392afd77a7092687c0985ff870c89faf7653c"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 43): main.main has cyclomatic complexity 43 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 19 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":"v3/internal/commands/build_assets/ios/scripts/deps/install_deps.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"522b5b51fa260d8d1b97d64199cbd8878bc6a0970797a85714897513c503eca8"}},{"ruleId":"D1","level":"warning","message":{"text":"main.buildApplication (cyclomatic 42): main.buildApplication has cyclomatic complexity 42 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 20 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/build.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"935818ed16f83e700555c6d2a7c9652ac2b2cc6ef17b475ef269c357433256d9"}},{"ruleId":"D1","level":"warning","message":{"text":"main.diagnoseEnvironment (cyclomatic 42): main.diagnoseEnvironment has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/doctor.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef5b19f0917502297aacfede0de1607643ea16dbe78a78e56eeb0b4377bc5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"menu.ParseANSI (cyclomatic 41): menu.ParseANSI has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/menu/styledlabel.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dce586620d5e88359c955e83a54a67031c50e89095fc79667f98953e5510d46"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.RunTask (cyclomatic 39): commands.RunTask has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/task.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe888a2802d4d5292e0e0a6424c600daf63090ee7186c184090e1fbf76115fe"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsWebviewWindow.run (cyclomatic 39): windowsWebviewWindow.run has cyclomatic complexity 39 (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":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"4524dc7ca437e81e3e9747ab0bd31dc0807e3d0b8545e007f2b49548fdb0c8e7"}},{"ruleId":"D1","level":"warning","message":{"text":"generator.FindServices (cyclomatic 38): generator.FindServices has cyclomatic complexity 38 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 11 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/analyse.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94b3bcae18961c903c0a05f7ef84775f444478f59558aa611934ed349109854"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelInfo.Collect (cyclomatic 38): ModelInfo.Collect has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to one function literal inside it that branches (line 127). 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":"v3/internal/generator/collect/model.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"683c76e0ee6a99d70034c29fd850310660b82b5a4541a8fff1aac13d904b2e56"}},{"ruleId":"D1","level":"warning","message":{"text":"templates.Install (cyclomatic 37): templates.Install has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/templates/templates.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b55ec047cdf8cf7c2e2bbca080c5741298f5e3cee59371ba247a2238ef24abb"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 36): main.main has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 4 of the 36 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 293, 260, 354, \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":"v3/examples/systray-stress/main.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9514ae94300729d15716484dae9b6a89d9b4cc7c3158cadc3c1d78a8d969ad46"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsWebviewWindow.setupChromium (cyclomatic 36): windowsWebviewWindow.setupChromium has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe1756adc61515f8a9b3aebf883e323fa4b4bf5d2a07f8c6517a9bd37e03691"}},{"ruleId":"D1","level":"warning","message":{"text":"w32.ComInvoke (cyclomatic 36): w32.ComInvoke has cyclomatic complexity 36 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/w32/utils.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b26532452b279e81fa743eb45a8930d49a9b83a34d2d052ec8b4c59388b1464"}},{"ruleId":"D1","level":"warning","message":{"text":"Wizard.pullViaDockerAPI (cyclomatic 35): Wizard.pullViaDockerAPI has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"165be27606c78780d58043cfedf79200a7f7506605c71579966025f599559c63"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportMap.addTypeImpl (cyclomatic 34): ImportMap.addTypeImpl has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/imports.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a89b1c4958df0ecff25b4a54c622b831789aa86d95309bf1687d96e05b359e"}},{"ruleId":"D1","level":"warning","message":{"text":"Collector.findDeclaration (cyclomatic 33): Collector.findDeclaration has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/declaration.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4679c5510e54d74aaa486cd1ed9efad9a1e9a5b468a8f08a0a02e2d501028f"}},{"ruleId":"D1","level":"warning","message":{"text":"StructInfo.Collect (cyclomatic 33): StructInfo.Collect has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 2 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 106). 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":"v3/internal/generator/collect/struct.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c1b8e1fa904ecba32ef1a1611805d7efa698337d493b739a8b25841745e6e8"}},{"ruleId":"D1","level":"warning","message":{"text":"build.execBuildApplication (cyclomatic 32): build.execBuildApplication has cyclomatic complexity 32 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/commands/build/build.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"67874767b9bf5d1eaa558157d1b46081eefd7499cdcc0d57758d2c40acc3f464"}},{"ruleId":"D1","level":"warning","message":{"text":"collect.IsParametric (cyclomatic 32): collect.IsParametric has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/predicates.go"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"072c3333776a3bd4d92005820a00432b54f318dd9e778622acff0f2b00513799"}},{"ruleId":"D1","level":"warning","message":{"text":"module.JSCreateWithParams (cyclomatic 32): module.JSCreateWithParams has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/create.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4c6dfaed4f7f44051c005f2aa977f9f11dd9711d658876397a508b8787ef90"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.parseTask (cyclomatic 30): parse.parseTask has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/parse/parse.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8eb32b86e03d0c75fae28c26c2c865f2eb849333c6f03da1bbf1d3e168b4a8"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.UpdateBuildAssets (cyclomatic 29): commands.UpdateBuildAssets has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/build-assets.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e53ed59de2101678b74bb032ebcf7676bdafa39b6fe2da319f9affae5204ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.generateMacAsset (cyclomatic 29): commands.generateMacAsset has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/icons.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dc120d50c42e7273e102c9054c21fe4e56e87b3d865d739b105971730e3f8e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.initProject (cyclomatic 28): main.initProject has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/init.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"791bfe85b3e742b3fc58d3783469dad4dd7f7e951ebee65d9b00bc287a4de1f5"}},{"ruleId":"D1","level":"warning","message":{"text":"linuxWebviewWindow.run (cyclomatic 28): linuxWebviewWindow.run has cyclomatic complexity 28 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_linux.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"de422c6b71571337f26d4d21e89cb59e63c1c18b3bb67c934122d87d6c93e895"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsApp.wndProc (cyclomatic 28): windowsApp.wndProc has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/application_windows.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6b595c0123ead276971846f98736a9cfe9ee369f887bb5c6c9f2616228ca4c"}},{"ruleId":"D1","level":"warning","message":{"text":"Dispatcher.processWindowMessage (cyclomatic 27): Dispatcher.processWindowMessage has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/frontend/dispatcher/window.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd69e6fc2bdcc9d504d457da58cf99eec696eefdc0d106276972ebacb920c511"}},{"ruleId":"D1","level":"warning","message":{"text":"main.attemptFix (cyclomatic 27): main.attemptFix has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/scripts/validate-changelog.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5a56bf9a33e3798b57722a8d2e5f46c3aa289045a7141b2fbafb16818b69a7"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runRelease (cyclomatic 27): main.runRelease has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/tasks/release/release.go"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d68e3a0d9718c83bb42153af5700bdc2eea1946696980b6ebbab4832a51b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.Clone (cyclomatic 26): Task.Clone has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/ast/ast.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be092bd46802fa7d4cbda7cfbca408a4d005ec2fa4b5dc886148e6d5ff6a679"}},{"ruleId":"D1","level":"warning","message":{"text":"application.New (cyclomatic 26): application.New has cyclomatic complexity 26 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/application.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4b26e58840e0a98464405f4ce6e8db2b5664b0d9b55109ca05f4ef8e948183"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator.ValidateContent (cyclomatic 25): Validator.ValidateContent 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":"v3/internal/changelog/validator.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c5b681fde62298c30e57e88bf132728a62d7615c285a6ca368a9d9fe618cb6"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.syncDirs (cyclomatic 25): commands.syncDirs has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 50, 82). 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":"v3/internal/commands/bindings_sync.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3671098fbdd37203bb8c71d52a4b6c09abe9a6b29e0256f2446ffdbac6a16b"}},{"ruleId":"D1","level":"warning","message":{"text":"Generator.Generate (cyclomatic 25): Generator.Generate has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/generate.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"95aac9d3b9204a26bcd663e0705a70b0dccb98b87bc3bfc8d61c0f513792a7c1"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageProcessor.processDialogMethod (cyclomatic 25): MessageProcessor.processDialogMethod has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/messageprocessor_dialog.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e1112a4996e33e451acd4e3bae84a0f7a92aee92d2e6283fc2c5e4097fe828"}},{"ruleId":"D1","level":"warning","message":{"text":"notifications.validateNotificationOptions (cyclomatic 25): notifications.validateNotificationOptions 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":"v3/pkg/services/notifications/notifications.go"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68509e93987407f94eac5e357a5e48c0068b36485a70a77e056cc49bdd51204"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider.Check (cyclomatic 25): Provider.Check has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/providers/endpoint/endpoint.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd991fbd41667c9d52c9511451bf9204badbddd35d4d6079cf74ccabe17293c"}},{"ruleId":"D1","level":"warning","message":{"text":"main.extractChangelogContent (cyclomatic 25): main.extractChangelogContent 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":"v3/tasks/release/release.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ace80b9430706497822782f6b292c9fc6951c011a744f23e2567ea32c8e213a"}},{"ruleId":"D1","level":"warning","message":{"text":"Win32Menu.buildMenu (cyclomatic 25): Win32Menu.buildMenu 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":"v3/pkg/application/popupmenu_windows.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c442c87a26077fe0cb8135040e3e36b8877a66931f527173a04850967939d27"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 25): main.main 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":"v3/internal/webview2/scripts/update_version_mapping.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ff0338673e06ac0c4b0cd35e47efb12dba680ae72731cb85f33211be83f59e"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.GenerateBindings (cyclomatic 24): commands.GenerateBindings has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/bindings.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fa7f843fe1f66e4bd470a17a555772ee4f748b1bf53358b75009c07369469e"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.verifyUpdaterArtifact (cyclomatic 24): commands.verifyUpdaterArtifact has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/updater_tool.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f14ba4dac3eccded463a55a96f6a7ab39df1bfa31d41cae180263741acba215"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 24): main.main has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/build_assets/android/scripts/deps/install_deps.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c6ec3ad3a351275ac9dac40a69d27cd5aaf96aa46b06d19bcc077f5ed23651"}},{"ruleId":"D1","level":"warning","message":{"text":"doctor.collectReport (cyclomatic 24): doctor.collectReport has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/doctor/doctor.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd927955a9d3e3b26302053a26d8f5ecb5114b8bc964311d0bbf0cc8286885fd"}},{"ruleId":"D1","level":"warning","message":{"text":"collect.isMarshaler (cyclomatic 24): collect.isMarshaler has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/predicates.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"19816ada51f0e6493d4d96f61d8506d331580f12b2fc7cf928e58dfdd415b68f"}},{"ruleId":"D1","level":"warning","message":{"text":"EventMap.collectEventsInPackage (cyclomatic 24): EventMap.collectEventsInPackage has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/events.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85a0e5573307c06f9d24fb68cc72212733579cbf34f0e87a3edad14a715194c"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundMethod.Call (cyclomatic 24): BoundMethod.Call has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/bindings.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4507cd839ee41235a112f4de5d03fc1b19c20dd95f2c4944a7b269bf7c0ec130"}},{"ruleId":"D1","level":"warning","message":{"text":"linuxMenu.processMenu (cyclomatic 24): linuxMenu.processMenu has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/menu_linux.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fd6a94d6e06e82e7f7a196900e79251ce8f46ec448979c91d7bcae64c405c2"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsWebviewWindow.resizeBorderHitTest (cyclomatic 24): windowsWebviewWindow.resizeBorderHitTest has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_windows_nonclient.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"48760c28ee900ae43b5787eb2012b14341af96a6d2bf7739a32055700c30a637"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.GenerateIcons (cyclomatic 23): commands.GenerateIcons 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":"v3/internal/commands/icons.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f2be5f3a2bf78917863f17ebf7906f4b448578e1333da2b4f2a5aa6ed8811"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceInfo.collectMethod (cyclomatic 23): ServiceInfo.collectMethod 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":"v3/internal/generator/collect/service.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b980f96feb55ab7d193f0d965aa064fc893781253c26716efd77ed5f6d340d1d"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.Parse (cyclomatic 23): parse.Parse 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":"v3/internal/wake/parse/parse.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c4e5b589a27f7470a8fafbfa76325371898a10fc7ed2f6985a5f605e33ac0e"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageProcessor.processCallMethod (cyclomatic 23): MessageProcessor.processCallMethod has cyclomatic complexity 23 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/messageprocessor_call.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13f102979ee425bd140ab9b97db266d3d35b564fe1a1bd4b9d5c5863326e75f"}},{"ruleId":"D1","level":"warning","message":{"text":"main.FetchContributors (cyclomatic 22): main.FetchContributors has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sponsorkit/contributors.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef117372a63c0ffd9b8d26e7355d0f996c460b87ee671c6f88af30e5390d853"}},{"ruleId":"D1","level":"warning","message":{"text":"dev.Application (cyclomatic 22): dev.Application has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"v2/cmd/wails/internal/dev/dev.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d61726917d7b12e6418f66a216aad6f6bbbad403a4307b7bf31792b26d3ed63"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogConfig.apply (cyclomatic 22): DialogConfig.apply has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/go-common-file-dialog/cfd/DialogConfig.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabf01927c24119856fa18040bfa1b93de01239c0098b68b14d4bf83fa1e4c21"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogConfig.apply (cyclomatic 22): DialogConfig.apply has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/go-common-file-dialog/cfd/DialogConfig.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0639e3ceb8fc99c9cc2f641f2b0724562804dee967cd5ac9686c56f3e495c63d"}},{"ruleId":"D1","level":"warning","message":{"text":"linuxSystemTray.run (cyclomatic 22): linuxSystemTray.run has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 11 belong to one function literal inside it that branches. This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/systemtray_linux.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"368fb74d2d477cbaa295eed6dbb89fc4111159869a8a4021c12406e474aa9f67"}},{"ruleId":"D1","level":"warning","message":{"text":"linuxNotifier.notify (cyclomatic 22): linuxNotifier.notify has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/services/notifications/notifications_linux.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5af1e3d935cd49941856ae2532886f30e2b20ecc7eeaac7f593f0d0f341ee7"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsSystemTray.run (cyclomatic 22): windowsSystemTray.run has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"v3/pkg/application/systemtray_windows.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d78f981bd81722a79a4e7aa33f12c93faa0d6a7ff0713a7746a6c006687c71"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsWebviewWindow.routeNonClientInput (cyclomatic 22): windowsWebviewWindow.routeNonClientInput has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_windows_nonclient.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5698e794c2fcb31684b4ff49b9e77e3d435edfa9e7af85f3de6e72d697cd83"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 21): main.main has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 261, 279, 178, \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":"v3/examples/dialogs/main.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f758dae7cdabc8aa06bc6977b0cc04c5798eafe22e6290590552b19fdb5484"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.updateTaskfileVars (cyclomatic 21): commands.updateTaskfileVars 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":"v3/internal/commands/signing_setup.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f6352f401ba1010b136cd1a31120dd22c4d9c4eae4b7373d2620cab632ee51"}},{"ruleId":"D1","level":"warning","message":{"text":"module.PostponedCreates (cyclomatic 21): module.PostponedCreates has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 240). 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":"v3/internal/generator/render/create.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"797ee01da858aef6e3a7de90e8802a3c3cb8693521fc33cc4411709780ab25d5"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.mergeVars (cyclomatic 21): Executor.mergeVars 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":"v3/internal/wake/exec/exec.go"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"10627bbd60a0cadc43ccb39499d2f636876652d3e1f9c26bb16f918b77a4cac3"}},{"ruleId":"D1","level":"warning","message":{"text":"updater.extractTarGz (cyclomatic 21): updater.extractTarGz 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":"v3/pkg/updater/extract.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9984c3d0ed0ee5584209d0de13cf9fc1c8e1001f9c03620571f796a6479f857f"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsNotifier.buildToastXML (cyclomatic 21): windowsNotifier.buildToastXML 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":"v3/pkg/services/notifications/notifications_windows.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacfd34c89322cd5ce4c3b1f584f9467dcd055b47847340c14aa05b0cfc767dc"}},{"ruleId":"D1","level":"warning","message":{"text":"Project.setDefaults (cyclomatic 20): Project.setDefaults has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/project/project.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"98629530e75cc50599da484e0385ec06070f8e5feecb2a1d2b5fdffbad12c9fa"}},{"ruleId":"D1","level":"warning","message":{"text":"templates.Install (cyclomatic 20): templates.Install has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/templates/templates.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47d9321121b7a73d291a14784425b434a25df1d913fd261b420e31b897a5bc9"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.ParseContent (cyclomatic 20): Parser.ParseContent has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/changelog/parser.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4911c1db3232ceb57c69b01b20f32752c0435033eb83cbf7a22409710e25a722"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.GenerateBuildAssets (cyclomatic 20): commands.GenerateBuildAssets has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/build-assets.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"69402dc2989aab677defc187c5446702dc82721fcbbae2649b0e639c2ba28541"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.Init (cyclomatic 20): commands.Init has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/init.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c48df9cc9453f9373264e376f6fae454e5a6e0793b8348a164f92985b9b0bc"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.UpdaterManifest (cyclomatic 20): commands.UpdaterManifest has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/updater_tool.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9d18bec5fa653978763c1e329ce7aa082695d1db9fe65a5ac4d5e66f9abf12"}},{"ruleId":"D1","level":"warning","message":{"text":"module.needsCreateImpl (cyclomatic 20): module.needsCreateImpl has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/create.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d3fa9d46932aa6f20cddccb38c0b71f84f579b14154a2a32df53f30bbf3cd0"}},{"ruleId":"D1","level":"warning","message":{"text":"module.renderNamedDefault (cyclomatic 20): module.renderNamedDefault has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/default.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"88debbbc793c995120da86d11b931707676e221e77edc452ae12e38554ab36b4"}},{"ruleId":"D1","level":"warning","message":{"text":"setupwizard.findToolchainGo (cyclomatic 20): setupwizard.findToolchainGo has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard_linux.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac92ab140971abc5aaceecc8e06ad72c3913c97ad72534f7fb91eb5f1752b7f9"}},{"ruleId":"D1","level":"warning","message":{"text":"wake.Execute (cyclomatic 20): wake.Execute has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/wake.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5430be7d62503bb3f72e2e44c25e6f990d648eb047297b84f56c120082b944"}},{"ruleId":"D1","level":"warning","message":{"text":"main.generateTemplate (cyclomatic 19): main.generateTemplate 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":"v2/cmd/wails/generate.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6891f435f4a1c9fc22d2ecae73d552152a595379070dd7fb7c83e37285d3872"}},{"ruleId":"D1","level":"warning","message":{"text":"Bindings.GenerateModels (cyclomatic 19): Bindings.GenerateModels has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/binding/binding.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7786ab3db86f724ee14cb38ee5894cde09d705f9668d49d48b699d2f87c66a0a"}},{"ruleId":"D1","level":"warning","message":{"text":"assetFileServer.serveFSFile (cyclomatic 19): assetFileServer.serveFSFile has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/assetserver/asset_fileserver.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8159bd687e4bbd9f74fed6dfe2bdff0eed950afaebf70f73c54a2fca14dbc136"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetServer.processWebViewRequestInternal (cyclomatic 19): AssetServer.processWebViewRequestInternal has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/assetserver/assetserver_webview.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8618a3e4561e51077dd855f781e260709431b1d32cc30e840bb729db8892742e"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.loadIOSProjectConfig (cyclomatic 19): commands.loadIOSProjectConfig 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":"v3/internal/commands/ios_xcode_gen.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2475745b5e9c0cb2793b9c36ee9dce2fa7010ab5fac6d4d801942c9127eb5ab"}},{"ruleId":"D1","level":"warning","message":{"text":"PackageInfo.Collect (cyclomatic 19): PackageInfo.Collect has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 141). 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":"v3/internal/generator/collect/package.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2e3dbf38e719fbb34f32b052919bdf5b9814096c7cb331d213f552ed7e839d"}},{"ruleId":"D1","level":"warning","message":{"text":"updater.runHelperSwap (cyclomatic 19): updater.runHelperSwap has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/helper.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8027d9818d2355fa7159dacaddcec4c97e10ef6ab8c8efc275dee1fb0dec1f0b"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider.Download (cyclomatic 19): Provider.Download has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/providers/endpoint/endpoint.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5c2fa072e8de9932653107ac98c1fa988ebbf93de39e4242e5dfbff221c021"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsMenu.processMenu (cyclomatic 19): windowsMenu.processMenu has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/menu_windows.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"af55ff08aa4013dc4cd4aea6cd44fcf602a03eff104f469a041cc8dffeb0a475"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsSystemTray.positionWindow (cyclomatic 19): windowsSystemTray.positionWindow has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/systemtray_windows.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d5ea1ed9bdd951de06a2428c51e302ae8d178f225bca9a5406875c33f3c6e8"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsWebviewWindow.nonClientHitTestFromScreen (cyclomatic 19): windowsWebviewWindow.nonClientHitTestFromScreen has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_windows_nonclient.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d15afe9c891b3ae879c5869cf43aab765c677c904fef550254e0f9cff44fbe"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeScriptify.getJSONFieldName (cyclomatic 18): TypeScriptify.getJSONFieldName 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":"v2/internal/typescriptify/typescriptify.go"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c836c11f0e2bab96c22e611d7199c104a5362faf9b4b6bdb9382a24c2484108"}},{"ruleId":"D1","level":"warning","message":{"text":"build.GenerateNSISInstaller (cyclomatic 18): build.GenerateNSISInstaller 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":"v2/pkg/commands/build/nsis_installer.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4100aa10831c1725a542d4aa227cb2f2c8dd1d44ff48c616a12a467721566b"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.resolveSigningDefaults (cyclomatic 18): commands.resolveSigningDefaults has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/sign.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4874b42c8dac3f7aba70ab0a200b91c7cfb784025d445bb7a824e39338b9a0"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.GenerateSyso (cyclomatic 18): commands.GenerateSyso has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/syso.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"805cf40ee4e6e9ddb24467ffc0c6a250be58389f9852d365d6259a7e9a2a57b7"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.ToolPackage (cyclomatic 18): commands.ToolPackage 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":"v3/internal/commands/tool_package.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7905ef23628427c38d08fac175d1f0c6df9bfb5f1c9740dd9350bb9c8d4738"}},{"ruleId":"D1","level":"warning","message":{"text":"doctor.renderReport (cyclomatic 18): doctor.renderReport has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/doctor/doctor.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab53f8f1d082e8b22ea3ea18db52a7044a93466e1f6acbf0d3057646bc6e4e4"}},{"ruleId":"D1","level":"warning","message":{"text":"module.renderNamedType (cyclomatic 18): module.renderNamedType 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":"v3/internal/generator/render/type.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12a72772dd0a4c956523af02186fe311ceadc95df8c1b244147d92899b780c6"}},{"ruleId":"D1","level":"warning","message":{"text":"Wizard.handleGPGCreate (cyclomatic 18): Wizard.handleGPGCreate 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":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"889a9d1fb7593d8c0fa7d34b978650ec1189b8eb70b8a2fd46c80ff2102329c2"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskCache.ShouldSkip (cyclomatic 18): TaskCache.ShouldSkip 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":"v3/internal/wake/exec/cache.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f0320696a9c2c59d0a45a264b6bd557136c543950b698ea60236d8a0b281a5"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.ExpandTemplates (cyclomatic 18): parse.ExpandTemplates has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/parse/expr.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"602537f12730a245292d3f2886cae842a355fb37543fef928743de5fc63a3f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.parseCmds (cyclomatic 18): parse.parseCmds 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":"v3/internal/wake/parse/parse.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec50bcf1545e4bd770a875c07d5e51227bebe6217ce74cebe859ea9bacdac6d7"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve.MergeTask (cyclomatic 18): resolve.MergeTask has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/resolve/merge.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a77e48ae44db283d4a3858b214711c852c02f1a15bf4885f4a34e33433cdfc"}},{"ruleId":"D1","level":"warning","message":{"text":"App.Run (cyclomatic 18): App.Run has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 592). 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":"v3/pkg/application/application.go"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec56da50bd4e23ab87944bd98c8287ad209fb07c7d101e2b00e228db8c6c2ef"}},{"ruleId":"D1","level":"warning","message":{"text":"Model.Update (cyclomatic 18): Model.Update 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":"v3/pkg/doctor-ng/tui/model.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c71dc69efc22068aac5864912698d315d96d3590702460f6332529e1f7ee02e"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider.Check (cyclomatic 18): Provider.Check has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/providers/keygen/keygen.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb71b2b88c88da62eec91084f2bef8454e90eb455c4688508e18cd9b9ef949d"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider.Download (cyclomatic 18): Provider.Download 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":"v3/pkg/updater/providers/keygen/keygen.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b392f59920d3698ca42b3e2c60b99136c46f69ec3916f97f51c2084a897b7f2"}},{"ruleId":"D1","level":"warning","message":{"text":"Chromium.initializeController (cyclomatic 18): Chromium.initializeController 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":"v3/internal/webview2/pkg/edge/chromium.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68ca383308fdc4ba1e3314ea0704937d973c355f7e7341ae930335406c41ae9"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsWebviewWindow.updateTheme (cyclomatic 18): windowsWebviewWindow.updateTheme 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":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7786ccbd3b325057017d698fa72616815c9a6137999b1c3e4ebb8c80472f22"}},{"ruleId":"D1","level":"warning","message":{"text":"main.FetchSponsors (cyclomatic 17): main.FetchSponsors has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sponsorkit/github.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a3e6304046558920d2325d5b64058346af6d3ebe11dcb36fa367b5f9b1f8a3"}},{"ruleId":"D1","level":"warning","message":{"text":"main.updateToVersion (cyclomatic 17): main.updateToVersion 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":"v2/cmd/wails/update.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24c05f4a010502ef18d37d660496fbc3366e3a10bdd5d6f3ea32df9faab83ca"}},{"ruleId":"D1","level":"warning","message":{"text":"assetHandler.serveFSFile (cyclomatic 17): assetHandler.serveFSFile 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":"v2/pkg/assetserver/assethandler.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"30820a97001a8f29d0c9c2f0961f5b387d9b27d256419f2df4b9aaffedd0ec3e"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetServer.ServeHTTP (cyclomatic 17): AssetServer.ServeHTTP has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/assetserver/assetserver.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0ad9c2fde8ba78fa5be2fae563f46b2526793a5d3af68ef79661a8c5e053c6"}},{"ruleId":"D1","level":"warning","message":{"text":"build.Build (cyclomatic 17): build.Build 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":"v2/pkg/commands/build/build.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18ee3c0b4bc45cd6974280cf56e9d940866891948ce0d0b609d67f10b9a92f2"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.generateAppImage (cyclomatic 17): commands.generateAppImage has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, 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":"v3/internal/commands/appimage.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a30570713b45032e50bc7fe6a6453f23b1a8ce9104d9393465f8fd3a5c6fe04"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.ToolVersion (cyclomatic 17): commands.ToolVersion has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/tool_version.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7a15dd0ac6aae4b37ca622717d324a7e1cc4fdb43c1232f3b139e69dbf14b3"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.updateToVersion (cyclomatic 17): commands.updateToVersion 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":"v3/internal/commands/update_cli.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"444141649662f8b716ab4ee12bfa7c399ac8eae342f0b85381b8bc5743377b91"}},{"ruleId":"D1","level":"warning","message":{"text":"s.splitShell (cyclomatic 17): s.splitShell 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":"v3/internal/s/s.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3879c1d72bf795799fd390bd33dc1aa9dd98280981d7de45541269d3f89f96"}},{"ruleId":"D1","level":"warning","message":{"text":"Wizard.pullViaDockerCLI (cyclomatic 17): Wizard.pullViaDockerCLI has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e575e6ff80d061dfd9f0c7d2a3d82e216d9e377b7cffecdbcbcaaf2c2e6697c"}},{"ruleId":"D1","level":"warning","message":{"text":"cmds.shellSplit (cyclomatic 17): cmds.shellSplit has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/cmds/shell.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9a7b9effb7b8c32b9203085fb5da264b30cb75bb3251d34af208fe5f5fb661"}},{"ruleId":"D1","level":"warning","message":{"text":"cmds.parseGoBuildArgs (cyclomatic 17): cmds.parseGoBuildArgs 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":"v3/internal/wake/cmds/shell.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afb5ec3e647b9ec92319bd8a21de71c8caa55518c6cee05485efc1b555c791a"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider.Download (cyclomatic 17): Provider.Download 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":"v3/pkg/updater/providers/appcast/appcast.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e033817ba2c86eede6e088c7a2946a8c58ab15b75f4de1f6a28e3a9a457d2a"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider.Download (cyclomatic 17): Provider.Download 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":"v3/pkg/updater/providers/github/github.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b93586907529e7f2d8808a9a7d7731d704ce741eeb510bff1809469e72754a"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 17): main.main 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":"v3/scripts/validate-changelog.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f8a7da72eff515198ff95a6ef4f296d146adc24f1457a39c03df8323cd8405"}},{"ruleId":"D1","level":"warning","message":{"text":"main.fetchMergedPRCounts (cyclomatic 16): main.fetchMergedPRCounts 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":"tools/sponsorkit/contributors.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d367b49931f747c2739072d06b447ade457b55ebb950ca5d86a2cfbf1f7e9f1"}},{"ruleId":"D1","level":"warning","message":{"text":"Bindings.getMethods (cyclomatic 16): Bindings.getMethods 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":"v2/internal/binding/reflect.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a194c0c163c7efcb53b249f6a1b71d50a6599909ed8c3669018bb86b8cd13eb"}},{"ruleId":"D1","level":"warning","message":{"text":"Dispatcher.ProcessMessage (cyclomatic 16): Dispatcher.ProcessMessage has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/frontend/dispatcher/dispatcher.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebc3fdd4c5558eb9d97c9a14dfeeddf421050567547bbbe07c90aad60f106a4"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.ValidateAndSanitizeURL (cyclomatic 16): utils.ValidateAndSanitizeURL has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/frontend/utils/urlValidator.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ce114361b4000fc99ae2f5706397e3e10d3d540bf9d2ee98bb8818bc2294d3"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.IOSXcodeGen (cyclomatic 16): commands.IOSXcodeGen has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/ios_xcode_gen.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"af675a225841f62191ff068bc4b1ae47b2faac95c0cee9c02187c9980560599b"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.UpdaterVerify (cyclomatic 16): commands.UpdaterVerify 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":"v3/internal/commands/updater_tool.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ab408b37c92b2a148a710f2cae176a10c96a7c83ed5ed424db364c5bcf8008"}},{"ruleId":"D1","level":"warning","message":{"text":"Reporter.writePanelLocked (cyclomatic 16): Reporter.writePanelLocked has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/report/pulse/summary.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b881f09c81afce15c32fe1843ac6a2feb24166f3b26042a6b226d867db1607db"}},{"ruleId":"D1","level":"warning","message":{"text":"Wizard.handleWindowsCertCreate (cyclomatic 16): Wizard.handleWindowsCertCreate has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: 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":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bcba60b44f64e425a2df4b273b9ef43feb12c796ab2442fbe0d7ca0e2ab510"}},{"ruleId":"D1","level":"warning","message":{"text":"templates.GenerateTemplate (cyclomatic 16): templates.GenerateTemplate has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/templates/templates.go"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4abc89955b6f9f170bfac85b0e13c3f626cc2f0d4728d8fc15d1d2adaa0064d"}},{"ruleId":"D1","level":"warning","message":{"text":"application.ValidateAndSanitizeURL (cyclomatic 16): application.ValidateAndSanitizeURL has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/urlvalidator.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0741078ce0f132a5be62ca9dac8fe7123947c7d37ec02092bb6d9aaaba676de"}},{"ruleId":"D1","level":"warning","message":{"text":"windowsSystemTray.wndProc (cyclomatic 16): windowsSystemTray.wndProc 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":"v3/pkg/application/systemtray_windows.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c1a1ba15b341304d06f30c7781ba48c6546fe7a0684fe757b465b9d14f0884"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsWebviewWindow.WndProc (cognitive 212): windowsWebviewWindow.WndProc has cognitive complexity 212 (threshold 15). Drivers by points: if/else 182, boolean chains 16, match/switch 14 (nesting depth added 119). Of this number, 210 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":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a63721cae220c09bd3b556d71038f155adfb8286496ea1464b3cb0e19aae7cd"}},{"ruleId":"D2","level":"warning","message":{"text":"w32.MenuBarWndProc (cognitive 187): w32.MenuBarWndProc has cognitive complexity 187 (threshold 15). Drivers by points: if/else 165, boolean chains 13, loops 8, match/switch 1 (nesting depth added 112). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/w32/menubar.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e00d85c090f6d1143dbad43ab9bd896ade406524e98fa7e08e1e56fc1addfe"}},{"ruleId":"D2","level":"warning","message":{"text":"dev.doWatcherLoop (cognitive 129): dev.doWatcherLoop has cognitive complexity 129 (threshold 15). Drivers by points: if/else 114, loops 11, boolean chains 2, match/switch 2 (nesting depth added 87). Of this number, 121 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/internal/dev/dev.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44aed8014774e5f6b35fd135c4a3ca7c990e6c34ef66385a63d0482386aecf3"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 113): main.main has cognitive complexity 113 (threshold 15). Drivers by points: if/else 96, loops 13, boolean chains 4 (nesting depth added 61). Of this number, 84 points are the body\u0027s own statements and 29 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":"v3/internal/commands/build_assets/ios/scripts/deps/install_deps.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c0cdb5b0b44adacb50e386ac8bcf06e5b2e92bc42d61d0ec104d36f666ed68"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 110): main.main has cognitive complexity 110 (threshold 15). Drivers by points: if/else 98, match/switch 6, loops 5, jumps 1 (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/tasks/events/generate.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb49e089cde4de91e40c91c4408d55e8d004616beff012f9bfb6bc4bd0ef25e"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeScriptify.convertType (cognitive 104): TypeScriptify.convertType has cognitive complexity 104 (threshold 15). Drivers by points: if/else 89, match/switch 6, boolean chains 5, loops 4 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/typescriptify/typescriptify.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"827fbfa36a92e47476e939c39515627373ef3b83da153c7e6dc1f02168ea994f"}},{"ruleId":"D2","level":"warning","message":{"text":"main.diagnoseEnvironment (cognitive 100): main.diagnoseEnvironment has cognitive complexity 100 (threshold 15). Drivers by points: if/else 88, loops 11, boolean chains 1 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/doctor.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf7620b0d841a7a5d4dcdd309f6e27d0785d6199fb569c10ec0f0d0f4a253db"}},{"ruleId":"D2","level":"warning","message":{"text":"generator.FindServices (cognitive 94): generator.FindServices has cognitive complexity 94 (threshold 15). Drivers by points: if/else 68, loops 18, boolean chains 5, match/switch 3 (nesting depth added 61). Of this number, 66 points are the body\u0027s own statements and 28 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/analyse.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c2f3038178506c70bb33498d8ae110bfd595cc09f623ed898df33bdf2a855b"}},{"ruleId":"D2","level":"warning","message":{"text":"menu.ParseANSI (cognitive 86): menu.ParseANSI has cognitive complexity 86 (threshold 15). Drivers by points: if/else 77, boolean chains 3, loops 3, match/switch 3 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/menu/styledlabel.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c380c1c69d74a9ca56f124e5ec42443b6cafb58553cae29fe6168e0ca4914266"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.runTask (cognitive 84): Executor.runTask has cognitive complexity 84 (threshold 15). Drivers by points: if/else 65, loops 13, boolean chains 4, match/switch 2 (nesting depth added 41). Of this number, 78 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/exec/exec.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4b63aa22a309f7e5dfa3cb15e51c120ee59a5a40be4e271b2f255ba6d2f3a7"}},{"ruleId":"D2","level":"warning","message":{"text":"StructInfo.Collect (cognitive 81): StructInfo.Collect has cognitive complexity 81 (threshold 15). Drivers by points: if/else 69, loops 8, boolean chains 4 (nesting depth added 50). Most of this is not in the body itself: 1 of the 81 points is its own statement and the rest belongs to one function literal inside it that branches (line 106). 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":"v3/internal/generator/collect/struct.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45f207c639211bbc42b0ca028a872d3b5aa4aa7a3e919b5f472db1bb3563c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseBuilder.CompileProject (cognitive 77): BaseBuilder.CompileProject has cognitive complexity 77 (threshold 15). Drivers by points: if/else 73, boolean chains 4 (nesting depth added 27). Of this number, 58 points are the body\u0027s own statements and 19 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/commands/build/base.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b24f48a9b47311d2f47c719e892587d8a711fa92ee85bb6cceb638dda2b5873"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelInfo.Collect (cognitive 73): ModelInfo.Collect has cognitive complexity 73 (threshold 15). Drivers by points: if/else 51, loops 14, boolean chains 7, match/switch 1 (nesting depth added 41). Most of this is not in the body itself: 1 of the 73 points is its own statement and the rest belongs to one function literal inside it that branches (line 127). 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":"v3/internal/generator/collect/model.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a8dfedf8d6fe2d2ace05b650de2b9ba8d248f91328e9dd6b0b855ddfe59d66"}},{"ruleId":"D2","level":"warning","message":{"text":"collect.IsParametric (cognitive 69): collect.IsParametric has cognitive complexity 69 (threshold 15). Drivers by points: if/else 48, loops 19, match/switch 2 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/predicates.go"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"568298066b1c5b4a4b2cf29f6db548d785ba63da2c07ab5352ad9a5a570682a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportMap.addTypeImpl (cognitive 61): ImportMap.addTypeImpl has cognitive complexity 61 (threshold 15). Drivers by points: if/else 44, loops 9, match/switch 5, boolean chains 3 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/imports.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3291ed9a0397fbf5dc8d3f31647bed6fc51c5bf0378f939d1ab851530204d96d"}},{"ruleId":"D2","level":"warning","message":{"text":"Wizard.pullViaDockerAPI (cognitive 60): Wizard.pullViaDockerAPI has cognitive complexity 60 (threshold 15). Drivers by points: if/else 51, boolean chains 3, loops 3, match/switch 3 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc4b3fa47532d1d554d2a659618f08109b17eba3bca9ba8acf3f8095b7b16e9"}},{"ruleId":"D2","level":"warning","message":{"text":"Win32Menu.buildMenu (cognitive 59): Win32Menu.buildMenu has cognitive complexity 59 (threshold 15). Drivers by points: if/else 51, loops 7, boolean chains 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/popupmenu_windows.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b25ac14ff3f905945435cd52c73d5a0dd0d305ef1bac66c1a78056a7f5a9fa"}},{"ruleId":"D2","level":"warning","message":{"text":"templates.Install (cognitive 57): templates.Install has cognitive complexity 57 (threshold 15). Drivers by points: if/else 54, boolean chains 2, match/switch 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":"v3/internal/templates/templates.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"877616e3b857cdc02b5ea60a8a6e907c1b6d69f85a63e2f27db3533f27dc2a59"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.RunTask (cognitive 55): commands.RunTask has cognitive complexity 55 (threshold 15). Drivers by points: if/else 41, boolean chains 9, loops 5 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/task.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8896371c825e36a0fcd99c9c4b651c94a513590b58ca698806edbeb6e200bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"main.attemptFix (cognitive 54): main.attemptFix has cognitive complexity 54 (threshold 15). Drivers by points: if/else 29, loops 19, boolean chains 6 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/scripts/validate-changelog.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb74b1c30b502f1779fe23eda0081d239ee6391604bddc298fd3767ecc09e1fe"}},{"ruleId":"D2","level":"warning","message":{"text":"main.extractChangelogContent (cognitive 53): main.extractChangelogContent has cognitive complexity 53 (threshold 15). Drivers by points: if/else 47, boolean chains 4, loops 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/tasks/release/release.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1543da87ec490e3f40f4d43a11ff8ecd4177dafbef7ed2e869dcf1de7aa616f"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.Clone (cognitive 52): Task.Clone has cognitive complexity 52 (threshold 15). Drivers by points: if/else 29, loops 23 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/ast/ast.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6abe79ede38284a7d93a8d29ab6cd9e85c2659993cb651ab3f45dfd24107ae"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsWebviewWindow.setupChromium (cognitive 52): windowsWebviewWindow.setupChromium has cognitive complexity 52 (threshold 15). Drivers by points: if/else 46, boolean chains 3, loops 3 (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":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cf453c247d4444f5825a7f9e0d1430a8406ddbaf5979f6a0a78651782356eb"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageProcessor.processWindowMethod (cognitive 51): MessageProcessor.processWindowMethod has cognitive complexity 51 (threshold 15). Drivers by points: if/else 50, match/switch 1 (nesting depth added 25). 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":"v3/pkg/application/messageprocessor_window.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e97238392f4bd9ad96403ddaed4aeaf92f59fa860160839c8606df07a5b8ad"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 51): main.main has cognitive complexity 51 (threshold 15). Drivers by points: if/else 34, boolean chains 10, loops 6, match/switch 1 (nesting depth added 18). Most of this is not in the body itself: 4 of the 51 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 293, 260, 339, \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":"v3/examples/systray-stress/main.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"817950135b08631e43d532e804a3805245dd82a5b705af2885b346861079b038"}},{"ruleId":"D2","level":"warning","message":{"text":"build.execBuildApplication (cognitive 50): build.execBuildApplication has cognitive complexity 50 (threshold 15). Drivers by points: if/else 43, boolean chains 7 (nesting depth added 17). Of this number, 48 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":"v2/pkg/commands/build/build.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7a25b9dc77aef24ee427c355e4b4f6e3d6d00841f53d76746d09f4290b25ca"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageProcessor.processCallMethod (cognitive 50): MessageProcessor.processCallMethod has cognitive complexity 50 (threshold 15). Drivers by points: if/else 45, match/switch 4, boolean chains 1 (nesting depth added 27). Of this number, 29 points are the body\u0027s own statements and 21 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/messageprocessor_call.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"112717c5a41599f3bd5140afb4aae199ff882e74a4d4e7c1b4c1346d7042e01a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.buildApplication (cognitive 49): main.buildApplication has cognitive complexity 49 (threshold 15). Drivers by points: if/else 41, boolean chains 5, match/switch 3 (nesting depth added 8). Of this number, 25 points are the body\u0027s own statements and 24 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"v2/cmd/wails/build.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94a66e66b429a43e5ca7503927e41aad7260a251fbf487905b2a54b720a1813"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 47): main.main has cognitive complexity 47 (threshold 15). Drivers by points: if/else 38, loops 7, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/build_assets/android/scripts/deps/install_deps.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e76b2677555f726de430b690643eaa3652b5fa8b6ca83f112a88ff739af86b0"}},{"ruleId":"D2","level":"warning","message":{"text":"module.JSCreateWithParams (cognitive 47): module.JSCreateWithParams has cognitive complexity 47 (threshold 15). Drivers by points: if/else 32, loops 6, match/switch 6, boolean chains 3 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/create.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fe315e927ec8c12dabfd4f79d41ce4054db7a4a2e99c49a2a722ae5e3964d4"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsWebviewWindow.run (cognitive 47): windowsWebviewWindow.run has cognitive complexity 47 (threshold 15). Drivers by points: if/else 42, boolean chains 3, match/switch 2 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fcee853687c29ce93629c06c334a843cf45b28013d9f9bf68cd053575a706d"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsWebviewWindow.printStyle (cognitive 47): windowsWebviewWindow.printStyle has cognitive complexity 47 (threshold 15). Drivers by points: if/else 47. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d04544c070f5386fe46ffbb0f37407a238e5df4d17b84591523b29c59207bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"Collector.findDeclaration (cognitive 46): Collector.findDeclaration has cognitive complexity 46 (threshold 15). Drivers by points: if/else 35, match/switch 6, boolean chains 4, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/declaration.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6147ecb591e4e5ee61b7ce8de17a57553667390c33aeee2b9c4fbff0152bb9eb"}},{"ruleId":"D2","level":"warning","message":{"text":"notifications.validateNotificationOptions (cognitive 46): notifications.validateNotificationOptions has cognitive complexity 46 (threshold 15). Drivers by points: if/else 39, boolean chains 4, match/switch 2, 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":"v3/pkg/services/notifications/notifications.go"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b571994f08c402455f3f855a2ebfb2afe0b42ca329741f05382ff15d93b51fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"PackageInfo.Collect (cognitive 45): PackageInfo.Collect has cognitive complexity 45 (threshold 15). Drivers by points: if/else 34, loops 7, match/switch 3, boolean chains 1 (nesting depth added 28). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to one function literal inside it that branches (line 141). 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":"v3/internal/generator/collect/package.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89ef4d3c77c4017cdf06fdd0720a98d00269db6beeb42d20eab398396176fd8"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator.ValidateContent (cognitive 44): Validator.ValidateContent has cognitive complexity 44 (threshold 15). Drivers by points: if/else 37, boolean chains 6, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/changelog/validator.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e988b81adbab10478a6fc37161c7e5c7709ca66b6a76af1c8c0d030da2efd45"}},{"ruleId":"D2","level":"warning","message":{"text":"EventMap.collectEventsInPackage (cognitive 43): EventMap.collectEventsInPackage has cognitive complexity 43 (threshold 15). Drivers by points: if/else 39, boolean chains 3, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/collect/events.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bcb0d28702a13daddd5c0f6dccda6d465b4495b3aed18061403ea83368dad8"}},{"ruleId":"D2","level":"warning","message":{"text":"templates.Install (cognitive 42): templates.Install has cognitive complexity 42 (threshold 15). Drivers by points: if/else 42 (nesting depth added 20). Of this number, 39 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/templates/templates.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c9775be4658476ecd1c9d3ec248096384210277ba6f59a7d229a368268c16c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 42): main.main has cognitive complexity 42 (threshold 15). Drivers by points: if/else 38, loops 3, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/webview2/scripts/update_version_mapping.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"412aa3666b8a18aeb67a596a1ebd39b6fc916be37327dbb8e74b90c489ce9124"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.GenerateIcons (cognitive 41): commands.GenerateIcons has cognitive complexity 41 (threshold 15). Drivers by points: if/else 37, boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/icons.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b476931edbb9256feea3735767609d92d237f774d26ea6b5db672141e826b879"}},{"ruleId":"D2","level":"warning","message":{"text":"linuxMenu.processMenu (cognitive 41): linuxMenu.processMenu has cognitive complexity 41 (threshold 15). Drivers by points: if/else 35, loops 3, match/switch 2, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/menu_linux.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ec0aa03f21d84b39dea014a5828877fcc857d4c9f45f4ab03a25321daef272"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsMenu.processMenu (cognitive 41): windowsMenu.processMenu has cognitive complexity 41 (threshold 15). Drivers by points: if/else 38, boolean chains 2, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/menu_windows.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"83614d50384606fd79c42ad10eb704d137915de8755d5291bc54a27107e531a5"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.UpdateBuildAssets (cognitive 40): commands.UpdateBuildAssets has cognitive complexity 40 (threshold 15). Drivers by points: if/else 33, boolean chains 7 (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":"v3/internal/commands/build-assets.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2190531b606910d302a8d89ba3ea00cb2cc579a00d2bddfec27a6a00ab7f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"Dispatcher.processSystemCall (cognitive 39): Dispatcher.processSystemCall has cognitive complexity 39 (threshold 15). Drivers by points: if/else 38, match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/frontend/dispatcher/systemcalls.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb19add13c0a9633db90c6761328cd9883fa463b18719602995db81446311d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogConfig.apply (cognitive 39): DialogConfig.apply has cognitive complexity 39 (threshold 15). Drivers by points: if/else 38, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/go-common-file-dialog/cfd/DialogConfig.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc409174dbd365f2be1d8a9d066b72304824f3718a9f475dbf51ef37495f898d"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogConfig.apply (cognitive 39): DialogConfig.apply has cognitive complexity 39 (threshold 15). Drivers by points: if/else 38, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/go-common-file-dialog/cfd/DialogConfig.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"39da47441e63c168fdc20a21981bb40e10b2a78c1f24f6b3373d2c570b7450c5"}},{"ruleId":"D2","level":"warning","message":{"text":"setupwizard.findToolchainGo (cognitive 39): setupwizard.findToolchainGo has cognitive complexity 39 (threshold 15). Drivers by points: if/else 29, loops 7, boolean chains 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard_linux.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a486f06cb863dffa92b782d1cc702680a8e30d43a36e52520bc827a2eb0b2217"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageProcessor.processDialogMethod (cognitive 39): MessageProcessor.processDialogMethod has cognitive complexity 39 (threshold 15). Drivers by points: if/else 25, match/switch 9, boolean chains 3, loops 2 (nesting depth added 19). Of this number, 36 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"v3/pkg/application/messageprocessor_dialog.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c97570e32ce5e0a5b2cc9f02f07ca0036c07d02bf57d562e7cee90a8a989a"}},{"ruleId":"D2","level":"warning","message":{"text":"Bindings.GenerateModels (cognitive 38): Bindings.GenerateModels has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20, loops 18 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/binding/binding.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd7cb0af7c8cd22e22992541c2305ed78e7ce45f61a96dc34bb7f6b9ec961c7"}},{"ruleId":"D2","level":"warning","message":{"text":"Bindings.getMethods (cognitive 38): Bindings.getMethods has cognitive complexity 38 (threshold 15). Drivers by points: if/else 33, loops 5 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/binding/reflect.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc7f992efbf462aa988fc49ad1b5c9d682e34ebd28684fd89f03fa0f2fd7a03"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.updateTaskfileVars (cognitive 38): commands.updateTaskfileVars has cognitive complexity 38 (threshold 15). Drivers by points: if/else 27, loops 8, boolean chains 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/signing_setup.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d7a4167941f0257195df933c26c6b2c0e7e26ace12d62b6e44da6ef3e69a59"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundMethod.Call (cognitive 38): BoundMethod.Call has cognitive complexity 38 (threshold 15). Drivers by points: if/else 34, loops 4 (nesting depth added 11). Of this number, 32 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":"v3/pkg/application/bindings.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"435cf7380f78992a44ae0aa0045aab146d2bc20f7e1a8ad4a931197d3d791c7f"}},{"ruleId":"D2","level":"warning","message":{"text":"updater.extractTarGz (cognitive 38): updater.extractTarGz has cognitive complexity 38 (threshold 15). Drivers by points: if/else 33, loops 2, match/switch 2, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/extract.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e248c7ed28b410777d1aa301d61bb5e141a07af59c6e23d4f6fde56feb5a903"}},{"ruleId":"D2","level":"warning","message":{"text":"module.PostponedCreates (cognitive 37): module.PostponedCreates has cognitive complexity 37 (threshold 15). Drivers by points: if/else 28, loops 7, boolean chains 1, match/switch 1 (nesting depth added 18). Most of this is not in the body itself: 3 of the 37 points are its own statements and the rest belongs to one function literal inside it that branches (line 240). 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":"v3/internal/generator/render/create.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbf857130eaf9da131366b285338b0ed00def42bb6fe49aa5c268253b8138b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Wizard.checkAllDependencies (cognitive 37): Wizard.checkAllDependencies has cognitive complexity 37 (threshold 15). Drivers by points: if/else 35, loops 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard_linux.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f577eb06bd892889dea4c9a6616911a3703944ed74bb45e7f406682117b013"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runRelease (cognitive 37): main.runRelease has cognitive complexity 37 (threshold 15). Drivers by points: if/else 37 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/tasks/release/release.go"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"da647aa5e1b3b65de3559e5b84745c8081a165249dc1bf57b9bff879fce69ef7"}},{"ruleId":"D2","level":"warning","message":{"text":"main.FetchContributors (cognitive 36): main.FetchContributors has cognitive complexity 36 (threshold 15). Drivers by points: if/else 26, loops 7, boolean chains 3 (nesting depth added 16). Of this number, 35 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":"tools/sponsorkit/contributors.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"47924bf5658ba481d5d4e00e64f50f775acc266408554b59b4e945297bb52f78"}},{"ruleId":"D2","level":"warning","message":{"text":"application.New (cognitive 36): application.New has cognitive complexity 36 (threshold 15). Drivers by points: if/else 34, boolean chains 1, match/switch 1 (nesting depth added 10). Of this number, 29 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/application.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab1b1e141cf342ef008338afe69a11fc60f007427d46b1accf85ff576e9db47"}},{"ruleId":"D2","level":"warning","message":{"text":"main.initProject (cognitive 34): main.initProject has cognitive complexity 34 (threshold 15). Drivers by points: if/else 31, loops 2, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/init.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"737280d0dcb773f271cbab15496a742cf64895b296a2c65609e1b502a72c42ef"}},{"ruleId":"D2","level":"warning","message":{"text":"main.FetchSponsors (cognitive 33): main.FetchSponsors has cognitive complexity 33 (threshold 15). Drivers by points: if/else 29, loops 3, boolean chains 1 (nesting depth added 17). Of this number, 32 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sponsorkit/github.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"865e850c3ed46f767ba68ca2185036a53a5d4e002d44fd07a3960f709e329934"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.mergeVars (cognitive 33): Executor.mergeVars has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, loops 8, boolean chains 3 (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":"v3/internal/wake/exec/exec.go"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1fce64276b5a2a2b314667e54aa29d0d1c47c78f9f8578571bd9351fc17dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.resolveIncludes (cognitive 33): parse.resolveIncludes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, loops 11 (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":"v3/internal/wake/parse/parse.go"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3d197c61d66ab807c1620a4fb1667abd28918bf908bfb9cf467e5e0d298c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.GenerateBindings (cognitive 32): commands.GenerateBindings has cognitive complexity 32 (threshold 15). Drivers by points: if/else 28, boolean chains 2, match/switch 2 (nesting depth added 8). Of this number, 30 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/bindings.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0f6adb16866cc2ebc4a7a84d6f3b179a7faa9d311341bae10c931664bbb29f"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.verifyUpdaterArtifact (cognitive 32): commands.verifyUpdaterArtifact has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, boolean chains 2, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/updater_tool.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea7b5ec0c6d52f32d9e437c375d0f1d04672b0501bad6244aa758b77123330a"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceInfo.collectMethod (cognitive 32): ServiceInfo.collectMethod has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20, boolean chains 5, loops 4, match/switch 3 (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":"v3/internal/generator/collect/service.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef0a9088c0ead352adb028cdf315470f993cf63a46d5b93555ec0cdeb6ee5f9"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 31): main.main has cognitive complexity 31 (threshold 15). Drivers by points: if/else 30, boolean chains 1. Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 261, 279, 178, \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":"v3/examples/dialogs/main.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65ddeb7ade32dfbff3b9a64879ff48565ecaa9d12a08fc89436b27102a2287d"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.collectReport (cognitive 31): doctor.collectReport has cognitive complexity 31 (threshold 15). Drivers by points: if/else 28, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/doctor/doctor.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6ca355f83edf3c288e41a3b2d822f5d578cfa17c7e8f8ab7d9d558f0946c21"}},{"ruleId":"D2","level":"warning","message":{"text":"collect.isMarshaler (cognitive 31): collect.isMarshaler has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, loops 4, boolean chains 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":"v3/internal/generator/collect/predicates.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e42c702b160182ffafce7e6ca16b90f20696a7d5b9aa4d2e162790df283109"}},{"ruleId":"D2","level":"warning","message":{"text":"linuxSystemTray.run (cognitive 31): linuxSystemTray.run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 26, boolean chains 2, match/switch 2, loops 1 (nesting depth added 11). Most of this is not in the body itself: 10 of the 31 points are its own statements and the rest belongs to one function literal inside it that branches (line 392). 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":"v3/pkg/application/systemtray_linux.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"740db4774d71d82addf9929012f5242c04e8851b0f94f29f34558a5e56c7010f"}},{"ruleId":"D2","level":"warning","message":{"text":"Bindings.AddStructToGenerateTS (cognitive 30): Bindings.AddStructToGenerateTS has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, loops 5, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/binding/binding.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1c042771add5043327f274d14b38c68ea54e42dc80979b9591435f25423334"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsApp.wndProc (cognitive 30): windowsApp.wndProc has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, boolean chains 4, match/switch 3 (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":"v3/pkg/application/application_windows.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe55362e2021e3d410a002e0565a954d1345725d426b3d7360ce40b464225345"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.syncDirs (cognitive 29): commands.syncDirs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, boolean chains 2, loops 1, match/switch 1 (nesting depth added 7). Most of this is not in the body itself: 13 of the 29 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 50, 82). 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":"v3/internal/commands/bindings_sync.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b69281902ff47867147a6aaf086e8b3598d39292182cd1ef3356c62e512c556"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.Generate (cognitive 29): Generator.Generate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, loops 6, boolean chains 2 (nesting depth added 3). Of this number, 26 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/generate.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0a353a9a9d6409d2826f7c5d86b8b68b112372ea095bf04dd5c738c8bec546"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsSystemTray.run (cognitive 29): windowsSystemTray.run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, boolean chains 3 (nesting depth added 5). Of this number, 27 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"v3/pkg/application/systemtray_windows.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b2b5b2877ffc36b164cc7c8c776c85680a4b2fabf8ad13fd1dc32244474f71"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsWebviewWindow.routeNonClientInput (cognitive 29): windowsWebviewWindow.routeNonClientInput has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, boolean chains 5, match/switch 3 (nesting depth added 12). 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":"v3/pkg/application/webview_window_windows_nonclient.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5495862a09902880a9b256705f039324539d5bb85ddfa5f1f70399d8f6b529bc"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsNotifier.buildToastXML (cognitive 29): windowsNotifier.buildToastXML has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, loops 3, match/switch 2, boolean chains 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":"v3/pkg/services/notifications/notifications_windows.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"5583cd182746668d221f79fe2a6ad8341b60386dd2d7e2e2c0d3ff518bf956cc"}},{"ruleId":"D2","level":"warning","message":{"text":"w32.init (cognitive 29): w32.init has cognitive complexity 29 (threshold 15). Drivers by points: if/else 29 (nesting depth added 19). Of this number, 25 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":"v3/pkg/w32/theme.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c870ebc5990983315e3f138ca3f1234231b92d193109099bfd18050e4b2165"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSocketTransport.handleWebSocket (cognitive 28): WebSocketTransport.handleWebSocket has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, loops 2, match/switch 2, boolean chains 1 (nesting depth added 14). Most of this is not in the body itself: 13 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 167, 155). 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":"v3/examples/websocket-transport/transport_websocket.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"305cf77d67a64f57ad27f1cdaf5074a9c0de20a50608150fed4d9cfb8fb2dd31"}},{"ruleId":"D2","level":"warning","message":{"text":"assetFileServer.serveFSFile (cognitive 28): assetFileServer.serveFSFile has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26, boolean chains 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":"v3/internal/assetserver/asset_fileserver.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff3a11b1a3493b4769432d35de9d1813c2ab51d39a81022e06a0ac47530a403"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.generateMacAsset (cognitive 28): commands.generateMacAsset has cognitive complexity 28 (threshold 15). Drivers by points: if/else 25, match/switch 2, loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/icons.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d37cc9c586359330d01cdc7c8a93d1b8076025bbe108afcc450e0503aeaf130"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.Init (cognitive 28): commands.Init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28 (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":"v3/internal/commands/init.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46139d6a692bf0718cd803dc5a7025b0f50d5e3d34760324c81b136d77e08d3"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.renderReport (cognitive 28): doctor.renderReport has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, loops 7 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/doctor/doctor.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac45af70fa92265fbed051d8b1d14d5750943ab9b4a09b3e3b7edbff01ed419f"}},{"ruleId":"D2","level":"warning","message":{"text":"module.renderNamedDefault (cognitive 28): module.renderNamedDefault has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, match/switch 5, boolean chains 2 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/default.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae82e2f0efaeebe949b9105d70b7e3c86734e27776baae66dae97a2e0e573c63"}},{"ruleId":"D2","level":"warning","message":{"text":"module.renderNamedType (cognitive 28): module.renderNamedType has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, loops 3, match/switch 3, boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/type.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9831829686c04fd40cbfb98e45fd173cdef2eb09f96330c855b4e378bb71ee29"}},{"ruleId":"D2","level":"warning","message":{"text":"linuxWebviewWindow.run (cognitive 28): linuxWebviewWindow.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, boolean chains 2, loops 1, match/switch 1 (nesting depth added 3). Of this number, 26 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"v3/pkg/application/webview_window_linux.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"347adcabfe51200de9b65528ab9072248a9f701552dcf70116d123abdffb73da"}},{"ruleId":"D2","level":"warning","message":{"text":"dev.Application (cognitive 27): dev.Application has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25, boolean chains 2 (nesting depth added 6). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: 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":"v2/cmd/wails/internal/dev/dev.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"56692b52903478459050c4c47a4c1343d698edb3ce0c7d0a101381b663deb9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskCache.ShouldSkip (cognitive 27): TaskCache.ShouldSkip has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, loops 6, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/exec/cache.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"842523b661bdb34f7c8bcb672c096b5ece96164b31357de1821881a8374a7949"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsWebviewWindow.updateTheme (cognitive 27): windowsWebviewWindow.updateTheme has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24, boolean chains 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":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2ad3ca04d5d4888e78958a98e15af96ae59cdd012970f4593b63bfddb9b9e4"}},{"ruleId":"D2","level":"warning","message":{"text":"main.fetchMergedPRCounts (cognitive 26): main.fetchMergedPRCounts has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, loops 3, 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":"tools/sponsorkit/contributors.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5c15517b1838302a9b983149312d77b4cf6e9ac857cbc69443b6c43b13272a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.updateToVersion (cognitive 26): main.updateToVersion has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/update.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d04f6d75822b267d4d4785d62d44a4fda5269b3f553dca22ac8f2dae924a574"}},{"ruleId":"D2","level":"warning","message":{"text":"staticanalysis.GetEmbedDetailsForFile (cognitive 26): staticanalysis.GetEmbedDetailsForFile has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 7, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/staticanalysis/staticanalysis.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db293649f3c74dd0b8350785ad531ef23d04954b6dae02bb6e386b04e7045fa"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.ParseContent (cognitive 26): Parser.ParseContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, match/switch 3, boolean chains 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":"v3/internal/changelog/parser.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"830da79ad3c17731fdad2b26489eeb99128e39821efb2459fb5878d7545de954"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.UpdateCLI (cognitive 26): commands.UpdateCLI has cognitive complexity 26 (threshold 15). Drivers by points: if/else 25, 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":"v3/internal/commands/update_cli.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"294da6a386c92e7feff4510935a890506664424bdf1f82f486cd38af48025e12"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.updateToVersion (cognitive 26): commands.updateToVersion has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/update_cli.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc11de944c7d69b877fa6e4cc7eeb3ce3efb135f222fe14f8d9a47e599509814"}},{"ruleId":"D2","level":"warning","message":{"text":"setupwizard.checkGo (cognitive 26): setupwizard.checkGo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, boolean chains 4, loops 3 (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":"v3/internal/setupwizard/wizard_linux.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffe838bf9c2415718eda780d8fc40e13f00fb7c86ed308d2237aa33592535d7"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPTransport.processBody (cognitive 26): HTTPTransport.processBody has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26 (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":"v3/pkg/application/transport_http.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfab0b07b9ef25bd3d36d684628f71335260c475c71ef533d3ed8692bb69355"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.Download (cognitive 26): Provider.Download has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, boolean chains 4, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/providers/endpoint/endpoint.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"76acfafa0204b416c150fcb558383c9b0af1c34dadb7b5c7fb701024022e583e"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.UpdaterManifest (cognitive 25): commands.UpdaterManifest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 24, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/updater_tool.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d936f33d4c59fa550df60b6be2f3e15b98038f9bcb34f0eea8312e354fe19780"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.parseCmds (cognitive 25): parse.parseCmds has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, loops 4, match/switch 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/parse/parse.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7dce10db73f40d06e1b2b3ca0a4c810c0403da916d24f6d0be7890ad9ef788"}},{"ruleId":"D2","level":"warning","message":{"text":"wake.executeParallel (cognitive 25): wake.executeParallel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, loops 11 (nesting depth added 14). Of this number, 19 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":"v3/internal/wake/wake.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4f21cc23756f7e04a0a19853f0588682cf69605cadbfc77ee727d146fec435"}},{"ruleId":"D2","level":"warning","message":{"text":"linuxNotifier.notify (cognitive 25): linuxNotifier.notify has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, loops 2, boolean chains 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":"v3/pkg/services/notifications/notifications_linux.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f85caf63b47a0bf42cfe8b4d96de6d94fca369186e7f2dd44267d7b88b7dbeb"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.Download (cognitive 25): Provider.Download has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/providers/keygen/keygen.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed39e2973c9f4d2b1d89bb5cc3a0ca8d2a004f0376151cc91922e49b3742e760"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeScriptify.getJSONFieldName (cognitive 24): TypeScriptify.getJSONFieldName has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 4, 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":"v2/internal/typescriptify/typescriptify.go"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"396d477a7b21ea77f6c364afe2070bd0934e92480fa1f066df238bf8ca1936cb"}},{"ruleId":"D2","level":"warning","message":{"text":"build.Build (cognitive 24): build.Build has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, loops 3, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/commands/build/build.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1cbdb57285b0497d24737c9a6ff04632291a1ce2f22aae0ab42a2a74a9862a"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.checkAndroid (cognitive 24): doctor.checkAndroid has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/doctor/doctor_common.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc11175f710a8038305b5e10ce1d021a3687a259445405030ca6a32794f7ebce"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.generateIncludes (cognitive 24): Generator.generateIncludes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, match/switch 2, boolean chains 1, loops 1 (nesting depth added 12). Of this number, 12 points are the body\u0027s own statements and 12 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/includes.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae6af4ed9306d64c791adb887d9f13dfcf462d020501d6a7e2ebb5228abf951"}},{"ruleId":"D2","level":"warning","message":{"text":"setupwizard.checkJDK (cognitive 24): setupwizard.checkJDK has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard_mobile.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa66ecb5840be43c6f530102340689a1e36d97ca6b1d56f79a9696827f042119"}},{"ruleId":"D2","level":"warning","message":{"text":"setupwizard.refreshPath (cognitive 24): setupwizard.refreshPath has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, 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":"v3/internal/setupwizard/wizard_windows.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"86418fe93ba65db222bd5bcfc8944272ff03ac519f173af9f6e4b0c827161140"}},{"ruleId":"D2","level":"warning","message":{"text":"Wizard.pullViaDockerCLI (cognitive 24): Wizard.pullViaDockerCLI has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, boolean chains 4, loops 2, match/switch 2 (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f83e38d933cc54537dd0faf5b98ca211522a5f7ae564302e51f4a862ed929e"}},{"ruleId":"D2","level":"warning","message":{"text":"Wizard.handleGPGCreate (cognitive 24): Wizard.handleGPGCreate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, 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":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"3226f57625a0901d48ad7018dd1ad990d7477e90a40ff85e9985b505ceebfd19"}},{"ruleId":"D2","level":"warning","message":{"text":"wake.Execute (cognitive 24): wake.Execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, boolean chains 2, loops 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, 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":"v3/internal/wake/wake.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"481fe6349851d788e79e2d728aac382cf434ad19c82d930661930bb8bde64988"}},{"ruleId":"D2","level":"warning","message":{"text":"updater.runHelperSwap (cognitive 24): updater.runHelperSwap has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/helper.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6d8b0495f40feea48a9c174778091080c83daa7f6bfe07ed924c964c29aabd"}},{"ruleId":"D2","level":"warning","message":{"text":"Chromium.initializeController (cognitive 24): Chromium.initializeController has cognitive complexity 24 (threshold 15). Drivers by points: if/else 24 (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":"v3/internal/webview2/pkg/edge/chromium.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8167018df2eacbdabb2ae2a79a39e2fb9a69d6c5c9930faee00cfbaeefc073e"}},{"ruleId":"D2","level":"warning","message":{"text":"packagemanager.Dependencies (cognitive 23): packagemanager.Dependencies has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 3 (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":"v2/internal/system/packagemanager/packagemanager.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9a34dbc8031a434342fda9ed2a90147a4bf42afbd8d150a07294d6fbbc29c0"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetServer.ServeHTTP (cognitive 23): AssetServer.ServeHTTP has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, match/switch 2, boolean chains 1 (nesting depth added 7). Of this number, 19 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":"v2/pkg/assetserver/assetserver.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5faef547cf9e1b4159ad16168f2b52685dc9e010ac801c9709767863f7671c5"}},{"ruleId":"D2","level":"warning","message":{"text":"build.GenerateNSISInstaller (cognitive 23): build.GenerateNSISInstaller has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/commands/build/nsis_installer.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c6a31979bf5374d25ea1389a1cf6be3b09d908cb91e0dee3d0abf2efdfe5a4"}},{"ruleId":"D2","level":"warning","message":{"text":"packagemanager.Dependencies (cognitive 23): packagemanager.Dependencies has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 3 (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":"v3/internal/doctor/packagemanager/packagemanager.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7c97de4ce501398ab39694e30b78ea809aeea12749fe69d3af1d40e6c5288a"}},{"ruleId":"D2","level":"warning","message":{"text":"generator.GenerateConstants (cognitive 23): generator.GenerateConstants has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, loops 9, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/constants.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"27eb3d9e4109eebc6b30664410e543a43182d1cb2d0cd3b1eb49cc93432dbdc4"}},{"ruleId":"D2","level":"warning","message":{"text":"module.needsCreateImpl (cognitive 23): module.needsCreateImpl has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, match/switch 6, boolean chains 2, loops 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/create.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"462931ea9e5e50886676329ef8b59c11853ce118795cbaef73e4333ca65ba9c3"}},{"ruleId":"D2","level":"warning","message":{"text":"packagemanager.Dependencies (cognitive 23): packagemanager.Dependencies has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 3 (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":"v3/pkg/doctor-ng/packagemanager/packagemanager.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db4666d4a04a52c560d6419f53597067a3c6c300376aa0d4700d49fc6f1f3ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.Download (cognitive 23): Provider.Download has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 4, 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":"v3/pkg/updater/providers/appcast/appcast.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ff8eea7a960165695159eb191f2f1572add09e461f1f7a376c9a1fa0bcdb32"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.Download (cognitive 23): Provider.Download has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 4, 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":"v3/pkg/updater/providers/github/github.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d6e18ee26d45d79e5b22aa7a0b52f9409d49757a3a986b51f6cba9fe1ab5a7"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsSystemTray.wndProc (cognitive 23): windowsSystemTray.wndProc has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, match/switch 3 (nesting depth added 14). 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":"v3/pkg/application/systemtray_windows.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"af04cfeb2e4d6d10cbb28ed97c00bb98e3e4faac40563738ff931e71fcf4bc9c"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsWebviewWindow.processMessageWithAdditionalObjects (cognitive 23): windowsWebviewWindow.processMessageWithAdditionalObjects has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, loops 2 (nesting depth added 13). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/webview_window_windows.go"},"region":{"startLine":2778}}}],"partialFingerprints":{"codehealthFindingId/v1":"0932201b06b5def6e482580109ecfbed828cea7ff9d7a048df5cce6d748c7179"}},{"ruleId":"D2","level":"warning","message":{"text":"fs.CopyDirExtended (cognitive 22): fs.CopyDirExtended has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/fs/fs.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a68519f139a3b893d20d0d536a6d93d5b325975f171917e0a3a4aaf60ad7ac"}},{"ruleId":"D2","level":"warning","message":{"text":"assetHandler.serveFSFile (cognitive 22): assetHandler.serveFSFile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/assetserver/assethandler.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cddee5d1d02645b3e63eeb2fb7f7913f19a59b57e788d01a22121a9f56d8a05"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.GenerateBuildAssets (cognitive 22): commands.GenerateBuildAssets has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/build-assets.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccb7e1b572de300d7235499a370cbeaa525efc7e1849816ae3d605ec4351e7f"}},{"ruleId":"D2","level":"warning","message":{"text":"PackageInfo.Index (cognitive 22): PackageInfo.Index has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, loops 2 (nesting depth added 7). Of this number, 12 points are the body\u0027s own statements and 10 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":"v3/internal/generator/collect/index.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e6d6907f92d148fefa92fae4c31a9eb7a91bc9c8ff8977aa74d8ef814f3bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceInfo.Collect (cognitive 22): ServiceInfo.Collect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, match/switch 5, loops 4 (nesting depth added 12). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 109). 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":"v3/internal/generator/collect/service.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34e152fee6d84ef55b794af2ec5b9727883df10833ef2b603e59b940400c35a"}},{"ruleId":"D2","level":"warning","message":{"text":"cmds.parseGoBuildArgs (cognitive 22): cmds.parseGoBuildArgs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, 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":"v3/internal/wake/cmds/shell.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ca86574b7055cace8faa10328273ee6ce831f0502e130f64a911e09a0a5a60"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.ExpandTemplates (cognitive 22): parse.ExpandTemplates has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 4, loops 3 (nesting depth added 5). Of this number, 12 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/parse/expr.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70ed0e76f0eaabd14cd50a63932d916fdee5d859a469b999c651fe0c88c8f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Model.Update (cognitive 22): Model.Update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, match/switch 3, boolean chains 2 (nesting depth added 13). 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":"v3/pkg/doctor-ng/tui/model.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e9c676c32bdad7c2ce89c1da6f5327345015a2d51520e6e2da50705b4b5c6d"}},{"ruleId":"D2","level":"warning","message":{"text":"updater.extractZip (cognitive 22): updater.extractZip has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 2, match/switch 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/extract.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"418fb8579f28e644dff6f1e4a93f5f3ea52a0347a29b30cc7f211b0a50914a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.Check (cognitive 22): Provider.Check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 2, loops 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/providers/endpoint/endpoint.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f35751b6e50e13e54abdaa9c279b2e60da80691658ef9f2af5237b28d4c0a52"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 22): main.main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, 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":"v3/scripts/validate-changelog.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ad44783341ee097965a754bf415c86d128fbe4fda034794855e689bdbdeb6d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.update (cognitive 21): main.update has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (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":"v2/cmd/wails/update.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e6db45fbc7a753b727dd001ced1430cb1b8acf6209839097a723d87b72fcc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenService.ProcessExampleScreens (cognitive 21): ScreenService.ProcessExampleScreens has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, loops 1 (nesting depth added 9). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/examples/screen/screens.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f71d70a961fd48911d25bd61aba3018fb781ec0467159338eee4296b3ae0b1"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.GenerateSyso (cognitive 21): commands.GenerateSyso has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, boolean chains 1 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: 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":"v3/internal/commands/syso.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ecefd6962a49f2bbadf1b12c3b210ef6d16cd72fdd574d5f179a4f38fd1439"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.ToolDockerMounts (cognitive 21): commands.ToolDockerMounts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/tool_docker_mounts.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f89c24d79ec821569b98ad897bf2462dd797d245a3dbcb8bcc2fdfc00f36fe"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.runForLoop (cognitive 21): Executor.runForLoop has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, 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":"v3/internal/wake/exec/exec.go"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c04bb46e67922d481f1c2e87bb7fadd2e5dbc99b8565cf05187536087bdbc8"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.parseFor (cognitive 21): parse.parseFor has cognitive complexity 21 (threshold 15). Drivers by points: loops 9, if/else 8, match/switch 4 (nesting depth added 14). 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":"v3/internal/wake/parse/parse.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6288fa466b753743e8e0b67f2b30f4d13d2a02470e5ee00120053e86723ed7f"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 21): main.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, match/switch 2, boolean chains 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":"v3/tasks/release/release.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bf58a8dc88b852d645e51a1ac8b08f141914a514956f3074145eb58cbd51a6"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsSystemTray.positionWindow (cognitive 21): windowsSystemTray.positionWindow has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 4, 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":"v3/pkg/application/systemtray_windows.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"078d1c2dfa1126617c53aaed817a2e38bd044a6babbb6693d4c55419bf10b1c2"}},{"ruleId":"D2","level":"warning","message":{"text":"main.generateTemplate (cognitive 20): main.generateTemplate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/generate.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c3103a1241264d9d147f6ea66469c40e19c61af16dba2e95da5a015a2eac4d"}},{"ruleId":"D2","level":"warning","message":{"text":"fs.CopyDir (cognitive 20): fs.CopyDir has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, 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":"v2/internal/fs/fs.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6de5750740f7c45a162a41c89daba1329dfa935e1f0ff2eb88b19acc78c323b"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.IOSXcodeGen (cognitive 20): commands.IOSXcodeGen has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/ios_xcode_gen.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9512a97c9c80959e07856956a36c4909e2a1e4bd341fd71846ac43197cd41c69"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.UpdaterVerify (cognitive 20): commands.UpdaterVerify has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, 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":"v3/internal/commands/updater_tool.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf7aca7581b4edbd41b69829379f292928802ce15526644dc8a3b20d3f7c696"}},{"ruleId":"D2","level":"warning","message":{"text":"generator.resolveTargetPackageName (cognitive 20): generator.resolveTargetPackageName has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/binding_ids.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45e4da63c9818e792f9f07a890ee75e822ec20dc2ce43d6fe9f598b49570f7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Renderer.Models (cognitive 20): Renderer.Models has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 5, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/generator/render/renderer.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f514a7ef6cd0f246128d9b98c26be477ee2f300eef275c8f051eb93600975ae"}},{"ruleId":"D2","level":"warning","message":{"text":"s.splitShell (cognitive 20): s.splitShell has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, match/switch 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/s/s.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bfe4c46c08ce0a3480750ba9d736c7fc0dbed05d2aae459997ef1c7eab3cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"cmds.parseGoTestArgs (cognitive 20): cmds.parseGoTestArgs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, 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":"v3/internal/wake/cmds/shell.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7e51744c9f4957f26d8ffb0efba75e15c03925ea92d2df7d54de323e5213f7"}},{"ruleId":"D2","level":"warning","message":{"text":"exec.isUpToDate (cognitive 20): exec.isUpToDate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 6, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/exec/runner.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecaa13c803edffba9ec593bf2f5f64e2a035e2655adb8d32cb69333a1304cc0"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.Parse (cognitive 20): parse.Parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, match/switch 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/parse/parse.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"570d979719c9cab56e521316998e2e1b52dc30f80fc7a5de78d34a4561896053"}},{"ruleId":"D2","level":"warning","message":{"text":"WebviewWindow.HandleMessage (cognitive 20): WebviewWindow.HandleMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, match/switch 1 (nesting depth added 11). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"v3/pkg/application/webview_window.go"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58d78c1ad935cc59c5e4a14fe772228bfab7794153caa269b6147b342d775fa"}},{"ruleId":"D2","level":"warning","message":{"text":"updater.copyTree (cognitive 20): updater.copyTree has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, 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":"v3/pkg/updater/helper.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5530c52e0fd579c303c376dd43321fef9a0e49133305d5193486a00f5d2656c5"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer.sponsor (cognitive 19): renderer.sponsor has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sponsorkit/render.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6e093dcc6445cad7f10e0ceaadf341a5fdceff6d6e520641ee02aa75433408"}},{"ruleId":"D2","level":"warning","message":{"text":"Project.setDefaults (cognitive 19): Project.setDefaults has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/project/project.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abb36d81af8a31d0083e94fe312b1de9bb60bcd1660221d03e7735b8f25f912"}},{"ruleId":"D2","level":"warning","message":{"text":"typeScriptClassBuilder.AddMapField (cognitive 19): typeScriptClassBuilder.AddMapField has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/typescriptify/typescriptify.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"98eec315858497dea3134022ce9c860d6603cf47e00ab829502c04bd77d41704"}},{"ruleId":"D2","level":"warning","message":{"text":"build.SyncFrontendDistToEmbedTarget (cognitive 19): build.SyncFrontendDistToEmbedTarget has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, loops 2 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/pkg/commands/build/build.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dd94b458aa4e9f4de42271db6a8df4ac84d47ab6c4fd4dab4bf9ec59fa2120"}},{"ruleId":"D2","level":"warning","message":{"text":"build.executeBuildHook (cognitive 19): build.executeBuildHook has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"v2/pkg/commands/build/build.go"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"65324307a5accb16ced8959ee0931b530a41a357d1ec435052efeab3a9b565f9"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.generatePGPKeyForSetup (cognitive 19): commands.generatePGPKeyForSetup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, loops 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":"v3/internal/commands/signing_setup.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"1997e6fa98d566bebeca65d7f5e289a980db98a7d1834ffaca371a40be749488"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.ToolPackage (cognitive 19): commands.ToolPackage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/tool_package.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d335189a65ad3b21d30cb31275de9b66c01c05e9b0b9e26bf450ace440de415"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.collectUpdaterArtifacts (cognitive 19): commands.collectUpdaterArtifacts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 3 (nesting depth added 10). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/updater_tool.go"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d24867c786182a736e075921d17e42ed3999e940cb9c4ede9795d25efcfe79"}},{"ruleId":"D2","level":"warning","message":{"text":"Reporter.writePanelLocked (cognitive 19): Reporter.writePanelLocked has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 3, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"v3/internal/report/pulse/summary.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fb9d3d72efeb75e9179a875687251107330b5a016093351f731713a7ccaa49"}},{"ruleId":"D2","level":"warning","message":{"text":"templates.GenerateTemplate (cognitive 19): templates.GenerateTemplate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/templates/templates.go"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d747a593152bf68076aec0391505734a00380e5e5a14e92ef41ef00304829f4"}},{"ruleId":"D2","level":"warning","message":{"text":"wake.filterTaskNamespaces (cognitive 19): wake.filterTaskNamespaces has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/wake.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d391b91b5276913677fce70b8642227c54047e09743b8d2cca5a15a0de8de19"}},{"ruleId":"D2","level":"warning","message":{"text":"application.changedLinuxWindowStateEvents (cognitive 19): application.changedLinuxWindowStateEvents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"v3/pkg/application/webview_window_linux.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c698af7ad25b9e3f75234b9bca53547992782414167241eaecec507dd21a41"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsDialog.show (cognitive 19): windowsDialog.show has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, 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":"v3/pkg/application/dialogs_windows.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b98589f475d3cce80a0b522dc7179bcdab5ad3cc0ca3da9ceddd7d0be5bcf7"}},{"ruleId":"D2","level":"warning","message":{"text":"w32.ComInvoke (cognitive 19): w32.ComInvoke has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 3, match/switch 3, boolean chains 1 (nesting depth added 8). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/w32/utils.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"649562a2ee1fa2bdde4f0fbae4cc07b72d0da9acf7d579ca07f06b75b7fb56cc"}},{"ruleId":"D2","level":"warning","message":{"text":"stdoutScanner.Write (cognitive 18): stdoutScanner.Write has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/cmd/wails/internal/dev/stdout_scanner.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b90d5046887fe3070142f54a8c15abce367c8d2f7efc45cc035dc5b3f3baa7"}},{"ruleId":"D2","level":"warning","message":{"text":"Bindings.hasExportedJSONFields (cognitive 18): Bindings.hasExportedJSONFields has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2/internal/binding/binding.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5799510eae6fb87bbf40e0de46eaae2774d0211941cedf55733eb33bfe200a97"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseBuilder.BuildFrontend (cognitive 18): BaseBuilder.BuildFrontend has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"v2/pkg/commands/build/base.go"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfda5c5c3917a1c3d4a7ad37d589d399ea60a63bb5065a0d0e3d3495dfbae18a"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetServer.processWebViewRequestInternal (cognitive 18): AssetServer.processWebViewRequestInternal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 3. Of this number, 16 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/assetserver/assetserver_webview.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0b447bc262a75cedcedbdf3f65734e07e2e89bbf126748fba703fa8a4179a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangelogEntry.FormatForChangelog (cognitive 18): ChangelogEntry.FormatForChangelog has cognitive complexity 18 (threshold 15). Drivers by points: loops 12, if/else 6 (nesting depth added 6). 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":"v3/internal/changelog/parser.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfb598dba802d6ef3fceb603c6b38bf05bbca29db2aa3a718efb71ee2543142"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangelogEntry.FormatForRelease (cognitive 18): ChangelogEntry.FormatForRelease has cognitive complexity 18 (threshold 15). Drivers by points: loops 12, if/else 6 (nesting depth added 6). 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":"v3/internal/changelog/parser.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2f79fa3e569d4b1afebd87a2f61cc9b5d7d0d30eb24ecbbbd7281a8e20d959"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.loadIOSProjectConfig (cognitive 18): commands.loadIOSProjectConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/ios_xcode_gen.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca7dadc2a2a146c2b4ab285a91ed9446ba75be04092986d31fe77dd325d48ca"}},{"ruleId":"D2","level":"warning","message":{"text":"fileexplorer.ParseDesktopReader (cognitive 18): fileexplorer.ParseDesktopReader has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"v3/internal/fileexplorer/desktopfile.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eec3aa682bc8e57769ca1df8cc525c0801ec9294a133c256655afb7a2e2da85"}},{"ruleId":"D2","level":"warning","message":{"text":"module.renderMapType (cognitive 18): module.renderMapType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 3, 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":"v3/internal/generator/render/type.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36cc1024e99eb9471c38c3885130ca16db38f3ce39db408e042c0ae3b9b12b6"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.parseTask (cognitive 18): parse.parseTask has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/parse/parse.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4aafb4ca9a95034f391cfc24393609e703b8318fdf5a3da54cdcacc5a23a89"}},{"ruleId":"D2","level":"warning","message":{"text":"application.getMethods (cognitive 18): application.getMethods has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, 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":"v3/pkg/application/bindings.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fab91d57dc9bd2e65aebc25c994a46048b8ad5f00f1615689d494ef5a03b1bf"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Run (cognitive 18): App.Run has cognitive complexity 18 (threshold 15). Drivers by points: loops 9, if/else 8, boolean chains 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 592). 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":"v3/pkg/application/application.go"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bc456e4f7e09132617659850f3bd758c0fab57d785eb1615a2384469892059"}},{"ruleId":"D2","level":"warning","message":{"text":"doctorng.collectGPUs (cognitive 18): doctorng.collectGPUs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/doctor-ng/hardware.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb5739c0c45f771a01387220988d60da40882369d868934d753c9de7b832f77"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.Check (cognitive 18): Provider.Check has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/updater/providers/keygen/keygen.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0df7955e299b2b1c0bfe1b72d643735aa30c7b6f9a711b72ea4047709645cad"}},{"ruleId":"D2","level":"warning","message":{"text":"main.createGitHubRelease (cognitive 18): main.createGitHubRelease has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"v3/tasks/release/release.go"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccfd0db43e8e1002122f52970ff283da6a5ec6605d470943d807840b9afafdd"}},{"ruleId":"D2","level":"warning","message":{"text":"main.changelogMentions (cognitive 17): main.changelogMentions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 2 (nesting depth added 8). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sponsorkit/contributors.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c2ce7f2eb1d9e3b246319e0ab084f5a230972c2bb582dd96f27ab7de947cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"gomod.SyncGoMod (cognitive 17): gomod.SyncGoMod has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (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":"v2/cmd/wails/internal/gomod/gomod.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50d66d08d2a512e976c0ef89ae0f64ed0e8849c82849bcce7302a551ee80b0e"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.generateAppImage (cognitive 17): commands.generateAppImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, loops 1, match/switch 1 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, 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":"v3/internal/commands/appimage.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"91510aedabbe157d6ddf43c4556de6c2c5a114152c33aed36626534fc29d0f7b"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.findGTKFiles (cognitive 17): commands.findGTKFiles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 4 (nesting depth added 6). Of this number, 10 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/appimage.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b18fe3ac059ebd16e76b174f02eaa53d6af2b92e2468cac2e7df85e4b5b9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.resolveSigningDefaults (cognitive 17): commands.resolveSigningDefaults has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/commands/sign.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e2aa582873536e919e55c13a0c2bb98c64c31caa5c769783370ebe8fad801e"}},{"ruleId":"D2","level":"warning","message":{"text":"Reporter.writePhaseBarLocked (cognitive 17): Reporter.writePhaseBarLocked has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 5, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/report/pulse/summary.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c832d0d005bbfa4e7e03ae43ef6e74dce76e8aa747edb8a6dc7ec8c9c975963"}},{"ruleId":"D2","level":"warning","message":{"text":"setupwizard.checkWebView2 (cognitive 17): setupwizard.checkWebView2 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, 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":"v3/internal/setupwizard/wizard_windows.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"971aa2f2126793465f6e33d5f449f53b7fe59eebc4ed2f9a540b6c19d135447e"}},{"ruleId":"D2","level":"warning","message":{"text":"Wizard.handleNotarizeCreate (cognitive 17): Wizard.handleNotarizeCreate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e4f6ae6ef5c2356a158eb032c4d276a1dbf869b5e3f64004b5dbe89b7604fb"}},{"ruleId":"D2","level":"warning","message":{"text":"templates.parseTemplate (cognitive 17): templates.parseTemplate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/templates/templates.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f0a5a74125c3fece10a47839d7c09fc21830c9823f8dea9e3c1e423bc384c0"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.MergeTask (cognitive 17): resolve.MergeTask has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/wake/resolve/merge.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac04341997b0596cbd80615ab8acda4252eb0fec271baf916129211f0df5a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"Info.discover (cognitive 16): Info.discover has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 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":"v2/internal/system/system_linux.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8c0ccd3a09cb53be11f2b03118a62caf9fdf5b3691b0386b79ae2ce60d0f4"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeScriptify.AddEnum (cognitive 16): TypeScriptify.AddEnum has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"v2/internal/typescriptify/typescriptify.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"768aa5c5a5323e9b70285531dc5d7cc2852229aea1ef5d6e9aa6cf9b76710134"}},{"ruleId":"D2","level":"warning","message":{"text":"assetHandler.ServeHTTP (cognitive 16): assetHandler.ServeHTTP has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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":"v2/pkg/assetserver/assethandler.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e544bed648dc1910d1ceeb1a9bcbde7137347ba3d00923eb150aeae95bac1951"}},{"ruleId":"D2","level":"warning","message":{"text":"build.CreateEmbedDirectories (cognitive 16): build.CreateEmbedDirectories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"v2/pkg/commands/build/build.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"616d8d9740e939fbdb30cf1cbe9a14a6ea7d065c1d38951bcae4bc4b7eafb15f"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseBuilder.OutputFilename (cognitive 16): BaseBuilder.OutputFilename has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"v2/pkg/commands/build/base.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf982113f3793ded8846a22191677b0687a3637191646bf0ef27dfe3172f6c7"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseBuilder.NpmInstallUsingCommand (cognitive 16): BaseBuilder.NpmInstallUsingCommand has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"v2/pkg/commands/build/base.go"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"438927ffe6a8b0bcd022fc4065c4bcfeab28f0bd97b5332d83654f3e32d0551f"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 16): main.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1. Of this number, 11 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/examples/window/main.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a49d825c711bc6ca7d7308fdce6578b309d362d1c8784dff6d64d9dc8a85e2"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.getDefaultGPGKey (cognitive 16): doctor.getDefaultGPGKey has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (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":"v3/internal/doctor/signing.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5430e6882632d1794e9e355d339a64e1e303c6c9f074a141bd144bebf223719e"}},{"ruleId":"D2","level":"warning","message":{"text":"Nixpkgs.PackageInstalled (cognitive 16): Nixpkgs.PackageInstalled 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":"v3/internal/doctor/packagemanager/nixpkgs.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"961bee8270eb567cc6e0f518fec0acde9650aaa00d0c83904724d666cf947085"}},{"ruleId":"D2","level":"warning","message":{"text":"Reporter.writeSlowestLocked (cognitive 16): Reporter.writeSlowestLocked has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/report/pulse/summary.go"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e950172d9ee7d720ea462db5135604d79333041e956088803c4b878ea987205"}},{"ruleId":"D2","level":"warning","message":{"text":"pullParser.calculateProgress (cognitive 16): pullParser.calculateProgress has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/setupwizard/wizard.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd25721521d6c0c14830b9166bf37ab0e115f3699edeff96de2d4919c8ee925"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.resolveDepVars (cognitive 16): Executor.resolveDepVars 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":"v3/internal/wake/exec/exec.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f081fcf2f7ca8aa44b78af04e84b03b174c7da679a1666b87521ef47a06d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"override.LoadLocal (cognitive 16): override.LoadLocal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"v3/internal/wake/override/override.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"004091acd883d9c2d3903507c3eb8781aa8080cce30824461d2eddf6a9151039"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.parseDeps (cognitive 16): parse.parseDeps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 4, match/switch 4 (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":"v3/internal/wake/parse/parse.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"08849c0393ad00e281873159b9457e709926cc1c1597020a64af97734aed358d"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenManager.deIntersectScreens (cognitive 16): ScreenManager.deIntersectScreens has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 7, boolean chains 1 (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/screenmanager.go"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"218e2b736af747b14ff2bdb1f460ca89f57d5e76f80aaef149a3fc3ad72ecb9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenManager.screenNearestRect (cognitive 16): ScreenManager.screenNearestRect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/screenmanager.go"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bcc09424cf3bf287d94d9674d9df026077d3eb75bc30a6f8df049447fa5161"}},{"ruleId":"D2","level":"warning","message":{"text":"Nixpkgs.PackageInstalled (cognitive 16): Nixpkgs.PackageInstalled 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":"v3/pkg/doctor-ng/packagemanager/nixpkgs.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"59990ea64162b2038b6159a6c96df02c38473ac49f7ea3dd812dc7a72c909e97"}},{"ruleId":"D2","level":"warning","message":{"text":"combridge.new (cognitive 16): combridge.new has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/internal/webview2/pkg/combridge/bridge.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ac0455d059d18e4e16b309e70b12024f4eaeae89b61008776b303a98fa2793"}},{"ruleId":"D2","level":"warning","message":{"text":"windowOpenFileDialog.show (cognitive 16): windowOpenFileDialog.show has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v3/pkg/application/dialogs_windows.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"509adf4868927cd833d5530b39b7d454f8ebb4ffbd541625c563720572af75a7"}},{"ruleId":"D2","level":"warning","message":{"text":"windowsDock.SetCustomBadge (cognitive 16): windowsDock.SetCustomBadge has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 5). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 133). 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":"v3/pkg/services/dock/dock_windows.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fd5ab099437ad704e40d49f5216885bf8157bdd14820c7f56ff9f85ac2420e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): tools/sponsorkit/render.go:257-270 | tools/sponsorkit/render_contributors.go:162-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/sponsorkit/render.go:257\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":"tools/sponsorkit/render.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f5d38d54b489e472f21bf8be859e4d152b7e8e1f196ec817d1c57e376259ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): tools/sponsorkit/contributors.go:275-286 | tools/sponsorkit/github.go:103-114 \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 \u0060tools/sponsorkit/contributors.go:275\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":"tools/sponsorkit/contributors.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"acce82c8ee9311809711fda12cfe0e7f96499509ad966bfba19c0f57f99e962f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/sponsorkit/contributors.go:290-297 | tools/sponsorkit/github.go:119-126 \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":"tools/sponsorkit/contributors.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85184641159d952faaff08c3429c49a2b1ad979576e5bcf844bd84851eca985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/sponsorkit/render.go:76-83 | tools/sponsorkit/render_contributors.go:119-125 \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 \u0060tools/sponsorkit/render.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. 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":"tools/sponsorkit/render.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19174dd7a544863710b835d1efea76a7a239aefc010fbb5f6ba14b8cea4f2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tools/sponsorkit/render.go:297-301 | tools/sponsorkit/render_contributors.go:203-207 \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 \u0060tools/sponsorkit/render.go:297\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":"tools/sponsorkit/render.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f767edb18c95b1089bb8893e5c4f7715053b998e8152171250f9458a94fac912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tools/sponsorkit/render.go:356-360 | tools/sponsorkit/render_contributors.go:249-253 \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 \u0060tools/sponsorkit/render.go:356\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":"tools/sponsorkit/render.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"04324acc4e910f8751cb59bac20d8173c222d520c9b9dbe5ffb9cf9797559e5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: webview2/pkg/edge/chromium.go: webview2/pkg/edge/chromium.go changed 4 times in last 90 days, max complexity 18. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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":"webview2/pkg/edge/chromium.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14fd0216fab5ec0d4c8087dc9cf747a639afd125bdae225d3a287346a1dbb48"}},{"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: tools/sponsorkit/render.go, tools/sponsorkit/config.go, tools/sponsorkit/avatar.go, tools/sponsorkit/main.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"17bdc186fe8189cc4d31c0db87ea5617260d4122072de8c8ef1aa5c37872020d"}},{"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":"a0f722e4f4b27fc3fdaad9dd2c971255b792097debb578cb3c744063ae7d8c75"},"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":"338b9d4030522ceee5c784cb801fa7d8ac26712e17797ff6b479259edb69b8a6"},"taxa":[{"id":"CWE-78","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":"442503b4b11943d055f5e4fc82cdf1a5e72f044f7a3a58e11c243ad1315bac86"},"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":"5c591f840cf097b8b66774ac172c14dfecb74216fed0f2fd78efbbbf7a92547e"},"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":"1f6d460023e2e7b3dc7dd219c19c34e80ca1e6510f406130653ce8d67bbad3de"},"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":"45e5e763f9231f95a28874b1bf88973082f8bf838e37ace4dcc3bc945a0a3a4d"},"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":"9ef278c4b37e4a91d2697edc1f78257e3d2358dea731dc7d9fd371da7ebb86e4"},"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":"2b41ced869d13ebb60aada5347d45b69a41b0f33663fc282eb5ca277126fa28c"},"taxa":[{"id":"CWE-78","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":"9a5e394f28ebcd7e09c7903e5555e57dfa9dc3d290b3b7781b72fc1d51b4cf0a"},"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":"b3b1ae37e428af600b39d5e6196c80d80e87adc04bb3686eb58bc5227498d55d"},"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":"6d4854d5304f4d6f74511041fa6a63162e56633590222adaba9cb53cf974d00d"},"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":"24c7d71879295355bc2a12573769e5e5660d5c0900c2620f7fa13b1500981e9a"},"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":"7080fa833762ea784363de65af93e4b09004e71d93089872e4b6e8e8990581e6"},"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":"f6450e9cf40e2b3ca1ec9ca851982486e09dd480adda4be18286207aace1adba"},"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":"f65cdd78ccc4211b63eb4420157ee6284133a4e4738d5072b1248bf1b866b765"},"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":"bec628ffda8b49530fc83a80c8998f46d82fd803e12d7873087791221f196e55"},"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":"373fa6ffcacd7cd78213c8ab302cd920e2f616d06a0efb5c4e08419a5e0f2b98"},"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":"d4f8d0bfdfbe3167a3692e79d0de9803d20d74f7dff690f1f6452fbdd11572ce"},"taxa":[{"id":"CWE-78","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":"b4789d85ad0f81ee28dfd31a95923d3f452b2579fef93d49c3cea8ef862d54f8"},"taxa":[{"id":"CWE-78","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":"61d76c0b6e7d0a1ae0c78d9f1af38b0d7c63beeb5af6988d911faf0baa791ad4"},"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":"aaa9b9208304a57e0f4a75dc47eb0beadad95125e6465d4dc709f17c9183ebee"},"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":"c7f3120aded9edb3223e622e6776252d6a140548cca9d786d9625ca93b20d4c2"},"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":"f12aaa474f83023f2ab319e13a30541e6b0b3a3d7336f620d14e4a2cb08c7246"},"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":"e1b09274e7c76a482817cd2156f3b3c0c24140ea2b509983da3eedfdb5beea79"},"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":"bd4e43eaa16f89bec294cceb2f96da22d35193198121c2dc3a9cd5ab2cb8a06a"},"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":"7b6eaacca254d0c2e02e0010053cb643c560266f2bbd0d0a17a30837a8d9c260"},"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":"00e1d401ae5db627fd25c8d531367040f3e8b1ee0d71d665f875ef6e3e1b0812"},"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":"b81226f910153cc6f7ed14beebe0a85af2d43250bd2b9405a695238d9264915e"},"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":"e6a66fd553c87172faa79b1b68e3760bb26508df1a5e065ea5166f46dbe7d1de"},"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":"c030a35a4d2a231d7e52aef8afe1fdb2ee10e7072fae2835718084d1a6bb3539"},"taxa":[{"id":"CWE-78","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":"a83325edda35ef1f662fd57fbdeff6d7e0c5b6e8cd970820f7a9c218d3f92eac"},"taxa":[{"id":"CWE-78","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":"cb61c40caaa69fa326c2fb0521b248cb5f218f1bef16445da7c78e1306545735"},"taxa":[{"id":"CWE-78","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":"fc46c0c5afb354112fc6b6b12789c16e7461d65e402e10d0aeb468e4c11ad3b0"},"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":"2bd1fba1ee13b83921a0bd1fa64fa24bcf246a23b9afabbe6ea1342cdd9fa533"},"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":"deaa13abe84e87fae0995dd01a5baa5ea672a3ac88dc6373d9ee445c64d8a2d8"},"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":"c03b51b2f34d22b4a701f2b5b73a2efc4ed02b53c0992c8073d857daa22d9deb"},"taxa":[{"id":"CWE-78","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":"784c7e288624e79f263b9cf07c4551774aaccbdd1f7f84c1f4b06357189d8cba"},"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":"20573a747e74404fd5c3a9abe2ff5769a733e7e28e23c97603ee35260e7d9f36"},"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":"2a990ccc49a341be13723292a5fbeee80e5082783756d34deeab7e4d0963949f"},"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":"ade55b6de2658d919390820a4b5d8822d36bc50910622417fc2627e629fc510d"},"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":"a7f58f2a3ea90f7a932370082eb8b5001728091c4bf18a8caf0df7f5efbc2b07"},"taxa":[{"id":"CWE-78","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":"0d19fde28f7c93cc67c3a8b930fa6285f3ca0d6f67854f002aaad72e75f3c8ff"},"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":"5bc43525d67d351a878a7f6dc18b352ce4ac94be49468cee641f9ef3c19f3549"},"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":"ee644ed2841fe02eda01e6403184180f335ea7d402f671fe209c34091ba67cd6"},"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":"2b9784aa74c62581b973281b3a87f3f82bf88292cbe070a1ee1c5532d26354a6"},"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":"88ff7bde55cfa9220ec9a149e4ae3a403b0cecb1e8369355612acf58e41fa8fe"},"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":"f29f5df3577254496dd2a792da5f8d58acf34fde8993369662440977ac7ee7de"},"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":"8e5b97b1056d8ac540b5cbd0e8b698004e8f7664ba0b2a6335083455715e56c6"},"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":"914e30091d0753909497654ba91b4dbce35f42e0ef4a74303205e9d01e9213fe"},"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":"363a4050aaccbf15ddc72f13e1a9e1fd78cfd4c9404af0ed0e43e8441f95e61c"},"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":"39888e408180025d1117c55a24a0f9d7f87a3d681ceea68c854710e3ca9f5c5f"}},{"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":"6c6fa2fb9d0064d6335375064731d0c0da54d166e04d3a0918ed0aad6a297d90"}},{"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":"6b1485bddbac93c693cf4501139fd1f206efed0b04f68a1fa7ab55ebc82b0337"}},{"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":"635ee136c3e5aa51593602876af407a20602f5325ba70787d19c74ebf908a793"}},{"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":"5b839cec8d0f5be9577b4baa48130a9d097e2af93a9c8fa1c1db4659dd3c4190"}},{"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":"75a7cce6db1aeea021d4bfb56321d147c3cbc8deb3d3d1d69be4f16f03fcabc6"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9817dd406bf60f1fbbbee6766afac74929c840771ea1c4f615558f16d355166"}},{"ruleId":"D32","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":"3b12834e5bdaf7f0e9130e95a49abd6e9dc7c18260b38347038423fa1c87776e"}},{"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":"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":"16e38008acefddfc587d6b42467386d899de69d8736655406dd4215bc1a58973"}},{"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":"38581001cc74ea926773fc0896d0c5b6c7c0699b89b950b15b853524d984add6"}},{"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":"1a44aca373e26ed693f08dcd5646d675c2a4a6afe8d1a59cdc4024bef6f953b1"}},{"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":"0c7072cda72370b3a36b2cccec4c98ede6becf8021f1cc1afeb82c45fbbff86a"}},{"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":"fde9eb3da3715b90826f89f2495bcfd3db236aa11289169ea995ee29e6740505"}},{"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":"17d3894775930b7c88102997ba8a6f4da7028cd192b6ddfe99a1357d34053ddf"}},{"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":"56447b598ac9e79d10b19cdc4a8900610ec507e9f46ff97d10c1d98a0faa8f77"}},{"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":"dc91bdb22630c3ca7f7356716a59d58b3646eebaf52628346e10f3c9a005d9c5"}},{"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":"f0cfd2c6ec9a45d7880de8491b8b85d851b1817a60cdfa40c8114f9b8114d51b"}},{"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":"4f061ba05c467fff358cf3c4c3623431ef1108499aa363077e6a89cb4865bff9"}},{"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":"a900591172fd2df0f4abcbf8b65a69b9102a5b63b8ded2b4a95f7f448b87a28b"}},{"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":"f4726589e74e76624aedf8871a0b47e93881a08a2dded1417b4d4fc8949f1eec"}},{"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":"3bf9e9b9bd877ee8e687adaddae101f791907ce3a325ae8638f6ff4959c9c2f3"}},{"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":"89b02436530ed07ef72146c31da6617eab8794749cd54c074d4844c270657c55"}},{"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":"16a81e50f448ecbd2d1cf5a18a4202622c7702079e20be569edaf0080c5c9b25"}},{"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":"c4b0e5713ef8d2e9cb3330ddce06ee456e8d82b29e8986cd8c01d2e2a9da9731"}},{"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":"d5ed531a76df6348bb4dd88da6e9eb66123bb988c62c09ed3ef648c060f6328f"}},{"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":"c50d9fd6940eb8e135f3418ee27f3bdcef482feabf9980c46e5878208a3380f2"}},{"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":"b9374869a6476560d449181d0cc506f3d6e47d6b34ee814b8cb8eacaa5dbe6f7"}},{"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":"a68d13924156167815b872fbc205bdc0ceebc255d5bf9b8bb5b0dcaa0305e424"}},{"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":"a2f8041ed7c675953d8678a4e7ed2b59c448412f8b995bea91f11e795fdfe882"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.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-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.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-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":82,"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."]}]}