{"$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":"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":"Chatter.Send (cyclomatic 42): Chatter.Send has cyclomatic complexity 42 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/core/chatter.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaad6fe69fe139973266665560b96ee9b913f5a27fe4be1bf28108c530ffe058"}},{"ruleId":"D1","level":"warning","message":{"text":"TranslatedHelpWriter.writeAllFlags (cyclomatic 41): TranslatedHelpWriter.writeAllFlags has cyclomatic complexity 41 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/help.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e8be2f8069dba3475e08068a3a11fec35cd5530bcf8613d9cc6f70567a904a"}},{"ruleId":"D1","level":"warning","message":{"text":"APIConvert.ollamaChat (cyclomatic 40): APIConvert.ollamaChat has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/server/ollama.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"529cd442db4f06fd62371101ab91e0d8025f8ffba4af2a626a675ac04d5e6eb6"}},{"ruleId":"D1","level":"warning","message":{"text":"Generator.collectData (cyclomatic 38): Generator.collectData has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f778146af1c010a586b9a3790bfb070671daf94ee7fb05ef98103de69c3f6142"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.handleChatProcessing (cyclomatic 35): cli.handleChatProcessing 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":"internal/cli/chat.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7380c48158a1ffa73db6c53b789448b1d32347d3baa48048300ec9cb80ba6507"}},{"ruleId":"D1","level":"warning","message":{"text":"Generator.CreateNewChangelogEntry (cyclomatic 34): Generator.CreateNewChangelogEntry 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":"cmd/generate_changelog/internal/changelog/processing.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1cba9ced6ac32ff008a1b758f58f0155ec98da48d627269153ecb752060df8"}},{"ruleId":"D1","level":"warning","message":{"text":"BedrockClient.Setup (cyclomatic 33): BedrockClient.Setup 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":"internal/plugins/ai/bedrock/bedrock.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e878d59e35d071804fbf11357bba9c8e216771a43fe41557de67bb33b53e34"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.Init (cyclomatic 31): cli.Init has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/flags.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"953504bf75bce219cc0ca59d95725254b53caebdcd1b6b76ed1a6c1f3310d7c0"}},{"ruleId":"D1","level":"warning","message":{"text":"Chatter.BuildSession (cyclomatic 31): Chatter.BuildSession has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/core/chatter.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"78595ffcd215fb3b59a2f86419fd44a1601f6fdd158d386407a0f1a8277600f1"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.Cli (cyclomatic 27): cli.Cli 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":"internal/cli/cli.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebe23f8679184e935e0731118168aa16cc24c2578c360a07d99899c441862ed"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.handleToolProcessing (cyclomatic 27): cli.handleToolProcessing 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":"internal/cli/tools.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab6642802ad83eb8c0da2a489d4791efe669f41a12d845b0a6704e82bbf8a99"}},{"ruleId":"D1","level":"warning","message":{"text":"restapi.parseOllamaNumCtx (cyclomatic 27): restapi.parseOllamaNumCtx 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":"internal/server/ollama.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c596344a277b49119255ea1328220ddb1493ff8bfcc6219886fe16e9e2a82173"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginRegistry.GetChatter (cyclomatic 24): PluginRegistry.GetChatter 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":"internal/core/plugin_registry.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cd02d13db760402238ed7998f1164dd185c6bb75a617a2e34001d4f6a9b806"}},{"ruleId":"D1","level":"warning","message":{"text":"Generator.fetchPRs (cyclomatic 22): Generator.fetchPRs has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cf7cb2cf6257dfb34ff42b543e2ccb919dc76d82f837d57692c22d1467bed6"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTube.GrabVisual (cyclomatic 22): YouTube.GrabVisual has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 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":"internal/tools/youtube/youtube.go"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"f890b54b43af6b4dbd9f9918704aae66583f62986a30a7ce0a66727cfa7f7e78"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.validateImageParameters (cyclomatic 21): cli.validateImageParameters 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":"internal/cli/flags.go"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"df65686388705bc3bbfadbdf510e2d23d79986f5cd591e56a390876698da7c06"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.processYoutubeVideo (cyclomatic 20): cli.processYoutubeVideo 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":"internal/cli/cli.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f7ba1f4c90538637c8ed5fc91f3db1e6ac267a953755bc19432164e2ba8e97"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini.ListGeminiVoices (cyclomatic 20): gemini.ListGeminiVoices 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":"internal/plugins/ai/gemini/voices.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b6de95e73e34dbbbec6c9129d80c1ec44cf88ae1b2663dcb0e8139f055bb59"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.SendStream (cyclomatic 20): Client.SendStream 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":"internal/plugins/ai/lmstudio/lmstudio.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da69b005f93a7c93905c7676f79c143e9d753bbd8c5479d2f597db6bc294608"}},{"ruleId":"D1","level":"warning","message":{"text":"openai.FetchModelsDirectly (cyclomatic 20): openai.FetchModelsDirectly 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":"internal/plugins/ai/openai/direct_models.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b926616018aab4e2e880690ddc4afd10d7a8752a609e4b0627bfabd3e7f15dae"}},{"ruleId":"D1","level":"warning","message":{"text":"template.ApplyTemplate (cyclomatic 20): template.ApplyTemplate 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":"internal/plugins/template/template.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"36749f075397550b9c4fc8186f5ff5ddc3889474e6baa2b3b8269551e7af0077"}},{"ruleId":"D1","level":"warning","message":{"text":"FilePlugin.Apply (cyclomatic 20): FilePlugin.Apply 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":"internal/plugins/template/file.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c745310d40558755559b4b88591e9a2eaf8e7a133317b61bb1dcc5342a818bf"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTube.readAndFormatVTTWithTimestamps (cyclomatic 20): YouTube.readAndFormatVTTWithTimestamps 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":"internal/tools/youtube/youtube.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4d298c4b52d99df5fcafc339c7b04cf62ba5e67e4b5f71f158c60818ca7194"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.handleListingCommands (cyclomatic 19): cli.handleListingCommands has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/listing.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd94b684946656602c56bcf6994810f8bc50fe96cc0af784404f9cf22965865"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.toMessages (cyclomatic 19): Client.toMessages has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/anthropic/anthropic.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ce0af5f61931a624d866f5922742c43fc616bcd70a89fdfb9b675be8bfa2c9"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.SendStream (cyclomatic 19): Client.SendStream has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 180, 168). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/perplexity/perplexity.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"36801355a7417df22b076700e842ed170a55e4b5b27566d653c8517fb9204416"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.buildResponseParams (cyclomatic 18): Client.buildResponseParams has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/openai/openai.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"17063fcaeba795b025fc5faae5c76eb21a5c3cfb9fd71d60e1a545685ce7ff17"}},{"ruleId":"D1","level":"warning","message":{"text":"Generator.generateRawVersionContent (cyclomatic 17): Generator.generateRawVersionContent has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab23b592ee69b654d604b480c711123a6ca6158986deb341fdce5dcc84c172b"}},{"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":"cmd/to_pdf/main.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60ba17d46fd739b10df2fdaf47b7d7a67902e64fbbcb6d916f9e4d5b9c4cc6d"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.fetchModelsFromControlPlane (cyclomatic 17): Client.fetchModelsFromControlPlane 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":"internal/plugins/ai/digitalocean/digitalocean.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4863d54a196e1f49c2245d830e9932c472adabbfa74bd0a8b04bf96171dbab67"}},{"ruleId":"D1","level":"warning","message":{"text":"Generator.formatVersion (cyclomatic 16): Generator.formatVersion has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35ea497c7c3c6afb5e46d5c4cdea31bed0989572e676e01b19290aef4dad1d8"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.FetchAllMergedPRsGraphQL (cyclomatic 16): Client.FetchAllMergedPRsGraphQL has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/github/client.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e841e7296b8607f4bab8af34326354e3b2036c7b0fc0846dd63440e38950b591"}},{"ruleId":"D1","level":"warning","message":{"text":"main.run (cyclomatic 16): main.run has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/main.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d706614eb7cbc961966f666610d47752bf8b05cbc418c3f9b84ee78f3378e5"}},{"ruleId":"D1","level":"warning","message":{"text":"domain.ParseFileChanges (cyclomatic 16): domain.ParseFileChanges has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/domain/file_manager.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc49b0a5d9f5da57456cfe27d98d90465e8b053058aa10573a8e7244284f85c"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.toMessages (cyclomatic 16): Client.toMessages has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/vertexai/vertexai.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"551daa0526ea8935eb47e630e578e57bab67f84395e54d7d214a03379338ba81"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.collectData (cognitive 162): Generator.collectData has cognitive complexity 162 (threshold 15). Drivers by points: if/else 120, loops 37, boolean chains 5 (nesting depth added 123). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b8adfb9c7572ad1f9504d8bdb0b7f38aa066248add09e539c587cba8a3e46a"}},{"ruleId":"D2","level":"warning","message":{"text":"Chatter.Send (cognitive 77): Chatter.Send has cognitive complexity 77 (threshold 15). Drivers by points: if/else 64, match/switch 5, boolean chains 4, loops 4 (nesting depth added 38). Of this number, 75 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/core/chatter.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf3f61b230e6b809d872f135fdc92ba5f25da494aa651f20869ea97f65f9e25"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.CreateNewChangelogEntry (cognitive 73): Generator.CreateNewChangelogEntry has cognitive complexity 73 (threshold 15). Drivers by points: if/else 58, loops 15 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/processing.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3405f1bb37f37a88a580b0d40476797da8171de6d0d0f26a83681718415977e5"}},{"ruleId":"D2","level":"warning","message":{"text":"APIConvert.ollamaChat (cognitive 73): APIConvert.ollamaChat has cognitive complexity 73 (threshold 15). Drivers by points: if/else 61, loops 7, match/switch 3, boolean chains 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/server/ollama.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b136c520f2175e3a1dd39c3ae28952904ec9bcd85d430bf15b8f2fcc64c711"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.handleToolProcessing (cognitive 64): cli.handleToolProcessing has cognitive complexity 64 (threshold 15). Drivers by points: if/else 57, loops 4, boolean chains 3 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/tools.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71c0abef95f22fb015ed4193dd5310825e65cf86d55b0676556d8ee31822ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.Init (cognitive 63): cli.Init has cognitive complexity 63 (threshold 15). Drivers by points: if/else 56, loops 4, boolean chains 3 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/flags.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf666af926205672a5f4360b40327237409036142bb0b2d0a09567b7b957870"}},{"ruleId":"D2","level":"warning","message":{"text":"Chatter.BuildSession (cognitive 57): Chatter.BuildSession has cognitive complexity 57 (threshold 15). Drivers by points: if/else 48, boolean chains 5, loops 4 (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":"internal/core/chatter.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8aff4371f2ee78cfa77fa862ab1d3c34a1605519308402d42843d31965af718"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginRegistry.GetChatter (cognitive 53): PluginRegistry.GetChatter has cognitive complexity 53 (threshold 15). Drivers by points: if/else 49, boolean chains 4 (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":"internal/core/plugin_registry.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56daf20df3a9d7a3432fdfce17f0a2380403fc8448f0933605dbf847993b82e"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.handleChatProcessing (cognitive 52): cli.handleChatProcessing has cognitive complexity 52 (threshold 15). Drivers by points: if/else 44, boolean chains 8 (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":"internal/cli/chat.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7792504859aeb11be3ad21edc4056428cd3db0e5455192fbe68c203851f800e2"}},{"ruleId":"D2","level":"warning","message":{"text":"template.ApplyTemplate (cognitive 50): template.ApplyTemplate has cognitive complexity 50 (threshold 15). Drivers by points: if/else 39, match/switch 8, loops 3 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/template/template.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ad9631663ad8ab445b597603e5d67cbdba25b02bb3f53373d68dabda454f24"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockClient.Setup (cognitive 42): BedrockClient.Setup has cognitive complexity 42 (threshold 15). Drivers by points: if/else 35, boolean chains 4, loops 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":"internal/plugins/ai/bedrock/bedrock.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0065ed0408621f36c2776df5ff6e721d52a60dd67c8a27fbfa01b4957ff4a8df"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini.ListGeminiVoices (cognitive 41): gemini.ListGeminiVoices has cognitive complexity 41 (threshold 15). Drivers by points: if/else 29, loops 9, match/switch 3 (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":"internal/plugins/ai/gemini/voices.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b14f95917fa30df4f37b2561530d72f18f6263123b024921f984d5e593f189"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHandler.HandleChat (cognitive 37): ChatHandler.HandleChat has cognitive complexity 37 (threshold 15). Drivers by points: if/else 22, match/switch 11, loops 4 (nesting depth added 25). Of this number, 31 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/server/chat.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ca5fca56b427e7bd8d7c7172862aeb74e3ba3f5c9f5430012b0dada11f3a51"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.SendStream (cognitive 36): Client.SendStream has cognitive complexity 36 (threshold 15). Drivers by points: if/else 34, boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/lmstudio/lmstudio.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1869be1fc6b704126646c6a09cbf8f8b051d7bba9a7c99ec8b7a051b0b867c"}},{"ruleId":"D2","level":"warning","message":{"text":"restapi.parseOllamaNumCtx (cognitive 35): restapi.parseOllamaNumCtx has cognitive complexity 35 (threshold 15). Drivers by points: if/else 32, boolean chains 2, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/server/ollama.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e0a2bab259bdf6218c83a9cdc3f06700a34549d2b56e994e6761d61268a757"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.FetchAllMergedPRsGraphQL (cognitive 33): Client.FetchAllMergedPRsGraphQL has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21, loops 6, match/switch 4, boolean chains 2 (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":"cmd/generate_changelog/internal/github/client.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"019fceb743e82d4a8fe7ab014bd6908f965c15c3071881b9b0c78384206f1b68"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTube.readAndFormatVTTWithTimestamps (cognitive 33): YouTube.readAndFormatVTTWithTimestamps has cognitive complexity 33 (threshold 15). Drivers by points: if/else 29, boolean chains 3, 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":"internal/tools/youtube/youtube.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6999764f3781ed8a3d5142cd26503911327238fd6cd57ca613a5159b594883ed"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.Cli (cognitive 32): cli.Cli has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26, boolean chains 6 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/cli.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c5660a55a85a320b70805ee65aa85923dfe56045f3b13050170ce29e3a60a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.Send (cognitive 32): Client.Send has cognitive complexity 32 (threshold 15). Drivers by points: if/else 27, loops 4, 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":"internal/plugins/ai/anthropic/anthropic.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f0bcac7f628848831e93d21db4b49c263ed0b6f251d628a92cc4d5d9cd7768"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.formatVersion (cognitive 31): Generator.formatVersion has cognitive complexity 31 (threshold 15). Drivers by points: if/else 29, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3865f91aa3aea970c8b73b7464b9b772edca8a87b8c2e5e8c5473b6e2f8286"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.processYoutubeVideo (cognitive 31): cli.processYoutubeVideo has cognitive complexity 31 (threshold 15). Drivers by points: if/else 28, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/cli.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86192be737fa669b0d0b21e9ffe5294458fd64d5474359d9b87496cbe0358e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.toMessages (cognitive 31): Client.toMessages has cognitive complexity 31 (threshold 15). Drivers by points: if/else 23, boolean chains 5, match/switch 2, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/anthropic/anthropic.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34afc79b0185a0271729c152e74b87e0292281a5a48eaee9db9be3eaab3c286"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.fetchPRs (cognitive 29): Generator.fetchPRs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, loops 4, 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":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b36411e41badec89d0545730fe974bb36db372fe49f81e09396cbdc86f05bb"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.extractText (cognitive 29): Client.extractText has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, loops 9 (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":"internal/plugins/ai/openai/openai.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74771d69bd5664d47e46cc8e59f7b488b8e03e255112d7e0af5225b24b4984c"}},{"ruleId":"D2","level":"warning","message":{"text":"FilePlugin.Apply (cognitive 29): FilePlugin.Apply has cognitive complexity 29 (threshold 15). Drivers by points: if/else 28, match/switch 1 (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":"internal/plugins/template/file.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17d02d377652d224225b2ef8bf75abf8f9b9eff36c30baedc2b535168642825"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginRegistry.runInteractiveSetup (cognitive 28): PluginRegistry.runInteractiveSetup has cognitive complexity 28 (threshold 15). Drivers by points: if/else 27, loops 1 (nesting depth added 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/core/plugin_registry.go"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9c72fb89f06637c4fc096e81735c9b1bd07c1c46e7580497c1cd60b0879934"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.SendStream (cognitive 28): Client.SendStream has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, loops 5 (nesting depth added 10). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 180, 168). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/perplexity/perplexity.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61c1645bb7422f35fcbb23154a75370adbf01861233f6d1aa52b33f8ebede78"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.syncGitHistory (cognitive 27): Generator.syncGitHistory has cognitive complexity 27 (threshold 15). Drivers by points: if/else 23, loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a08c98e2de9d79af08dd380e654ffb90f837d4e111cb4adc364cab4dec821d"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.convertGitHubPR (cognitive 27): Client.convertGitHubPR has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, loops 5, match/switch 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/github/client.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6213bfad97032196373b748c26000ddcf7280ebf0769ba660be9776ab00ec08e"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTube.GrabVisual (cognitive 27): YouTube.GrabVisual has cognitive complexity 27 (threshold 15). Drivers by points: if/else 23, loops 3, boolean chains 1 (nesting depth added 5). Of this number, 22 points are the body\u0027s own statements and 5 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":"internal/tools/youtube/youtube.go"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece5cccfb90baedac8b04db6f3ca1abe3795f7519574de21da19e419fdc10355"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.generateRawVersionContent (cognitive 26): Generator.generateRawVersionContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, loops 8, 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":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa50b68e6f191fe4cdce7361a25ec2c2868fe6d57d3c2146f364d05245baddfe"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.handleListingCommands (cognitive 26): cli.handleListingCommands has cognitive complexity 26 (threshold 15). Drivers by points: if/else 25, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/listing.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9e60c3eddc220f814e9f3f3ddafe91a8e8b9addf1f14c37740e331d17f14e0"}},{"ruleId":"D2","level":"warning","message":{"text":"openai.FetchModelsDirectly (cognitive 26): openai.FetchModelsDirectly has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/openai/direct_models.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"262d9f6d041be9bd99e575aaad94db51d9f1da6db4e786af0aa9be8b416507c4"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.buildResponseParams (cognitive 26): Client.buildResponseParams has cognitive complexity 26 (threshold 15). Drivers by points: if/else 24, boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/openai/openai.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"632374a4036dd0b642a2eb46d926f2460bde81124e4c47b18201b83b1c11b08d"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.extractAndSaveImages (cognitive 25): Client.extractAndSaveImages has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/openai/openai_image.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e12101c69bc9592b1fa47bd41928ae3000337986049316cccd2470dc67696b"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.validateImageParameters (cognitive 24): cli.validateImageParameters has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/flags.go"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c870c2baa52da7d8ac3cdb9df32a445336b8df944c8c2d480457a0c8d71fb6f2"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.toMessages (cognitive 24): Client.toMessages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/vertexai/vertexai.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd80bac18fd131d96aef5dcf31d695e1a29848d3a56d71698bd71d3021db57e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 23): main.main has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/code2context/main.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f53c9854c3cefca3be2a3d5c7360a45c1fe6c199611c115e74d7ceecd5c84f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Walker.GetRepoInfo (cognitive 23): Walker.GetRepoInfo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, boolean chains 2, loops 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":"cmd/generate_changelog/internal/git/walker.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3730bffd2f57f9715f6684463101bda2b30ae464c6980b65c0b842b6120dedf"}},{"ruleId":"D2","level":"warning","message":{"text":"Flags.BuildChatRequest (cognitive 23): Flags.BuildChatRequest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/flags.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5f465aa20bbfe1ab814541c65580f8d0ad4859dc49ca013fe54082a4546a50"}},{"ruleId":"D2","level":"warning","message":{"text":"domain.ParseFileChanges (cognitive 23): domain.ParseFileChanges has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/domain/file_manager.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9fbb64b8c30713822bf3e0799a277e6255cb5c5160e612d7107c6a719b3438"}},{"ruleId":"D2","level":"warning","message":{"text":"Cache.GetVersions (cognitive 22): Cache.GetVersions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/cache/cache.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e2bf0099bf009fc917bfc5e42d7a2f3186ce6a74e1a44a6cc34baeb3d3dca4"}},{"ruleId":"D2","level":"warning","message":{"text":"Walker.PushToRemote (cognitive 22): Walker.PushToRemote has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/git/walker.go"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c556a48e33a83724263a98dfdc7b0ef8397210053f7f9f212cabc7413eb4c8"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 21): main.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"cmd/to_pdf/main.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a21cf8cd1ee99e4885fde84013cce144f33adbae66e62f79dee2c21c41e398"}},{"ruleId":"D2","level":"warning","message":{"text":"geminicommon.ExtractCitations (cognitive 21): geminicommon.ExtractCitations has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 4, 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":"internal/plugins/ai/geminicommon/geminicommon.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73ce402a04bad42735116664b5de3c5a2a199c7cd854187b3ddd8141ec7a83d"}},{"ruleId":"D2","level":"warning","message":{"text":"openai.splitAudioFile (cognitive 21): openai.splitAudioFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/openai/openai_audio.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f76c54f1a91d2527711ca8c24760725357d3b79090b08ec55d64c8d0d7df89"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.TranscribeFile (cognitive 21): Client.TranscribeFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 3 (nesting depth added 6). Of this number, 17 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":"internal/plugins/ai/openai/openai_audio.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"061b9f36319e91b6f0a48bbf29882127ce7c2edbbee25fc6c8491800f5de3001"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageEntity.GetNames (cognitive 21): StorageEntity.GetNames has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/db/fsdb/storage.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a3387a5814df578ba58946feefe995780c5ae227adc550d947a9aaeedddc5c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.ScanDirectory (cognitive 20): main.ScanDirectory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, loops 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 48). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/code2context/code.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1c642de62ed784845982da158024b97121607a138f8edc74345561fd5b37f9"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.performTTSGeneration (cognitive 20): Client.performTTSGeneration has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/gemini/gemini.go"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7c06a5c307d45197f3c8729ebbd440957f9e1006d79ca67ebb4349fcd80fd0"}},{"ruleId":"D2","level":"warning","message":{"text":"PatternsLoader.createUniquePatternsFile (cognitive 20): PatternsLoader.createUniquePatternsFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tools/patterns_loader.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e674e70dc9ed821b94ff4c215eda643b477e774b7af8d16c785e1031687a1fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.getDirectCommitsSinceLastRelease (cognitive 19): Generator.getDirectCommitsSinceLastRelease has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/processing.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"707a30a48592d048efcf814bdf4c551d2763e47a1a91f532704298edd9855670"}},{"ruleId":"D2","level":"warning","message":{"text":"domain.fixInvalidEscapes (cognitive 19): domain.fixInvalidEscapes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, 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":"internal/domain/file_manager.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f51446d6c7aefc8c90ab1ce1aeb1cb329e41658aaba0e181560aac4cb3536a"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.parseSSEStream (cognitive 19): Client.parseSSEStream has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/copilot/copilot.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"3223f5054518e9d45ecca3e0aea0a67bd2a9375537749aaa3b4b7540e0cf1f82"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTube.Grab (cognitive 19): YouTube.Grab 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":"internal/tools/youtube/youtube.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07ec5bc65d95260dda49cd84c23e2e0b53fe964e094f25d50136bfa43eea4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.FetchAllMergedPRs (cognitive 18): Client.FetchAllMergedPRs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 7 (nesting depth added 9). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/github/client.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa00ae7357b5ff141121e7912692ca1bfcb89faadb990f1ab3b1ccea07dbecd"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginRegistry.runFirstTimeSetup (cognitive 18): PluginRegistry.runFirstTimeSetup has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/core/plugin_registry.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e007744d40c180f98a43938d891126078f8e6f1cb791dc1202c122fdd8efeac2"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.fetchModelsFromControlPlane (cognitive 18): Client.fetchModelsFromControlPlane has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/digitalocean/digitalocean.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2caf73a3ae49f53316860c1225f8ccf64069eb9381184e5f91cfabffbe5fc54"}},{"ruleId":"D2","level":"warning","message":{"text":"PatternsLoader.tryPathMigration (cognitive 18): PatternsLoader.tryPathMigration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"internal/tools/patterns_loader.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1741c993c9fc115a5e2e6c06b1c055babae54fbc07387cdf0baa2f2d99c20de"}},{"ruleId":"D2","level":"warning","message":{"text":"main.run (cognitive 17): main.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/main.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"276a5f1fc306b0d929609eda6aed2f2ab547fc378fdde0d256aff13972755911"}},{"ruleId":"D2","level":"warning","message":{"text":"Generator.extractChanges (cognitive 16): Generator.extractChanges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8ecd03d4fc633905dad24c531f3db27cb33de71ebcfbf365062cebebe4153a"}},{"ruleId":"D2","level":"warning","message":{"text":"changelog.fixMarkdown (cognitive 16): changelog.fixMarkdown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"cmd/generate_changelog/internal/changelog/generator.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7ca8db8a348af2019041e9f80d9c9e63d9ef2c4dc522a70d6f03fb83288e9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.buildChatCompletionParams (cognitive 16): Client.buildChatCompletionParams has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"internal/plugins/ai/openai/chat_completions.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"089faff27cc804fa0fdfb01f18e4c091de494e9eb14b7d547b110d622f8734ce"}},{"ruleId":"D2","level":"warning","message":{"text":"PatternsLoader.PersistPatterns (cognitive 16): PatternsLoader.PersistPatterns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2, 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":"internal/tools/patterns_loader.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b4d4bb7037686215da7912604d09a8d98b509795c1c3bb501f4a77de5420cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: youtube/youtube.go: FileTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tools/youtube/youtube.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c4321c4caf3b52397ed68e6809dd8128a68d583754be2e7853d6e6bbef39ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cmd/generate_changelog/internal/git/walker.go:207-220 | cmd/generate_changelog/internal/git/walker.go:349-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/generate_changelog/internal/git/walker.go:207\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":"cmd/generate_changelog/internal/git/walker.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff73306fdc2ead1edcca774c1554fff5d843aa5f4056eb88ddc307fa5eee9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/plugins/ai/anthropic/anthropic.go:413-426 | internal/plugins/ai/vertexai/vertexai.go:444-457 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/anthropic/anthropic.go:413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/anthropic/anthropic.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb363c21d7681d45fb0d21b0c4fe7d94fa5664a1ec258310c7b3498709decb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/plugins/ai/copilot/copilot.go:239-252 | internal/plugins/ai/copilot/copilot.go:285-298 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/copilot/copilot.go:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/copilot/copilot.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd3e2ed7638e6932b0aeb60c5b6f6b3b64146c844cfc66c967dbf761c4a3f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/plugins/ai/anthropic/anthropic.go:195-207 | internal/plugins/ai/vertexai/vertexai.go:222-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/anthropic/anthropic.go:195\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/anthropic/anthropic.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e45019d7612e610f570836b9b932fcf97365de05116c3ec382e30f7bfea957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/plugins/ai/vertexai/vertexai.go:150-162 | internal/plugins/ai/vertexai/vertexai.go:207-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/vertexai/vertexai.go:150\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/vertexai/vertexai.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fe397c8ac6b59c1e1d56c6e17f83fd20843cc698fa0aafe1d97b93c375d70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): internal/plugins/ai/lmstudio/lmstudio.go:113-124 | internal/plugins/ai/lmstudio/lmstudio.go:221-232 | internal/plugins/ai/lmstudio/lmstudio.go:284-295 | internal/plugins/ai/lmstudio/lmstudio.go:341-352 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/lmstudio/lmstudio.go:113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/lmstudio/lmstudio.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"01031e085a312aa41badb1b41a76ceab07f02fcf851fe7fdfffb73517a2eef29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): internal/plugins/ai/lmstudio/lmstudio.go:208-219 | internal/plugins/ai/lmstudio/lmstudio.go:271-282 | internal/plugins/ai/lmstudio/lmstudio.go:328-339 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/lmstudio/lmstudio.go:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/lmstudio/lmstudio.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf663f545da8a6b8695b2c6ca52c42973f7e2a65f6b5e3ce15fa2d77ee40e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/generate_changelog/internal/github/client.go:68-79 | cmd/generate_changelog/internal/github/client.go:286-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/generate_changelog/internal/github/client.go:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. 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":"cmd/generate_changelog/internal/github/client.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c44dcccccdcf455e0bbcefd5098a53b6446f1a4d621ac6b6b7a0bd7877d3be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/plugins/ai/gemini/gemini.go:101-112 | internal/plugins/ai/gemini/gemini.go:132-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/gemini/gemini.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcfe6ea322e956345280850d7a80f1d0a1889538925480c6d925eb8e9436f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/plugins/ai/gemini/gemini.go:161-172 | internal/plugins/ai/vertexai/vertexai.go:372-383 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/gemini/gemini.go:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/gemini/gemini.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"96891f94f8266d5a5ae07eeeecefb0fb02c34aaa22000b1d9150326e93147236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/plugins/ai/lmstudio/lmstudio.go:236-247 | internal/plugins/ai/lmstudio/lmstudio.go:299-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/lmstudio/lmstudio.go:236\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/lmstudio/lmstudio.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1216400d50e64d0fe492f1a6219042f4af20200f81d60653555e65c546fdc2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/plugins/ai/perplexity/perplexity.go:90-102 | internal/plugins/ai/perplexity/perplexity.go:153-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/perplexity/perplexity.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"272817eb3d1559b7821798605fcccf8be31d523331e152062bf00a91779157f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/plugins/ai/azure/azure.go:48-58 | internal/plugins/ai/azure_entra/azure_entra.go:48-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/azure/azure.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c358747b547f4be16daa6fb01c640823315a53541e2e9e9a4f2fa1c86f5f2d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/plugins/ai/perplexity/perplexity.go:69-79 | internal/plugins/ai/perplexity/perplexity.go:130-140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/perplexity/perplexity.go:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/perplexity/perplexity.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"885d927976e0af3c82bca08d6abe3ef52cb0b9ff8d7c83f31357c7dc56533428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/plugins/ai/perplexity/perplexity.go:203-215 | internal/plugins/ai/openai/chat_completions.go:53-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/perplexity/perplexity.go:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/perplexity/perplexity.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ea04b9e3b92155bfda0b9242a1c5c8df41d3e024f3f24ec251a8019fcea17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cmd/generate_changelog/internal/git/walker.go:101-110 | cmd/generate_changelog/internal/git/walker.go:311-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/generate_changelog/internal/git/walker.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"829b3bc47b86f487e23d99b55f9df9e6a64167911cc73d5634593d164ba4b90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/plugins/ai/anthropic/anthropic.go:399-410 | internal/plugins/ai/vertexai/vertexai.go:432-441 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/anthropic/anthropic.go:399\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/anthropic/anthropic.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5468c180f0a3cd66509ec9855d15b3c6b2d16eb68b2c82ebf8e2cab1be5afd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/plugins/ai/azureaigateway/backend_bedrock.go:65-74 | internal/plugins/ai/azureaigateway/backend_vertex_ai.go:60-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/azureaigateway/backend_bedrock.go:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/azureaigateway/backend_bedrock.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"322f468a4987ea37c4baf3e39eba5ce577c0b755abb3167e9f3592f982a41e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/plugins/template/extension_manager.go:83-92 | internal/plugins/template/extension_registry.go:109-119 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/template/extension_manager.go:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/template/extension_manager.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eeb48e6892e2cd8a681aaa097e417dcfe1e42489f3e1d612070c7e7ae8a5baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/server/ollama.go:115-124 | internal/server/ollama.go:129-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/server/ollama.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedd21cc7b09737ac97ba71c2c294d10cd8b197d6dee6a0b6a4b51bf96f30333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/tools/spotify/spotify.go:261-271 | internal/tools/spotify/spotify.go:378-387 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/tools/spotify/spotify.go:261\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tools/spotify/spotify.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a67523cbed8fa8359e519660dae6227afc76f74c6eb01f8a2e2a83dbb91d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/tools/spotify/spotify.go:315-324 | internal/tools/spotify/spotify.go:434-443 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tools/spotify/spotify.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fbba63cbe91ce6274830c7d48c24f0926d2325008dff8e0a1f8157616c146a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/plugins/ai/azureaigateway/backend_bedrock.go:122-129 | internal/plugins/ai/vertexai/vertexai.go:168-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/ai/azureaigateway/backend_bedrock.go:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/azureaigateway/backend_bedrock.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cae7f27656693dec31dda1bf7a65dd5b54cd6ee9f50d4417d122d79a72bbdbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/plugins/template/extension_manager.go:58-65 | internal/plugins/template/extension_manager.go:111-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/plugins/template/extension_manager.go:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/template/extension_manager.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"021573bc6e74a05365c4e3f98f50d33261fc350d4f43af84b1e3e532ffd62244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/server/ollama.go:501-508 | internal/server/ollama.go:517-524 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/server/ollama.go:501\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/server/ollama.go"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79229f985d4013f9aea9016a57da41f5aac5eeb3f7b2a0e9ed32f257814bde7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/plugins/ai/anthropic/anthropic.go: internal/plugins/ai/anthropic/anthropic.go changed 7 times in last 90 days, max complexity 19. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/plugins/ai/anthropic/anthropic.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6764eae17daf31ca90c5348c5863d7b40bc5006fa105b86e5f0245d0175cea67"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/flags.go: internal/cli/flags.go changed 3 times in last 90 days, max complexity 31. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/flags.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d9d1cfcb80640323145c821f2623eede67231645d791c1cbc7bfbfab702e2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/help.go: internal/cli/help.go changed 2 times in last 90 days, max complexity 41. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/help.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea731ec81b95f1cff62c50f63592244d1427e6e92d11032509b09d7202de6e3"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 38 significant file(s) lose their only recent owner: cmd/generate_changelog/internal/changelog/generator.go, internal/plugins/ai/anthropic/anthropic.go, cmd/generate_changelog/internal/changelog/processing.go, internal/server/ollama.go, internal/tools/spotify/spotify.go, cmd/generate_changelog/internal/git/walker.go, cmd/generate_changelog/internal/cache/cache.go, internal/tools/patterns_loader.go (\u002B30 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ff6b1f8ffeb2bc88d5f40ffce590715a31fdaf9e6203bc417c47d623bedbd8a3"}},{"ruleId":"D19","level":"note","message":{"text":"Voice samples are real audio files but no instructions on how to generate them (e.g., the command used in the README).: Add a short \u0027How to Generate Samples\u0027 section below the list of voices, showing the commands that create Kore.wav and others."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/voices/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89d17316de44465b80d9b4977fcc9cc878a1b327668fd40a6892063ea05bb82"}},{"ruleId":"D19","level":"note","message":{"text":"The Pythagorean Theorem example is a textbook calculation but the document does not explain why squaring and taking square roots are valid operations for this context (e.g., non-negative inputs, rounding).: Add a sentence justifying that squaring and taking square roots preserve order on non-negative numbers, so c^2 = 25 implies c = \u221A25."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"data/patterns/explain_math/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f5eb2f26caeb424f1b3fa2b07556a7bc1d7c440b9fa191f5c43af25414e46d"}},{"ruleId":"D19","level":"note","message":{"text":"The \u0027Reversed Test\u0027 section is excellent but the document does not explain how to apply it in practice (e.g., for a policy proposal or an AI system).: Add a brief one-line guideline: \u0027Ask, \u0022If every silent victim could speak with equal power, would they consent to this?\u0022 and take yes as evidence of hidden harm.\u0027"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"data/patterns/detect_silent_victims/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece6e2b30724ac980640d92b66ab36df26767015b7571f3e8d7d993f6d557765"}},{"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":"c8012c42d297dc9578a0981eaaa3ed7c6e73ed5aa3dc41882e27c10ca099fea5"},"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":"59827f28114b04b486753897f461d483d2f8bf72229b20db4bcb85f5b72e54b7"},"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":"b9e72caa6bfd7a71c25807dfc6de7f1733b735e1caa3c4b32f18c202845fe593"},"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":"4c705028988ac9e978fc5eda02dfbfc890f8c1d1d9060391fbf1d6f44f858187"},"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":"73dc177a294f421de1f0dfbca930bd6c2ee5cd3894fab25487655482f3942afe"},"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":"44fd4aceef9a2c6b311a23180263f5c4b067d26ede3cf6873a83b60008a6c5a6"},"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":"5fb863ae9124fb1107403b4a52bf6f343870101f31f6836596b441079c514b9c"},"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":"232526e51ccc0bf9ff8267d90534161f3528ad85581672f0d670037239eac468"},"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":"65f3548892301fb7882aacf0a13e39b1ee82008c2279b57f34e1883d9ee1f246"},"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":"cdbec602078e3c4ad4c341a49c4f169fa84ff3b8fac6acdd00f5eccb4bdef7bf"},"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":"f1b966c70d2e5f6ab697ac6d268d54938c60e802d8ea58ea6ff9cb7e10a35f70"},"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":"fb4d4c3b8c71a7053c14097c181af4c0ade9af7dcfa3f5bb5729ca18dea36620"},"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":"c1acbd1112144995697d0b869626338531a22ffd4fa241640cee9e643f5a4790"},"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":"9d5b1bea5049ac4fc0d11d7dab4dbdb6834597109d69b482795dce2d25c662be"},"taxa":[{"id":"CWE-89","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":"3ce409c65b7ac4402765ec29d42c644f91f55891dfe5df710a16e2ad12b524a9"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb10b53bef8f74a6abfffbe051e5c324e779f4146f7367754ac6c533ce2598b7"}},{"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":"29c754a5e0c212bc14dc95216fe20b9d99a1c5df640d6a28d8fc7e1834082b57"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 5 of 94 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: web/src/lib/store/pattern-store.ts, internal/plugins/ai/geminicommon/geminicommon.go, web/src/lib/components/ui/connections/ParticleSystem.ts (and 2 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"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":"7962df08b9349ff69aee566dd5bcbc01bf032a6d5acb1677bd5f848d17b4a06e"}},{"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":"50c379534161bb30611d421e82af3666b891a67b9a6a35df5a4fc4b4977e653b"}},{"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":"6b4deab06cd1fc2fb6e57103d1f3ef991634da4c2b7c329a7a2420a12731f08c"}}],"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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":24,"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."]}]}