{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Main.main (cyclomatic 45): Main.main has cyclomatic complexity 45 (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/Myriad/Program.fs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82ab1b7f7e0eacd9636f3f94cbc348a511b3cbd6c383167222ee3d067de19a9"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.main (cyclomatic 20): Program.main 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":"experiments/Q012-compiler-behavior-probe/artifacts/Harness/Program.fs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd92ca18ccd344e1cd71034cebd69118b5968e9a60c9fee1308f4726708d025"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.round1 (cyclomatic 20): Program.round1 has cyclomatic complexity 20 (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":"experiments/Q020-shared-analysis-diagnostic-channels/artifacts/Harness/Program.fs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d52da2d85b9256cf0ea59cf6534dbcc34bde35f25dafe9e506b4240f1af9989"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.runRound2 (cyclomatic 20): Program.runRound2 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":"experiments/Q026-real-generator-reentrant-composition/artifacts/Harness/Program.fs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cea07d315019e9246c7fe90698e0064715895bb03f1840947ed2cecfcc0e878"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicReflection.op_Dynamic (cyclomatic 19): DynamicReflection.op_Dynamic 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/Myriad.Core/Ast.fs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"739c3e71716700d5ab1bc67b609e5f5096abab1250b2c45cde96f5645f152f7d"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.main (cyclomatic 18): Program.main has cyclomatic complexity 18 (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":"experiments/Q010-prefix-stratified-generation/artifacts/round2-cross-generator/Program.fs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82cc18ca68c30c7e24a93044657639892b65075d459646ba6e3dc36f756741c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReentrantJsonGenerator.Generate (cyclomatic 17): ReentrantJsonGenerator.Generate has cyclomatic complexity 17 (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":"experiments/Q026-real-generator-reentrant-composition/artifacts/ReentrantJsonGenerator/ReentrantJsonGenerator.fs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff61c350c03080dfde9bbad18c1b72b542d6e55168e35d85b3429b956355c84d"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorConfig.parseOptionsFromEditorConfig (cyclomatic 16): EditorConfig.parseOptionsFromEditorConfig has cyclomatic complexity 16 (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/Myriad.Core/EditorConfig.fs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dff3e0804cfc683b5c4bdc4b33cef6339a2cfb9428d1b27ef0c3371053f37a"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.main (cyclomatic 16): Program.main 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":"experiments/Q009-field-level-provenance/artifacts/AttrCheck/Program.fs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"186ad60e7918b90b29459731ee2ff0c9e2282b4daa0248fa1644a6341040d606"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.main (cognitive 65): Main.main has cognitive complexity 65 (threshold 15). Drivers by points: if/else 40, match/switch 15, error handling 5, loops 5 (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":"src/Myriad/Program.fs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba4ada81d9ef7a79645083c31b8f35dcb005754b8dedceb5be2500b7a1e1948"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicReflection.op_Dynamic (cognitive 35): DynamicReflection.op_Dynamic has cognitive complexity 35 (threshold 15). Drivers by points: if/else 26, error handling 3, boolean chains 2, loops 2, match/switch 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Myriad.Core/Ast.fs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"27082a4259b078a4edda593d8aa0bbda6d73a6f816dea2096c92e04f5b451a87"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.main (cognitive 33): Program.main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, loops 5, boolean chains 4, match/switch 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":"experiments/Q009-field-level-provenance/artifacts/AttrCheck/Program.fs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53167b5701e85b2cd459df91935eb34ad2eb8f32b5bc4540301217bc9928014"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.main (cognitive 33): Program.main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, loops 12, 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":"experiments/Q012-compiler-behavior-probe/artifacts/Harness/Program.fs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"757a8a133629d5422ce220f5fd061f3f36d6ab5cd763d9235aac027489cce3a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.round2 (cognitive 29): Program.round2 has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14, match/switch 9, error handling 5, 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":"experiments/Q025-typed-expr-interpreter/artifacts/Harness/Program.fs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"64847d8f8cc40f098d9dd64aed9c27f30a42197e645d40ab28161d12b399a2ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.round1 (cognitive 27): Program.round1 has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 14, if/else 8, error handling 5 (nesting depth added 18). 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":"experiments/Q025-typed-expr-interpreter/artifacts/Harness/Program.fs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1893f808bab39bf59b77699672dd271ff572bc6f7f7a6c5a4d3abb6711be7904"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.round1 (cognitive 26): Program.round1 has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, match/switch 7, loops 2, 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":"experiments/Q007-fsi-static-parameters/artifacts/Verify/Program.fs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b4b7a0d35025f7bd569f615da782d7b16cdae47b45fdee11af034ce89bc995"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.main (cognitive 26): Program.main has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 5, boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"experiments/Q008-provenance-closed-loop/artifacts/AttrCheck/Program.fs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8845094fcb6861bc5ec9d9df304555c14d2747342961b7804ca39bb8440f1419"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.round2 (cognitive 23): Program.round2 has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, match/switch 7, 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":"experiments/Q007-fsi-static-parameters/artifacts/Verify/Program.fs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"29115f009eef592470610b556f0dc68effc2f052b0b488387af1bd565ec821ee"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.main (cognitive 22): Program.main has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 9, if/else 7, 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":"experiments/Q010-prefix-stratified-generation/artifacts/round2-cross-generator/Program.fs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a351a3694b99f2cb6908e45cc7316698c8d7d5691327f4e0d9229bc7c6c8d841"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.runRound2 (cognitive 22): Program.runRound2 has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 9, if/else 7, 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":"experiments/Q026-real-generator-reentrant-composition/artifacts/Harness/Program.fs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"941fad5ea4b446580cec79bd981842b883c9ea044df762f3e86533afcd5becdb"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorConfig.parseOptionsFromEditorConfig (cognitive 20): EditorConfig.parseOptionsFromEditorConfig has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 15, if/else 5 (nesting depth added 11). 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/Myriad.Core/EditorConfig.fs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0290e4647b741772a4b04d6453ea4809289fc80cac915003e2c105907db464d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Ast.extractLiteralBindings (cognitive 20): Ast.extractLiteralBindings has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 9, loops 6, if/else 4, boolean chains 1 (nesting depth added 11). 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/Myriad.Core/Ast.fs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bb61c7879f5d27a349c3d9fdeeb900677e08e57c4d141dd8acc5c0f93b9d27"}},{"ruleId":"D2","level":"warning","message":{"text":"Analyze.analyze (cognitive 19): Analyze.analyze has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 11, loops 7, boolean chains 1 (nesting depth added 11). 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":"experiments/Q020-shared-analysis-diagnostic-channels/artifacts/SharedAnalysis/SharedAnalysis.fs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d64397cb9b4669d0691657cd10374c6a5ad47231051dcbc95ba5d32247f08f"}},{"ruleId":"D2","level":"warning","message":{"text":"Implementation.parseManifest (cognitive 17): Implementation.parseManifest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, match/switch 7, loops 2 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Myriad/Program.fs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc11de52d60a60aa32c6824245df8184003965b31d6d87176d0a8f13b97ef95"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.main (cognitive 17): Program.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, match/switch 1 (nesting depth added 5). 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":"experiments/Q018-collectible-alc-round2-mitigation/artifacts/Harness/Program.fs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2941698d0677fa2cb93b996e0ef45d56d4f9fa74abe88c6673bffe70f3027b"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 test suite did not build: Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code \u2014 a repository written for an older SDK band can compile for you and not for us. Run \u0060dotnet build\u0060 on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Myriad/Program.fs: src/Myriad/Program.fs changed 2 times in last 90 days, max complexity 45. 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":"src/Myriad/Program.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b205ecae132c2e4bb0d679e7084e9ca2fbc1e464c88d3923ef84723ab63edae"}},{"ruleId":"D19","level":"note","message":{"text":"The MSBuild usage section mentions Fantomas.Core 7.0.5 but the main Myriad version is 0.8.6; readers may misinterpret which Myriad release supports a given Fantomas patch.: Note the Fantomas pin in tandem with the Myriad version (e.g. \u0027Myriad v0.8.6 requires Fantomas v7.0.5\u0027) so no upgrade is mistakenly assumed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/content/docs/Tutorials/msbuild-usage.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf1e385a0931bbc96af86fe9c940ac4c527d9fc33bd1adc32989358f6b78504"}},{"ruleId":"D19","level":"note","message":{"text":"The MSBuild plugin-registration example uses a hardcoded generator dll path (\u0027\u003Cpath to plugin dll\u003E\u0027) rather than referencing the actual Myriad.SdkGenerator property.: Replace the hard-coded path with an Include directive that references the generated Myriad.SdkGenerator project reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/content/docs/Tutorials/external-plugins.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"176b39423b747293c4f70b49718b0c300c6e2a77682d8cebed1aee51ff3e2e19"}},{"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":"be82002869094debafd47ffc0021bdb17eacecac471c254f8f1b3bfbd31ecf12"},"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":"f39acc2b10735c8a3966f97e8b8620e7b996a79f8eb2028f323f95d5d8a32699"},"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":"5722ef069a7d29f1ac0db3027d95735af0221db001a9ee78f32cc214cf9dd8a2"},"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":"ed6fdc226c4d3b560a6765bd753130fbd1dbb00e11437de41604f04caeeea5a7"},"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":"83044e8bdaa7705822cf2276c639ad5cb56330baa80e78b984ba37ba6693fe54"},"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":"6e82756bb66daa8a55e655e1acb61c3f7d20e29c179aaf45091bf124b5f3e454"},"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":"8cac62aa76c37ce66766e5640c1bb9a863e1a97fa528d5aa7328f853dbf10b51"},"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":"8f78cc937e3224ad68b6179fb2d33a59b49eb02ad210dca990b44cfed49bff56"},"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":"3c178b5df30ae3835b2a69751a1f407c53fd3cd10005389f7d8fc977f5478ee7"},"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":"1f6c12d6105dcbf80340a81f9a86b18ef5a4cc172248d15aa8b41e736ba1ffc4"},"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":"b77e42fec07929a0116312916167e5f18080b7ce132cecd39fdee14491461028"},"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":"a9e517c4fce4c0e5273177815da61c33b13f0fc4bbd82d6cb9aefde7692cbfc7"},"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":"66805b98899090b8c2e9d122914593672a45840b22331bd2c32b0e2899733539"},"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":"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":"6e444be3d0b15aa4a26c417fac404017f70ee19ce75290b997a9a1c8ad3c2dd0"}},{"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-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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":20,"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."]}]}