{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PreCompute.preComputeUnionCaseArgInfo (cyclomatic 70): PreCompute.preComputeUnionCaseArgInfo has cyclomatic complexity 70 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/PreCompute.fs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1db084be85e343d2c6fb2759a54d3e29d76e41d93137a61ac082be29712828"}},{"ruleId":"D1","level":"warning","message":{"text":"CliParser.handleMainCommandOrUnrecognized (cyclomatic 47): CliParser.handleMainCommandOrUnrecognized has cyclomatic complexity 47 (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":"src/Argu/Parsers/Cli.fs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8471a93a0afe4639c6988506b70b3b27025d8b335a17fbd859201c0e078309"}},{"ruleId":"D1","level":"warning","message":{"text":"UnParsers.mkCommandLineSyntax (cyclomatic 35): UnParsers.mkCommandLineSyntax has cyclomatic complexity 35 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/UnParsers.fs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c7cedc22e5b368f62895b612a413dd346710f644781d84c2b2a68767859c6f"}},{"ruleId":"D1","level":"warning","message":{"text":"CliParser.handleCliParam (cyclomatic 30): CliParser.handleCliParam has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/Parsers/Cli.fs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b34c1371427f543d8025c8eda1c436b604a6282ab51a067d1a43cdf2f870c9"}},{"ruleId":"D1","level":"warning","message":{"text":"UnParsers.mkArgUsage (cyclomatic 23): UnParsers.mkArgUsage has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/UnParsers.fs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"586d73ebbd3f4568c089ff680153480a45c81cbe32e8aea65b5e4f8f08ece544"}},{"ruleId":"D1","level":"warning","message":{"text":"UnParsers.mkCommandLineArgs (cyclomatic 20): UnParsers.mkCommandLineArgs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/UnParsers.fs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0627c21fc8060ec4e394521f707b9ecd597895303aba814d534d8cd2bcc357"}},{"ruleId":"D1","level":"warning","message":{"text":"PreCompute.preComputeUnionArgInfoInner (cyclomatic 20): PreCompute.preComputeUnionArgInfoInner has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/PreCompute.fs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4485a14f89b8409144ee7bbc3ad9a8cbb9d6f55648e2a42c46d693f5d1301c0"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyValueParser.parseKeyValuePartial (cyclomatic 19): KeyValueParser.parseKeyValuePartial 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":"src/Argu/Parsers/KeyValue.fs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"038d62c33fafcf683724ae5339d3a664d2dbbe0af41486537eb1d31a2ec65ca7"}},{"ruleId":"D1","level":"warning","message":{"text":"CommonParsers.postProcessResults (cyclomatic 19): CommonParsers.postProcessResults has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/Parsers/Common.fs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ab9f8d1b9b7721df25fb7a1f15760a25a9a9f2ea55c23ea6bc51324fa41382"}},{"ruleId":"D1","level":"warning","message":{"text":"UnParsers.mkUsageStringWithLabels (cyclomatic 17): UnParsers.mkUsageStringWithLabels has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/UnParsers.fs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64307596b4cd0b7e3a766314f1863dfcc12cd2f2ab51093728ca6531b6332c7"}},{"ruleId":"D2","level":"warning","message":{"text":"CliParser.handleMainCommandOrUnrecognized (cognitive 128): CliParser.handleMainCommandOrUnrecognized has cognitive complexity 128 (threshold 15). Drivers by points: if/else 64, match/switch 24, error handling 19, loops 14, boolean chains 7 (nesting depth added 85). 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":"src/Argu/Parsers/Cli.fs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"33725fde1904d1c112009372f5fdbae741612004b9a71758cea8aae200e58c68"}},{"ruleId":"D2","level":"warning","message":{"text":"PreCompute.preComputeUnionCaseArgInfo (cognitive 70): PreCompute.preComputeUnionCaseArgInfo has cognitive complexity 70 (threshold 15). Drivers by points: if/else 37, match/switch 21, boolean chains 7, loops 4, error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/PreCompute.fs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"444dec86ee9ac1995c3ac901b21d9b7d60aa13a68bd7d84c12d8035d62762265"}},{"ruleId":"D2","level":"warning","message":{"text":"UnParsers.mkCommandLineSyntax (cognitive 50): UnParsers.mkCommandLineSyntax has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21, match/switch 17, loops 10, boolean chains 2 (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":"src/Argu/UnParsers.fs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3074d59fc5aaffd368ad339de2bbd7d01ac48530b6af94401a2d829fc91bda82"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyValueParser.parseKeyValuePartial (cognitive 49): KeyValueParser.parseKeyValuePartial has cognitive complexity 49 (threshold 15). Drivers by points: if/else 25, error handling 12, match/switch 6, loops 5, boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/Parsers/KeyValue.fs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c739f371496ecd64aacb093080765ad643dccbdd38232518822fcfcb19d7567"}},{"ruleId":"D2","level":"warning","message":{"text":"CliParser.handleCliParam (cognitive 44): CliParser.handleCliParam has cognitive complexity 44 (threshold 15). Drivers by points: error handling 19, match/switch 13, if/else 9, loops 3 (nesting depth added 26). 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":"src/Argu/Parsers/Cli.fs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fbfa5dfaf909b620659dc455c0808a0225c3a572c84f0714196e78ed531708"}},{"ruleId":"D2","level":"warning","message":{"text":"UnParsers.mkCommandLineArgs (cognitive 35): UnParsers.mkCommandLineArgs has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16, match/switch 12, loops 7 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/UnParsers.fs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"605ab6cab4200585ee025d798b9666d269c69f0dab54ae14b221c42fd2e0c81a"}},{"ruleId":"D2","level":"warning","message":{"text":"UnParsers.mkArgUsage (cognitive 31): UnParsers.mkArgUsage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11, loops 10, match/switch 10 (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":"src/Argu/UnParsers.fs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"652f3b1cb284a0fad4ae601c8e8a47293311069cdc68d678d08e686a687ca5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.escapeCliString (cognitive 27): Utils.escapeCliString has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17, match/switch 5, loops 4, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/Utils.fs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f4cb3b157d0dd15cf0a902c93be0a38b7d0092e205d95b4370b31b80c3e4d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.wordwrap (cognitive 26): Utils.wordwrap has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12, loops 11, boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/Utils.fs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb4f363469db5ab9c00531a9f1af134a749c9c01aac4db181cc8677724c57fc"}},{"ruleId":"D2","level":"warning","message":{"text":"CliTokenReader.GetNextToken (cognitive 23): CliTokenReader.GetNextToken has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, match/switch 8 (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":"src/Argu/Parsers/Cli.fs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"212311963c87d6a61d8cc920dbbd388413a6a80687ca94b720c4beaeacff661b"}},{"ruleId":"D2","level":"warning","message":{"text":"UnParsers.mkUsageStringWithLabels (cognitive 23): UnParsers.mkUsageStringWithLabels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9, loops 9, match/switch 4, 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":"src/Argu/UnParsers.fs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3426d621650857e8a9a937740f4d94d42ef3023967252160adf9d25043bee5da"}},{"ruleId":"D2","level":"warning","message":{"text":"UnParsers.mkAppSettingsDocument (cognitive 18): UnParsers.mkAppSettingsDocument has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 12, loops 4, if/else 2 (nesting depth added 10). 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":"src/Argu/UnParsers.fs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"916fa3981f69d61ae0bc92fc3142a00b730e6d64e7fcb3ba18a0d7efa4d09ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"PreCompute.preComputeUnionArgInfoInner (cognitive 16): PreCompute.preComputeUnionArgInfoInner has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 9, if/else 3, loops 3, boolean chains 1 (nesting depth added 4). 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":"src/Argu/PreCompute.fs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"6583e6c064081ab4083965c356ed22568656e892f0b5766df1eb64c46227c7a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Argu/PreCompute.fs: FileTooLong \u2014 550 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":"src/Argu/PreCompute.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dbada2fe62ff26a7135a0fba641e7249e994a1f5efc47ce4bbb6757e101db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Argu/UnParsers.fs:74-83 | src/Argu/UnParsers.fs:156-165 \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":"src/Argu/UnParsers.fs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76c342e250d87e9e647d4071ff1401307bc288dbf2ca55c553c247d3eb9bcf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Argu/PreCompute.fs:121-126 | src/Argu/PreCompute.fs:160-165 \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":"src/Argu/PreCompute.fs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f998b8ac91bc34184d2ec71b8bebbda1ba805014d4a091ced0d6f1acf6c34b08"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured: The test suite couldn\u0027t be built/run in-image and no coverage report is committed, so line coverage was not measured \u2014 and it is EXCLUDED from the score rather than scored on a LoC-ratio proxy. No coverage collector was found in your CI either, so there is no existing report to hand us: add a coverage collector to your test run and commit (or publish) its Cobertura/OpenCover/lcov output anywhere in the repo, or make the suite runnable in-image, and real coverage will be measured."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Argu/PreCompute.fs: src/Argu/PreCompute.fs changed 7 times in last 90 days, max complexity 70. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/PreCompute.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"684cd62805e6df3d3c027df2c7cc69faf55ec129dc8f6ea19ccd2556ac0835da"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Argu/UnParsers.fs: src/Argu/UnParsers.fs changed 6 times in last 90 days, max complexity 35. 3 of those changes were fix/bug commits, and the other 3 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":"src/Argu/UnParsers.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe02e9ab164d554515a0c52d3821673e07bab562330060f42af391550d98f6da"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Argu/Parsers/Cli.fs: src/Argu/Parsers/Cli.fs changed 4 times in last 90 days, max complexity 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/Parsers/Cli.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3dc73c66021f9b16d9ff7a880bdbc1cd191eb9e25fb8282cdaffb4713121e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Argu/Parsers/Common.fs: src/Argu/Parsers/Common.fs changed 3 times in last 90 days, max complexity 19. 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":"src/Argu/Parsers/Common.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebfc5bb68f201db02f9ec250dfe20305a81a09fc5c15941344720150023d819"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Argu/Parsers/KeyValue.fs: src/Argu/Parsers/KeyValue.fs changed 2 times in last 90 days, max complexity 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Argu/Parsers/KeyValue.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f0cce401a4d5d04ec02b83368d61332a8a5bade396ff44b9b9810c6ae3ec78"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 7 significant file(s) lose their only recent owner: src/Argu/Parsers/Cli.fs, src/Argu/ParseResults.fs, src/Argu/Attributes.fs, src/Argu/Types.fs, src/Argu/ConfigReaders.fs, src/Argu/Parsers/KeyValue.fs, src/Argu/Parsers/Common.fs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f4f265bd896eb3517c4390928c6fa6471aa09eaaba29ef3e73551e8f89820664"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d621ca81910dd86b411e052daa24cd58341b71794022b0289cabd89c2eca319"},"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":"8d612c7ebc7afc6292060e4aefd997b9af495696007cefe3611b00f1e091679e"},"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":"25254c97b62b13b7c073eeeb90b462ffec833e325034c0621142898ae58e024f"},"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":"c15e03ac1fa47e87e1db1facbff939b0109157aa1a15ea9510ba7aa38b6e07cb"},"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":"28a3c7ee55b0fa9e2a8e3a08e9b0091743047ede93d181f60efd15d32adf4fd3"},"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":"de905001f4d470d9bce1f9a2a49be52ab383876cce7e84bbd2c650abc5caa8c3"},"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":"432481c6f21427a2d928df4020607be5956e9f49d5b3c15dce34fedeb352f112"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"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":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-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":15,"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."]}]}