{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"InstructionModule.tryReadFrom (cyclomatic 641): InstructionModule.tryReadFrom has cyclomatic complexity 641 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/Libs/FShade.SpirV/Core/SpirVInstructions.fs holds 2 of the 71 methods over the threshold \u2014 including the worst \u2014 and 958 of the 2626 points over it (36%), 2.6\u00D7 the next-largest file (src/Libs/FShade.Core/Optimizer.fs at 362). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.SpirV/Core/SpirVInstructions.fs"},"region":{"startLine":3518}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56b2d4a25a385b4cfd366dc95aff18c87815b4402237915c071a69eb6f5cf0b"}},{"ruleId":"D1","level":"warning","message":{"text":"InstructionModule.writeTo (cyclomatic 347): InstructionModule.writeTo has cyclomatic complexity 347 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/Libs/FShade.SpirV/Core/SpirVInstructions.fs holds 2 of the 71 methods over the threshold \u2014 including the worst \u2014 and 958 of the 2626 points over it (36%), 2.6\u00D7 the next-largest file (src/Libs/FShade.Core/Optimizer.fs at 362). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.SpirV/Core/SpirVInstructions.fs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"08dce31e2f340ca3c3a122e5c9a341e04f1d81fc149f549ca3cec003c653e60d"}},{"ruleId":"D1","level":"warning","message":{"text":"HelpersModule.tryGetBuiltInMethod (cyclomatic 148): HelpersModule.tryGetBuiltInMethod has cyclomatic complexity 148 (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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a807e311539974bc59621a161d469476323116408308c095424422df283741"}},{"ruleId":"D1","level":"warning","message":{"text":"Preprocessor.preprocessNormalS (cyclomatic 126): Preprocessor.preprocessNormalS has cyclomatic complexity 126 (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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e5437f2f78fe600e93b333d98217de20c174a35d8f1058ccc32e54785ab6cc"}},{"ruleId":"D1","level":"warning","message":{"text":"ConstantFolding.evaluateConstantsS (cyclomatic 123): ConstantFolding.evaluateConstantsS has cyclomatic complexity 123 (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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cef1630e4cde9180dea37a4b15d428dede54662ae58bd511a53cd44736e4070"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleExpr (cyclomatic 109): Assembler.assembleExpr has cyclomatic complexity 109 (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/Libs/FShade.SpirV/Assembler.fs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bb02ed31d85003090ed33bc371f680221073464bfb4c0260a39797e4b6aa79"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleExprS (cyclomatic 95): Assembler.assembleExprS has cyclomatic complexity 95 (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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"859a744d418022c9bec6fa9465c9063683306fb0125244cad4fad412c721ccd5"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.main (cyclomatic 88): Program.main has cyclomatic complexity 88 (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/FShade.Preprocessor/Program.fs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"976db3bda2f88ac2740819898e42b9b93fb4934dd8b22dc7dbbe3ff9f13fcb47"}},{"ruleId":"D1","level":"warning","message":{"text":"Expr.serializeInternal (cyclomatic 88): Expr.serializeInternal has cyclomatic complexity 88 (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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd02c3cb2a69d987b2ae45de2da831a6c3a581caa85d1683dc295b31e9145b6"}},{"ruleId":"D1","level":"warning","message":{"text":"DeadCodeElimination.eliminateDeadCodeS (cyclomatic 82): DeadCodeElimination.eliminateDeadCodeS has cyclomatic complexity 82 (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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ae7aabf22adf00de767fef052dd5908a970bc875b9ad5190158f24687fe947"}},{"ruleId":"D1","level":"warning","message":{"text":"Inlining.inlineS (cyclomatic 78): Inlining.inlineS has cyclomatic complexity 78 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc473a8b68f5f893ed3721514d54745bc7402aa4962d5de90cc1c6ebc425ae6d"}},{"ruleId":"D1","level":"warning","message":{"text":"CompilerModule.toCExprS (cyclomatic 74): CompilerModule.toCExprS has cyclomatic complexity 74 (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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f617a6d2fa56734cd8975fa20dd8b7034790f35759b362084d68e35bedc4d328"}},{"ruleId":"D1","level":"warning","message":{"text":"Expr.deserializeInternal (cyclomatic 64): Expr.deserializeInternal has cyclomatic complexity 64 (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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d021a41ec64e1cf44cf8c0fea1fd912f749411dff96cf3ceaa2e942738b98d4"}},{"ruleId":"D1","level":"warning","message":{"text":"CompilerModule.toCStatementS (cyclomatic 63): CompilerModule.toCStatementS has cyclomatic complexity 63 (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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"59031ab42d4a3a8f8f287c016dca46234cb4023615c21855b09ca2d736ffd1aa"}},{"ruleId":"D1","level":"warning","message":{"text":"Value.serialize (cyclomatic 60): Value.serialize has cyclomatic complexity 60 (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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd292eecb7ef86d4ab96ff7b0a662e4f84798344665bd86dc306e5b8b478c59"}},{"ruleId":"D1","level":"warning","message":{"text":"IntrinsicFunctions.|TextureLookup|_| (cyclomatic 60): IntrinsicFunctions.|TextureLookup|_| has cyclomatic complexity 60 (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/Libs/FShade.GLSL/IntrinsicFunctions.fs"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9a024ba236e83a0d68a8e60d60f09b187189d401d04ad6960676bfde463fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"Preprocessor.preprocessRaytracingS (cyclomatic 51): Preprocessor.preprocessRaytracingS has cyclomatic complexity 51 (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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cacb65694b8b0e30a014d953e088b1e960b98bd598a91b1aa9f7db94478acb"}},{"ruleId":"D1","level":"warning","message":{"text":"InputLifting.liftInputsS (cyclomatic 50): InputLifting.liftInputsS has cyclomatic complexity 50 (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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a352da087eb3f08a83bef54e450b876b25e0127d123fbb9ea627323df526d625"}},{"ruleId":"D1","level":"warning","message":{"text":"DeadCodeElimination.withoutValueS (cyclomatic 49): DeadCodeElimination.withoutValueS has cyclomatic complexity 49 (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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f019120385399fde4edef31d3b2f999d9f5ce7aaa458ff0d1714ab96b7e4ba"}},{"ruleId":"D1","level":"warning","message":{"text":"PrettyPrinter.print (cyclomatic 48): PrettyPrinter.print has cyclomatic complexity 48 (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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca99a4fd2208e0e65a6fc094dbcea94b5744d2af0a215426c0f8ffb99958b0c"}},{"ruleId":"D1","level":"warning","message":{"text":"Interpreter.tryGetTopOfStackInternal (cyclomatic 43): Interpreter.tryGetTopOfStackInternal has cyclomatic complexity 43 (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/FShade.Preprocessor/Interpreter.fs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"424e7686c974692bb68a34eaca4bcf53f7626e25fff58e15807863b7e617a670"}},{"ruleId":"D1","level":"warning","message":{"text":"DoubleChecker.run (cyclomatic 42): DoubleChecker.run has cyclomatic complexity 42 (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/FShade.Preprocessor/Double.fs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"031ebe5a5bd99f224318e26b40f74cbe1b182c50136c6741d4e6bddea9412d74"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprExtensions.Expr.TryEval.Static (cyclomatic 38): ExprExtensions.Expr.TryEval.Static has cyclomatic complexity 38 (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/Libs/FShade.Imperative/Utilities.fs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fbe2f45ed840241876ccdf18d7738519cc527403213dc960004daff4b56bf0"}},{"ruleId":"D1","level":"warning","message":{"text":"Shader.serializeInternal (cyclomatic 37): Shader.serializeInternal has cyclomatic complexity 37 (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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed1a3cd14d152c7e7c97bee6518b1c90af031da1876ab48ce9d4ca7559a8195"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleEntryS (cyclomatic 37): Assembler.assembleEntryS has cyclomatic complexity 37 (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. This is NOT this file\u0027s highest cyclomatic complexity: CExpr.splitTexturesAndSamplers (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2596}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c13a1deeba25aab8c5864fdd479a96b07b38c2ba809640cfbfeb9854a9967a"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleEntryParameterS (cyclomatic 36): Assembler.assembleEntryParameterS has cyclomatic complexity 36 (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. This is NOT this file\u0027s highest cyclomatic complexity: CExpr.splitTexturesAndSamplers (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a1e4df22feeb01180da320ae1560e5ddcfb292f6fdd17ced76fa7193f65f13"}},{"ruleId":"D1","level":"warning","message":{"text":"GLSLShaderInterfaceModule.serializeInternal (cyclomatic 36): GLSLShaderInterfaceModule.serializeInternal has cyclomatic complexity 36 (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/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9efe724fc5b5269b31417cff8452307f34626fdd35015162472cc2fddc5fbb3"}},{"ruleId":"D1","level":"warning","message":{"text":"Value.deserialize (cyclomatic 35): Value.deserialize has cyclomatic complexity 35 (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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f4efc8f125e6416b52dee9f9f19777b5a31e5adee6bf030f25e1f734a831fa"}},{"ruleId":"D1","level":"warning","message":{"text":"TextureFunctions.|TextureLookup|_| (cyclomatic 35): TextureFunctions.|TextureLookup|_| has cyclomatic complexity 35 (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/Libs/FShade.SpirV/Assembler.fs"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"9446dc92dca271b8700b53338e080ea6bf0a7cab260e600610651a63ca798d43"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleStatementS (cyclomatic 33): Assembler.assembleStatementS has cyclomatic complexity 33 (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. This is NOT this file\u0027s highest cyclomatic complexity: CExpr.splitTexturesAndSamplers (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaba5a62bf8276a0f8b802683f1155cb57316bd4b7aad8f43d33c818b6a5bfb"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicQuotationPatterns.|Uniform|_| (cyclomatic 32): BasicQuotationPatterns.|Uniform|_| has cyclomatic complexity 32 (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/Libs/FShade.Core/Reflection.fs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1c602af1250080324a3a6523af38b01285216dd9575799b5773c6ca5fc45d9"}},{"ruleId":"D1","level":"warning","message":{"text":"GLSLProgramInterfaceModule.serializeInternal (cyclomatic 31): GLSLProgramInterfaceModule.serializeInternal has cyclomatic complexity 31 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cdc7a41da2c42d2e544299c8df7059743bda602643d092084fb88f949c931d"}},{"ruleId":"D1","level":"warning","message":{"text":"ShaderModule.withOutputs (cyclomatic 29): ShaderModule.withOutputs has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d735812cbc284cd38538b82197764257640b94573eaf1443db7508c168397c5"}},{"ruleId":"D1","level":"warning","message":{"text":"CExprModule.visit (cyclomatic 29): CExprModule.visit has cyclomatic complexity 29 (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/Libs/FShade.Imperative/Ast.fs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d511705ff51fd42216fb2b0d420aeb52a40d49958a30d2615fa5f3beeba0c85"}},{"ruleId":"D1","level":"warning","message":{"text":"Composition.gsgs (cyclomatic 27): Composition.gsgs has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4978}}}],"partialFingerprints":{"codehealthFindingId/v1":"260d19b128fed6adc4f5217075e37ffa106c2bf2ce724de633c3943f999f1ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleLiteralS (cyclomatic 27): Assembler.assembleLiteralS has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: CExpr.splitTexturesAndSamplers (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db677fba4ccc4b9ed342febac054722931ad08f81cce47635d4a345e0e75685"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleUniformsS (cyclomatic 27): Assembler.assembleUniformsS has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: CExpr.splitTexturesAndSamplers (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2202}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cbdd4363fabf4d34cb877bd2aa6e82a8b714fcc1d15f7740407a543bbfe726"}},{"ruleId":"D1","level":"warning","message":{"text":"Patterns.|Conv|_| (cyclomatic 26): Patterns.|Conv|_| has cyclomatic complexity 26 (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":"src/FShade.Preprocessor/Interpreter.fs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ce2590a0a68ce6ad964457dbc8b08073a7e624fd747b0bc9b73396a3a8a83d"}},{"ruleId":"D1","level":"warning","message":{"text":"Helpers.flatten (cyclomatic 26): Helpers.flatten has cyclomatic complexity 26 (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/Libs/FShade.Imperative/ModuleCompiler.fs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7e05f0701fa1689645b289fce62e80be5ee16399966b23aac220fbe1a71579"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleStatement (cyclomatic 25): Assembler.assembleStatement has cyclomatic complexity 25 (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/Libs/FShade.SpirV/Assembler.fs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e52e085f51f10f1a293522dd6baec8030a77f8efd63ccb2aac395c24f8c4a0"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.serializeInternal (cyclomatic 24): Type.serializeInternal has cyclomatic complexity 24 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9393025836ec91f264884b86e01686f603717f4e640bbd241a9c8fd8e1605c"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleTypeS (cyclomatic 24): Assembler.assembleTypeS has cyclomatic complexity 24 (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. This is NOT this file\u0027s highest cyclomatic complexity: CExpr.splitTexturesAndSamplers (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"172f4f664a7ae4b9de4fbc1ccb3960b8b4988e936954fbe0b0fbaf9fa06d7124"}},{"ruleId":"D1","level":"warning","message":{"text":"SamplerState.serialize (cyclomatic 23): SamplerState.serialize 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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a9d71d8aa130a8c391d15143674f4d8497a438d108a0b8b6094ad7772e54b8"}},{"ruleId":"D1","level":"warning","message":{"text":"Backend.TryGetIntrinsicType (cyclomatic 23): Backend.TryGetIntrinsicType 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. This is NOT this file\u0027s highest cyclomatic complexity: CExpr.splitTexturesAndSamplers (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd902b8a40d9d2fad35d0fe19a4865f628fafad6dd62c164a18628390b134b6b"}},{"ruleId":"D1","level":"warning","message":{"text":"SamplerState.serialize (cyclomatic 23): SamplerState.serialize 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. This is NOT this file\u0027s highest cyclomatic complexity: GLSLType.toString (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f45474cf0ccebe8620cf38d540d64517c24dad418d1482754508506f283272"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeShaderModule.ofExprInternal (cyclomatic 22): ComputeShaderModule.ofExprInternal has cyclomatic complexity 22 (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/Libs/FShade.Core/ComputeShader.fs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f24758f47caa6624a2d5dd5ffe42652f7f7691e388848ef5e652d79a91ccaf"}},{"ruleId":"D1","level":"warning","message":{"text":"StatementHoisting.processStatement (cyclomatic 22): StatementHoisting.processStatement has cyclomatic complexity 22 (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. This is NOT this file\u0027s highest cyclomatic complexity: StatementHoisting.processExpression (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":3228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9096861f744012be3d314da74e6085afc1a2d4f7c55e591ce1167dec6303e9b"}},{"ruleId":"D1","level":"warning","message":{"text":"CSE.findIndexedCommonSubExpressions (cyclomatic 22): CSE.findIndexedCommonSubExpressions has cyclomatic complexity 22 (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. This is NOT this file\u0027s highest cyclomatic complexity: StatementHoisting.processExpression (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":3391}}}],"partialFingerprints":{"codehealthFindingId/v1":"b018ab2ae488837498bbd61d795c73730a288de880e2c865f65d216d24918305"}},{"ruleId":"D1","level":"warning","message":{"text":"Patterns.|Ldc|_| (cyclomatic 21): Patterns.|Ldc|_| has cyclomatic complexity 21 (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":"src/FShade.Preprocessor/Interpreter.fs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2782727aafb7a2c995723db5e9f207082d4b3fd7f30b5a320a203b6534c1133d"}},{"ruleId":"D1","level":"warning","message":{"text":"Inlining.isMutated (cyclomatic 21): Inlining.isMutated has cyclomatic complexity 21 (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. This is NOT this file\u0027s highest cyclomatic complexity: StatementHoisting.processExpression (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":2557}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac6a6100c4e543aba9997c997e54556449e48ccdccc759715a1333377a65b2f"}},{"ruleId":"D1","level":"warning","message":{"text":"GLSLProgramInterface.GetUniformStages (cyclomatic 21): GLSLProgramInterface.GetUniformStages has cyclomatic complexity 21 (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. This is NOT this file\u0027s highest cyclomatic complexity: GLSLType.toString (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c278a0d07e21dc88ee3806f8fd069610cf1259a8505b9e0a1d5fa49148f687"}},{"ruleId":"D1","level":"warning","message":{"text":"Interpreter.getType (cyclomatic 20): Interpreter.getType 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/FShade.Preprocessor/Interpreter.fs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ee44e2d69ac2436039d8b7cbfa66a40f312bbd6a6c9b5c9478d904939314eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ShaderDebugger.attach (cyclomatic 20): ShaderDebugger.attach 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/Libs/FShade.Debug/Debugger.fs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a7987f491e1360ab57685b6a9c9cfd76310fbcebd3320f9df2417f2e631bd6"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.getReplacableShaderCompileMethods (cyclomatic 19): Program.getReplacableShaderCompileMethods 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/FShade.Preprocessor/Program.fs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cf5219199c314e28573f047178b29a5f4de813988e7adf0cd182584b051735"}},{"ruleId":"D1","level":"warning","message":{"text":"Preprocessor.computeStorageAccessS (cyclomatic 18): Preprocessor.computeStorageAccessS has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e841ca2661fc02e09c67815f098b7e7a344c1fbb5eee0338a4ce7f3aa5454f"}},{"ruleId":"D1","level":"warning","message":{"text":"GeometryInfo.tryGetUpperBound (cyclomatic 18): GeometryInfo.tryGetUpperBound has cyclomatic complexity 18 (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. This shape REPEATS in the file: one other method here (GeometryInfo.tryGetLowerBound) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":3022}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3a9809775dc7f78e3a93f77618e8a990748d09c4a0f35d1e8daf6ca2edd776"}},{"ruleId":"D1","level":"warning","message":{"text":"GeometryInfo.tryGetLowerBound (cyclomatic 18): GeometryInfo.tryGetLowerBound has cyclomatic complexity 18 (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. This shape REPEATS in the file: one other method here (GeometryInfo.tryGetUpperBound) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":3067}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4c1f67fc2df00dc0ba5e62f8d14479000a3ed1171e732d9f5df67e15f1a8f5"}},{"ruleId":"D1","level":"warning","message":{"text":"Composition.vsgs (cyclomatic 18): Composition.vsgs has cyclomatic complexity 18 (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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":5137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecb474c6fb687fbaa8b26188e2019cb7fa393fbb544f0bda7a52479b0417213"}},{"ruleId":"D1","level":"warning","message":{"text":"EffectModule.tryReplaceGeometry (cyclomatic 17): EffectModule.tryReplaceGeometry 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":"src/Libs/FShade.Core/Effect.fs"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7347e84d2c271652b239718981e054c3579238de64f1260f6e9d4ce7d78213fc"}},{"ruleId":"D1","level":"warning","message":{"text":"Shader.deserializeInternal (cyclomatic 17): Shader.deserializeInternal 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":"src/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f33196f169d0d1e606eaf2cdb91e16dc0947b38e1dfaf7ed337b96f6e7a1bf"}},{"ruleId":"D1","level":"warning","message":{"text":"Preprocessor.preprocessComputeS (cyclomatic 17): Preprocessor.preprocessComputeS 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":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"2940d8556c272f55d32509ba82dfd0f4fc48bdc9b6b4213fda8f3d9b84aef5d9"}},{"ruleId":"D1","level":"warning","message":{"text":"GeometryInfo.geometryStats (cyclomatic 17): GeometryInfo.geometryStats 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":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":3113}}}],"partialFingerprints":{"codehealthFindingId/v1":"911561f9318efbac786c5ca78637b50a6b36a569d0b9e706a197126db8b584e1"}},{"ruleId":"D1","level":"warning","message":{"text":"ShaderModule.toEntryPoint (cyclomatic 17): ShaderModule.toEntryPoint 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":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4293}}}],"partialFingerprints":{"codehealthFindingId/v1":"7103fa5cba40583d6edbdda5ece046b0cf1cffd3786562e39d641d9fd78f78ba"}},{"ruleId":"D1","level":"warning","message":{"text":"Inlining.canInline (cyclomatic 17): Inlining.canInline 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. This is NOT this file\u0027s highest cyclomatic complexity: StatementHoisting.processExpression (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":2625}}}],"partialFingerprints":{"codehealthFindingId/v1":"5703db9c5685182e3d20724eee492f323377de40b2bf83c1213c40c3d8b3b110"}},{"ruleId":"D1","level":"warning","message":{"text":"CompilerModule.asExternalS (cyclomatic 17): CompilerModule.asExternalS 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. This is NOT this file\u0027s highest cyclomatic complexity: HelpersModule.tryGetBuiltInField (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d05209296d3700bfd7c6a79c62abe2386665fe9be36483a1ec86a070aa1ace"}},{"ruleId":"D1","level":"warning","message":{"text":"CStatementModule.visit (cyclomatic 17): CStatementModule.visit 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. This is NOT this file\u0027s highest cyclomatic complexity: CLiteralModule.tryCreate (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/Ast.fs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6fe02f0814b2ec0ad60e262b02f71f7b003a4d432b777337fa4c7ef2739f12"}},{"ruleId":"D1","level":"warning","message":{"text":"GLSLTypeModule.ofCType (cyclomatic 17): GLSLTypeModule.ofCType 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. This is NOT this file\u0027s highest cyclomatic complexity: GLSLType.toString (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8070d4da01855ec923a4350551b4dd1e71320ea665f0b9d2ce8db51e8feb86"}},{"ruleId":"D1","level":"warning","message":{"text":"GLSLShaderInterface.ToString (cyclomatic 17): GLSLShaderInterface.ToString 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. This is NOT this file\u0027s highest cyclomatic complexity: GLSLType.toString (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cc3cecd496510c2513bb3cffb867e84c0fed28c27c1b1f6417031e4a63a993"}},{"ruleId":"D1","level":"warning","message":{"text":"GLSLShaderInterfaceModule.deserializeInternal (cyclomatic 17): GLSLShaderInterfaceModule.deserializeInternal 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. This is NOT this file\u0027s highest cyclomatic complexity: GLSLType.toString (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a20683c39ad8b3be9cf772f14494eee53a445ddcf4c4e680178121e65b090f0"}},{"ruleId":"D1","level":"warning","message":{"text":"UtilityFunctionModule.tryCreate\u0027 (cyclomatic 16): UtilityFunctionModule.tryCreate\u0027 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":"src/Libs/FShade.Imperative/UtilityFunction.fs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96262fc5a70f4ae997048db5360b039fe0cc5c44fe568e2d10934f3644d5bdc"}},{"ruleId":"D1","level":"warning","message":{"text":"Assembler.assembleEntryDef (cyclomatic 16): Assembler.assembleEntryDef 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/Libs/FShade.SpirV/Assembler.fs"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"343f22afcce8831d2f64967d7b9661e18dcf2dc29cd81ccdbfef6d2275d2c6d7"}},{"ruleId":"D2","level":"warning","message":{"text":"InstructionModule.tryReadFrom (cognitive 961): InstructionModule.tryReadFrom has cognitive complexity 961 (threshold 15). Drivers by points: if/else 640 (960 pts), match/switch 1 (nesting depth added 320). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/Libs/FShade.SpirV/Core/SpirVInstructions.fs holds 2 of the 76 methods over the threshold \u2014 including the worst \u2014 and 1006 of the 3111 points over it (32%), 2.8\u00D7 the next-largest file (src/FShade.Preprocessor/Program.fs at 359). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.SpirV/Core/SpirVInstructions.fs"},"region":{"startLine":3518}}}],"partialFingerprints":{"codehealthFindingId/v1":"5529b8f0dd9571e4b4def453e55bc119b949f9526cf6f61c773ab0ef74e01a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.main (cognitive 326): Program.main has cognitive complexity 326 (threshold 15). Drivers by points: if/else 38 (116 pts), match/switch 18 (112 pts), loops 12 (54 pts), error handling 7 (39 pts), boolean chains 5 (nesting depth added 246). 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/FShade.Preprocessor/Program.fs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"53be76ced8a8cbedbc003a62f0b4104681ba84c26a1daf7e2d94c3dde7cc9b84"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstantFolding.evaluateConstantsS (cognitive 154): ConstantFolding.evaluateConstantsS has cognitive complexity 154 (threshold 15). Drivers by points: match/switch 39 (98 pts), error handling 6 (24 pts), if/else 15 (23 pts), boolean chains 6, loops 1 (3 pts) (nesting depth added 87). 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"23419880c410b36008050970550efbe51506e7e32bdcb365d0f3d13bdf97971f"}},{"ruleId":"D2","level":"warning","message":{"text":"Preprocessor.preprocessNormalS (cognitive 134): Preprocessor.preprocessNormalS has cognitive complexity 134 (threshold 15). Drivers by points: if/else 57 (88 pts), match/switch 19 (42 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 55). 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"33146c6e54757440da462cc508e2df717d9179f451720ac6fc72055a9436c206"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubleChecker.run (cognitive 119): DoubleChecker.run has cognitive complexity 119 (threshold 15). Drivers by points: match/switch 10 (51 pts), loops 16 (40 pts), if/else 7 (26 pts), boolean chains 2 (nesting depth added 84). 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/FShade.Preprocessor/Double.fs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5aeb1a67a2c6be5c80330a4d4d1888bb19b4bc19c817a857fc799c23529b5c7"}},{"ruleId":"D2","level":"warning","message":{"text":"Interpreter.tryGetTopOfStackInternal (cognitive 100): Interpreter.tryGetTopOfStackInternal has cognitive complexity 100 (threshold 15). Drivers by points: if/else 18 (40 pts), match/switch 10 (35 pts), loops 4 (14 pts), error handling 2 (10 pts), boolean chains 1 (nesting depth added 65). 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/FShade.Preprocessor/Interpreter.fs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fcf5cd76859bb1e657690587d73b158a601c764161f4408df33d6f7c13ae47"}},{"ruleId":"D2","level":"warning","message":{"text":"DeadCodeElimination.eliminateDeadCodeS (cognitive 85): DeadCodeElimination.eliminateDeadCodeS has cognitive complexity 85 (threshold 15). Drivers by points: if/else 28 (45 pts), match/switch 17 (40 pts) (nesting depth added 40). 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"91415df2b797be5691a501f8b2a7fa3e537ab342462d9e79469014e58e62ce88"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleExprS (cognitive 84): Assembler.assembleExprS has cognitive complexity 84 (threshold 15). Drivers by points: if/else 27 (47 pts), match/switch 11 (21 pts), loops 2 (9 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 39). 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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"021bff19986229cef34cd8bc2f12c9f61e9b482d888e053c8bb4aaf468fc1c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr.serializeInternal (cognitive 77): Expr.serializeInternal has cognitive complexity 77 (threshold 15). Drivers by points: loops 20 (40 pts), match/switch 11 (23 pts), if/else 6 (12 pts), boolean chains 2 (nesting depth added 38). 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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"2573f009e04328d50a6ad473755c6a0c0059904a0273b4eac83b314297806407"}},{"ruleId":"D2","level":"warning","message":{"text":"InstructionModule.writeTo (cognitive 75): InstructionModule.writeTo has cognitive complexity 75 (threshold 15). Drivers by points: if/else 48 (72 pts), match/switch 2 (3 pts) (nesting depth added 25). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/Libs/FShade.SpirV/Core/SpirVInstructions.fs holds 2 of the 76 methods over the threshold \u2014 including the worst \u2014 and 1006 of the 3111 points over it (32%), 2.8\u00D7 the next-largest file (src/FShade.Preprocessor/Program.fs at 359). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.SpirV/Core/SpirVInstructions.fs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"442605217c12b351464604d35c88dd389cb9643c08422303d1856280a1dbd91a"}},{"ruleId":"D2","level":"warning","message":{"text":"Inlining.inlineS (cognitive 71): Inlining.inlineS has cognitive complexity 71 (threshold 15). Drivers by points: if/else 16 (35 pts), match/switch 11 (31 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 40). 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a44a28fff01b05db4dfabf7af273db35de062b6849e926b3c2ceb53cea45de"}},{"ruleId":"D2","level":"warning","message":{"text":"CompilerModule.toCExprS (cognitive 68): CompilerModule.toCExprS has cognitive complexity 68 (threshold 15). Drivers by points: match/switch 21 (54 pts), if/else 9 (14 pts) (nesting depth added 38). 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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56781b0362d4580ee24dec974ae9342198648030ee0b1c8db6ed80779889ac2"}},{"ruleId":"D2","level":"warning","message":{"text":"Value.serialize (cognitive 65): Value.serialize has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (32 pts), loops 6 (21 pts), match/switch 4 (10 pts), boolean chains 2 (nesting depth added 32). 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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a77f8c345ba2feb9975a85fdab6265ffa824bee24f32103b5849fa20347d0e4"}},{"ruleId":"D2","level":"warning","message":{"text":"CompilerModule.toCStatementS (cognitive 65): CompilerModule.toCStatementS has cognitive complexity 65 (threshold 15). Drivers by points: match/switch 18 (44 pts), if/else 8 (20 pts), boolean chains 1 (nesting depth added 38). 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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd091f780ab380fde7d52ace4fbc1e1ebba9bef691c3a8e6a00df4a42d94b2b6"}},{"ruleId":"D2","level":"warning","message":{"text":"ShaderModule.withOutputs (cognitive 64): ShaderModule.withOutputs has cognitive complexity 64 (threshold 15). Drivers by points: match/switch 9 (35 pts), if/else 15 (29 pts) (nesting depth added 40). 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffe586e513fc0238f9369b780e7ec4470fb471496a47df9986c934ddf901c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"HelpersModule.tryGetBuiltInMethod (cognitive 64): HelpersModule.tryGetBuiltInMethod has cognitive complexity 64 (threshold 15). Drivers by points: match/switch 31 (62 pts), boolean chains 2 (nesting depth added 31). 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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3524005a7ff3e29ccde9a58a8b32181ba44f12f4e4f752777dc1c14e1c86f5"}},{"ruleId":"D2","level":"warning","message":{"text":"IntrinsicFunctions.|TextureLookup|_| (cognitive 57): IntrinsicFunctions.|TextureLookup|_| has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (30 pts), match/switch 13 (25 pts), boolean chains 2 (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/Libs/FShade.GLSL/IntrinsicFunctions.fs"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"27857248ff806efb566ff76498ebdda482504024c2989a4f4af738a85cfa835e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprExtensions.Expr.TryEval.Static (cognitive 56): ExprExtensions.Expr.TryEval.Static has cognitive complexity 56 (threshold 15). Drivers by points: match/switch 17 (40 pts), error handling 2 (8 pts), if/else 4 (8 pts) (nesting depth added 33). 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/Libs/FShade.Imperative/Utilities.fs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"200d1f21acf4702387e9961bbe93f783b94b047785e5ea3f7d70161e14a8acd5"}},{"ruleId":"D2","level":"warning","message":{"text":"Value.deserialize (cognitive 55): Value.deserialize has cognitive complexity 55 (threshold 15). Drivers by points: match/switch 9 (27 pts), if/else 12 (18 pts), loops 2 (8 pts), boolean chains 2 (nesting depth added 30). 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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"98df335909b7704f0017ebca999191acca18380e8dc49fd505d9c9bf63b66669"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicQuotationPatterns.|Uniform|_| (cognitive 54): BasicQuotationPatterns.|Uniform|_| has cognitive complexity 54 (threshold 15). Drivers by points: match/switch 15 (42 pts), if/else 4 (10 pts), boolean chains 2 (nesting depth added 33). 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/Libs/FShade.Core/Reflection.fs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"299d9f934146acacd010fc71aa4bb4db1cd09d4ef9158a5b49d08395f55904cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleExpr (cognitive 53): Assembler.assembleExpr has cognitive complexity 53 (threshold 15). Drivers by points: match/switch 20 (41 pts), if/else 6 (12 pts) (nesting depth added 27). 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/Libs/FShade.SpirV/Assembler.fs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7df901ab2fbd83b7c49beb1bf23d51b5a970b8320d05ea7acb39b104d35bbe"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembly.tryGetMethodName (cognitive 52): Assembly.tryGetMethodName has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (42 pts), error handling 3 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Debug/Assembly.fs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a84cef49f7db14fe7c89808ecc463ddf131fbd981169fb5dd1ece285e24840"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.serializeInternal (cognitive 50): Type.serializeInternal has cognitive complexity 50 (threshold 15). Drivers by points: loops 7 (24 pts), if/else 12 (17 pts), match/switch 3 (7 pts), boolean chains 2 (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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dcb27301d2bca3ca739032c1fa3ba82e0c7a2e6bb0f2157658eef340621c74"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleEntryParameterS (cognitive 48): Assembler.assembleEntryParameterS has cognitive complexity 48 (threshold 15). Drivers by points: match/switch 12 (25 pts), if/else 8 (14 pts), boolean chains 9 (nesting depth added 19). 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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d85ffbc981b0d85c8bf5102bdd1c398e680964b57119462a6079d7f6bd9896a"}},{"ruleId":"D2","level":"warning","message":{"text":"GLSLProgramInterfaceModule.serializeInternal (cognitive 46): GLSLProgramInterfaceModule.serializeInternal has cognitive complexity 46 (threshold 15). Drivers by points: loops 18 (28 pts), match/switch 5 (15 pts), if/else 2 (3 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"788eb30997322a41810128d1043fbe75acec3c2a1b4010faaeee05abde2e7383"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.getReplacableShaderCompileMethods (cognitive 43): Program.getReplacableShaderCompileMethods has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (30 pts), error handling 4 (6 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/FShade.Preprocessor/Program.fs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"479523245e48b8de7387bf8d03762f21b644211471ede18ce52d15f595fb3a85"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr.deserializeInternal (cognitive 41): Expr.deserializeInternal has cognitive complexity 41 (threshold 15). Drivers by points: match/switch 11 (21 pts), if/else 8 (12 pts), loops 4 (8 pts) (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":"src/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d93b27e5bc4c54247baf9845086173346bc0b2f7e9898d9134d10721bf9d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"Helpers.flatten (cognitive 40): Helpers.flatten has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 7 (14 pts), loops 7 (10 pts) (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/Libs/FShade.Imperative/ModuleCompiler.fs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60cd85256e900224f9085eb71e9680bc853caa4bdfbe14d9c5ae47936236d49"}},{"ruleId":"D2","level":"warning","message":{"text":"UtilityFunctionModule.tryCreate\u0027 (cognitive 39): UtilityFunctionModule.tryCreate\u0027 has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 5 (18 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/UtilityFunction.fs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceb45ec048d296490073290f7adf8f4bc2d7449a12cfcc88e6daaba459f0bcc"}},{"ruleId":"D2","level":"warning","message":{"text":"ShaderDebugger.attach (cognitive 39): ShaderDebugger.attach has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 6 (13 pts), match/switch 2 (6 pts), boolean chains 3, error handling 1 (3 pts) (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/Libs/FShade.Debug/Debugger.fs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b4247467f0816ceed94d939fcbecb5d5fe1657ad9625d982cf632e87617c32"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectDataModule.tryLoad (cognitive 36): ProjectDataModule.tryLoad has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 5 (16 pts), error handling 1 (3 pts) (nesting depth added 22). 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/Libs/FShade.Debug/ProjectData.fs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d353e225adcf0c9352725dd229b720a56239478b3915801c9d307df73005f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.loadAllAssemblies (cognitive 35): Program.loadAllAssemblies has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (20 pts), error handling 2 (7 pts), match/switch 3 (6 pts), loops 1 (2 pts) (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/FShade.Preprocessor/Program.fs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"743e31b3ba0b46ed600e3bccdffa043ab71d20e8576d1fa90784ea0b2fa2b842"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleUniformsS (cognitive 33): Assembler.assembleUniformsS has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 9 (15 pts), 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":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef0996c67ff719e62aca38ab14d64646a5c586b7768ad8da44c624228636c72"}},{"ruleId":"D2","level":"warning","message":{"text":"Composition.gsgs (cognitive 32): Composition.gsgs has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 10 (22 pts), loops 3 (6 pts), if/else 2 (4 pts) (nesting depth added 17). 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4978}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db3dc63d999f8a380aa9c3ff97bd0dc768a01ac8e2223d2f54cf4a4b935794e"}},{"ruleId":"D2","level":"warning","message":{"text":"DeadCodeElimination.withoutValueS (cognitive 32): DeadCodeElimination.withoutValueS has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 8 (20 pts), if/else 8 (12 pts) (nesting depth added 16). 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfeeffff36b9ed98ecd0e586997c527ba2d75b055fd34190f9a77087eb00b2e"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleEntryS (cognitive 32): Assembler.assembleEntryS has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 15 (27 pts), if/else 3 (5 pts) (nesting depth added 14). 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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2596}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef668206ea39b47b25e727a3dd13b762b3efee45dacdac1d1cc3d692fa51bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"CSE.findIndexedCommonSubExpressions (cognitive 31): CSE.findIndexedCommonSubExpressions has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 10 (20 pts), if/else 3 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 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. 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":3391}}}],"partialFingerprints":{"codehealthFindingId/v1":"899899ccac1b5206e1a3a63894d72f74772c58f5e875854fbbf59204796761db"}},{"ruleId":"D2","level":"warning","message":{"text":"Patterns.|Conv|_| (cognitive 30): Patterns.|Conv|_| has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 10 (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":"src/FShade.Preprocessor/Interpreter.fs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"532b1de88f6fcc2af0eb2bf0bb83f44b2b35b354e55e7dd3d16578fcf8a6ef47"}},{"ruleId":"D2","level":"warning","message":{"text":"PrettyPrinter.print (cognitive 30): PrettyPrinter.print has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 9 (18 pts), if/else 6 (9 pts), boolean chains 3 (nesting depth added 12). 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"35802aa8c47ccb4e06ddb7142a1a7b512b83703b7e144c6fb4ba521220b23ade"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleLiteralS (cognitive 30): Assembler.assembleLiteralS has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 7 (17 pts), if/else 8 (12 pts), boolean chains 1 (nesting depth added 14). 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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"182340fa6013e5451163572e091c16f602e0b4e7dfa67134bfc03d68e528b9a9"}},{"ruleId":"D2","level":"warning","message":{"text":"GLSLShaderInterfaceModule.serializeInternal (cognitive 30): GLSLShaderInterfaceModule.serializeInternal has cognitive complexity 30 (threshold 15). Drivers by points: loops 14 (16 pts), match/switch 5 (14 pts) (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"6febd8a3e4f104890dca6c0f35ec28ef7409e3d85e73e0065b6440eaea89dca1"}},{"ruleId":"D2","level":"warning","message":{"text":"Preprocessor.computeStorageAccessS (cognitive 27): Preprocessor.computeStorageAccessS has cognitive complexity 27 (threshold 15). Drivers by points: loops 7 (18 pts), match/switch 4 (9 pts) (nesting depth added 16). 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2598ace611c965f88d7ebe5bd46a26e5f88889595e204cbe5e89926af01a771"}},{"ruleId":"D2","level":"warning","message":{"text":"Compiler.build (cognitive 27): Compiler.build has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (9 pts), error handling 1 (3 pts), match/switch 2 (3 pts) (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/Libs/FShade.Debug/Compiler.fs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5a22d728c71ca3f5ddae165cb9edb3ac589bc9e8bef5996f87f4351fa3bb00"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeShaderModule.ofExprInternal (cognitive 26): ComputeShaderModule.ofExprInternal has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 8 (13 pts), if/else 4 (6 pts), loops 2 (5 pts), boolean chains 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/Libs/FShade.Core/ComputeShader.fs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a6a6d4c363895fe9779640d3ba27dd10de6efeb7e4fbb69a4b6be770b5f28a"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectModule.unpickleResource (cognitive 26): EffectModule.unpickleResource has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 2 (5 pts), error handling 1 (2 pts), 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. This shape REPEATS in the file: one other method here (EffectModule.unpickleInternal) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Effect.fs"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7a766f04583eec343c477ed4d15a16be2b139ba7bb0cbaabf20c70e083b52d"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectModule.unpickleInternal (cognitive 26): EffectModule.unpickleInternal has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 2 (5 pts), error handling 1 (2 pts), 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. This shape REPEATS in the file: one other method here (EffectModule.unpickleResource) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Effect.fs"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2f3f7ee7c2fba0529fef5e355ed297e03816bc12e86604843efc6baa503492"}},{"ruleId":"D2","level":"warning","message":{"text":"Preprocessor.preprocessRaytracingS (cognitive 26): Preprocessor.preprocessRaytracingS has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 13 (25 pts), boolean chains 1 (nesting depth added 12). 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a30b908eca8b6c328b7441c94ebe327070c8e3d6b5d3671d65e267eb88a49e"}},{"ruleId":"D2","level":"warning","message":{"text":"Backend.TryGetIntrinsicType (cognitive 24): Backend.TryGetIntrinsicType has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 5 (9 pts) (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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdfe1a79ce99f49118cb8b6a4c4ae09f59bc4552b5010ceb74b715d85ebc4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectModule.withDepthRange (cognitive 23): EffectModule.withDepthRange has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3 (9 pts), 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":"src/Libs/FShade.Core/Effect.fs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cb91a865cedfb554de3c91755bd521c3fc2e08c227f806afac7e0853ec4d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"Helpers.typeName (cognitive 23): Helpers.typeName has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (23 pts) (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/Libs/FShade.Imperative/Utilities.fs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdaa51a06147afe1b095ecb0a1f2c8c0003fc609ce6e606fda3c4a350ffde2f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleStatementS (cognitive 23): Assembler.assembleStatementS has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 4 (7 pts) (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":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"54786a7aef004dae263959228e856e3817797362292b391ed52c60096fa0e8ca"}},{"ruleId":"D2","level":"warning","message":{"text":"GLSLProgramInterface.GetUniformStages (cognitive 23): GLSLProgramInterface.GetUniformStages has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa22b780f5477c230b3709767303a764cfc60453cc255aa93e44ad0d07c2eec"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectModule.tryReplaceGeometry (cognitive 22): EffectModule.tryReplaceGeometry has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 5 (13 pts), loops 1 (4 pts), error handling 1 (2 pts), if/else 2, boolean chains 1 (nesting depth added 12). 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/Libs/FShade.Core/Effect.fs"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4eee2efa3fe2edb47d7eeca516e15467c09529e40fd1473e30b7c7a389febc"}},{"ruleId":"D2","level":"warning","message":{"text":"Shader.serializeInternal (cognitive 22): Shader.serializeInternal has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 10 (12 pts), loops 10 (nesting depth added 2). 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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f7d6c207ac59540f2d3728b9453277d7dd5a235cfb98af3c86064908d74f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeShaderModule.ofFunction (cognitive 21): ComputeShaderModule.ofFunction has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 3 (6 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/ComputeShader.fs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f7c6a3efcd904cbe0164c57aa90bf91a689fd50ce5f20b5ab2944e54425213"}},{"ruleId":"D2","level":"warning","message":{"text":"Patterns.|Ldc|_| (cognitive 20): Patterns.|Ldc|_| has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/FShade.Preprocessor/Interpreter.fs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8cf5c59810d4c051c08bc57fe75a0b573e26c39a4e1701297bc287a81efad9"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectModule.compose2 (cognitive 20): EffectModule.compose2 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 3 (7 pts), loops 1 (5 pts) (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/Libs/FShade.Core/Effect.fs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbaa91341dd901c9d3174a2664fbfc219cd82a7deb87b1ac2470aeb289c6758"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectModule.toModule (cognitive 19): EffectModule.toModule has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 4 (7 pts) (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/Libs/FShade.Core/Effect.fs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"39497810ed32bb0eeebfc624ab50487ccb2214825065c3e9495c63b8e1c75eec"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprExtensions.|Pipe|_| (cognitive 19): ExprExtensions.|Pipe|_| has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3 (5 pts) (nesting depth added 8). 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/Libs/FShade.Imperative/Utilities.fs"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc26f3eb85d466142c1d0bc5518afbb1cb9547dd17acb1098b791108a08d8c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectHelpers.tryFindProjectLocation (cognitive 19): ProjectHelpers.tryFindProjectLocation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (5 pts) (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/Libs/FShade.Debug/Assembly.fs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5673fcbefec56ba4da2eefd1cfa76f7825078b18a051d7c5dfca8f8faf22ed28"}},{"ruleId":"D2","level":"warning","message":{"text":"AssemblerStateModule.useTypeExtensions (cognitive 19): AssemblerStateModule.useTypeExtensions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 1 (2 pts), 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":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a26128e7d53a90db74f1d67305ea505c4b9f194bcc2c01aa3761cd2f1d92009"}},{"ruleId":"D2","level":"warning","message":{"text":"Internals.|TypeWithFields|_| (cognitive 18): Internals.|TypeWithFields|_| has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (4 pts), 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":"src/FShade.Preprocessor/Double.fs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e266c26bc3912f287db04d4fcf4d7f6dc4c99701c03656a5475f7fcd0ef370"}},{"ruleId":"D2","level":"warning","message":{"text":"ShaderModule.inputsToUniforms (cognitive 18): ShaderModule.inputsToUniforms has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (7 pts) (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":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4087}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff37abbf80e09dd752c2a420f1e6873396009e89ca3df82781a757332e7aeeb0"}},{"ruleId":"D2","level":"warning","message":{"text":"ShaderModule.toEntryPoint (cognitive 18): ShaderModule.toEntryPoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, match/switch 7 (8 pts), boolean chains 2 (nesting depth added 1). 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4293}}}],"partialFingerprints":{"codehealthFindingId/v1":"089bca0da095710587ed9d39b565a65ed8fe5f6320488ad25b8a4b68fbf1d6ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Inlining.isMutated (cognitive 18): Inlining.isMutated has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (12 pts), boolean chains 4, if/else 2 (nesting depth added 8). 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":2557}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32f27c6c7767d52a9bc0003c5dfde601b245161c7b83e019c420988c1df0abf"}},{"ruleId":"D2","level":"warning","message":{"text":"CompilerModule.asExternalS (cognitive 18): CompilerModule.asExternalS has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 6, boolean chains 2 (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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e1d0ef0e3fdbaebc8b6580086502d8c9eabd89fdf06d2a8aa3baecfaf4ff53"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstructorsModule.custom (cognitive 18): ConstructorsModule.custom has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (12 pts), if/else 3 (5 pts), boolean chains 1 (nesting depth added 7). 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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"497c2b0191b27961e6081c79d90bc3d59072b1b6768480e8fb7baf04bc072474"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleTypeS (cognitive 18): Assembler.assembleTypeS has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 2 (3 pts) (nesting depth added 6). 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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"189eef6db9977727f5f967d00e293548d1870e6f87222a84013379e6ebc0ffaa"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembler.assembleValueDef (cognitive 18): Assembler.assembleValueDef has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (14 pts), match/switch 2 (4 pts) (nesting depth added 11). 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/Libs/FShade.SpirV/Assembler.fs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e97c98d179ec4e66a9e64eba9716478c8a17f809b504018f861228850c064d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Cecil.resolveAssembly (cognitive 17): Cecil.resolveAssembly has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 2 (5 pts), match/switch 2 (3 pts) (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":"src/FShade.Preprocessor/Cecil.fs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"62958076ac193be238165088d0011cd273a03809b1eaca0b0a51997d659ed3db"}},{"ruleId":"D2","level":"warning","message":{"text":"Composition.gsvs (cognitive 17): Composition.gsvs has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 4 (nesting depth added 7). 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":4645}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae10f797fd00c3485fcd9c68e0746b55df504853779779eff2d445c30a87cb8"}},{"ruleId":"D2","level":"warning","message":{"text":"Composition.vsgs (cognitive 17): Composition.vsgs has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 8 (12 pts), if/else 4, 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":5137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7655aca6a1ec5fc1d6b346d8a1b8622d661a7ccb08aaede8c032f2eb7e7f26"}},{"ruleId":"D2","level":"warning","message":{"text":"CExprModule.visit (cognitive 17): CExprModule.visit has cognitive complexity 17 (threshold 15). Drivers by points: loops 7 (14 pts), match/switch 2 (3 pts) (nesting depth added 8). 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/Libs/FShade.Imperative/Ast.fs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9493d07b7c7bea2bf660849d44f461abbc7bec38745f7977d8c3234866799b"}},{"ruleId":"D2","level":"warning","message":{"text":"GeometryInfo.tryGetUpperBound (cognitive 16): GeometryInfo.tryGetUpperBound has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8 (16 pts) (nesting depth added 8). 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. This shape REPEATS in the file: one other method here (GeometryInfo.tryGetLowerBound) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":3022}}}],"partialFingerprints":{"codehealthFindingId/v1":"4396891051b14404e68491355adbd465cd252bda5ab95f4ecc12eb7c67fc8a07"}},{"ruleId":"D2","level":"warning","message":{"text":"GeometryInfo.tryGetLowerBound (cognitive 16): GeometryInfo.tryGetLowerBound has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8 (16 pts) (nesting depth added 8). 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. This shape REPEATS in the file: one other method here (GeometryInfo.tryGetUpperBound) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":3067}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc1b7b6002d492c38d9f997a61a7b2de9876d6cd460d2793f3e8317f6ff5285"}},{"ruleId":"D2","level":"warning","message":{"text":"Assembly.tryGetProjectData (cognitive 16): Assembly.tryGetProjectData has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (10 pts), loops 1 (5 pts), error handling 1 (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/Libs/FShade.Debug/Assembly.fs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"90786c780e1e4a9f65bc8c2c25bb03297a3454431ebf63075b4487b8a5c6fe25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/SpirVInstructions.fs: FileTooLong \u2014 6530 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 49 functions. The bar is 500 significant lines; this is 6030 over it, 13.06\u00D7 the bar. 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/Libs/FShade.SpirV/Core/SpirVInstructions.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8608b9e55be10090c6a36fc97dcf544efc33d102ae05e8a2e549cab8037cdb9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Core/Shader.fs: FileTooLong \u2014 3958 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3458 over it, 7.92\u00D7 the bar. 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/Libs/FShade.Core/Shader.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f632f2f3993dfa27a5119423f270c06989aa2581e426a5e8ec185a8b6717815"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Core/Optimizer.fs: FileTooLong \u2014 2818 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2318 over it, 5.64\u00D7 the bar. 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/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2075e4fda50bb6a8fffca9d0db925bed595bf64a35b61a672dfe8c8b6a8e93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.GLSL/Assembler.fs: FileTooLong \u2014 2118 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1618 over it, 4.24\u00D7 the bar. 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/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2ff99b7462760676a83be4e85b8e541fd99b117959360fe88f73e471bbcd97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Core/Serializer.fs: FileTooLong \u2014 1815 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1315 over it, 3.63\u00D7 the bar. 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/Libs/FShade.Core/Serializer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5339e39a56644d626ec732faf9e23faabf9fbb90bde392fb278da6d30830a138"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.GLSL/IntrinsicFunctions.fs: FileTooLong \u2014 1717 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1217 over it, 3.43\u00D7 the bar. 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/Libs/FShade.GLSL/IntrinsicFunctions.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0f58281dbd1b3912a9b932116ec7fb71cef3ec75212665f702693cb2d74887"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Imperative/Compiler.fs: FileTooLong \u2014 1692 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1192 over it, 3.38\u00D7 the bar. 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/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fdb0998eee0d3c9927a1b2ce2a67011ff1265ad5fe72da593c88ee3c2cfdc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.GLSL/UniformBufferLayout.fs: FileTooLong \u2014 1610 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1110 over it, 3.22\u00D7 the bar. 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/Libs/FShade.GLSL/UniformBufferLayout.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60aa42194633a96105b102a03059fce90307a15aabb2fb90f4a6bd03ae45850e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Core/Samplers.fs: FileTooLong \u2014 1544 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1044 over it, 3.09\u00D7 the bar. 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/Libs/FShade.Core/Samplers.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ab8545260cebcddc889c19c9dd005dde262502501e68dccee3f33d3f4b59d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.SpirV/Assembler.fs: FileTooLong \u2014 1479 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 979 over it, 2.96\u00D7 the bar. 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/Libs/FShade.SpirV/Assembler.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed404b3332a9e6a333ff5a4f53d86d20f97b74efc79d31e3063ef35330313d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Imperative/Utilities.fs: FileTooLong \u2014 1038 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 42 functions. The bar is 500 significant lines; this is 538 over it, 2.08\u00D7 the bar. 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/Libs/FShade.Imperative/Utilities.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"944b8d708d18454b26da320068279e1836a6214b3ab97a4a7f69583c2462002f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Core/Effect.fs: FileTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 63 functions. The bar is 500 significant lines; this is 488 over it, 1.98\u00D7 the bar. 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/Libs/FShade.Core/Effect.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75243ba4fe5207a42dd8ea56b0f7e4115033e32bbc6ef6743f85f347fe13bd84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FShade.Imperative/Ast.fs: FileTooLong \u2014 786 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 286 over it, 1.57\u00D7 the bar. 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/Libs/FShade.Imperative/Ast.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9817a92980c02b3577ddfce2107fdf6d447c5b5c0eb434045af2bb6a9af3ba30"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: OtherPatterns: TooManyFunctions \u2014 37 functions. The bar is 30 functions; this is 7 over it, 1.23\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4ad70c6c3bea4f623ad944092ca1d6b2d6a9e7847762aab74aaca63e64fb06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ShaderModule: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":3249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed6bb5b657e8706981ebe631d36d6d993192fbcc3f8d96f1b08786fac32be80"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ExpressionExtensions: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/Frontend.fs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f090d735ac1de6dc33167ae8d940f84de7585917db3e00cafaa269839081591"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Primitives: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Frontend.fs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d813aa6431afa2ece36a9ff348f45860539b1e6ee6eb708b7eea2917700265"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Core/RaytracingSER.fs: 14.0% line coverage (6/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/RaytracingSER.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"098f447f9febf24cd9bc27c998968cc91dcb128392fb71461c34ac8c8d933c03"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Core/Samplers.fs: 38.3% line coverage (500/1304)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Samplers.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7892b8a1372f81f64f651dae83773ee193481db8d1e7f6c414bda8dbe6cde1c3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Core/Effect.fs: 47.9% line coverage (437/913)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Effect.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a266be19dd468eb19a2827b0c89d77e9dcfc0b5ee9abf6a7d666191627c753"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Core/TopLevelOperators.fs: 0.0% line coverage (0/2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/TopLevelOperators.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a94dd4ecefb282244e7b9801ec15613b5d884e3b91289ebf2019f6b3d0f095b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Core/ShaderDebugger.fs: 0.0% line coverage (0/35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/ShaderDebugger.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f532066b656565864326c3f54577eac116f2cd12d3611bb16b2a4e9c802d8522"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Core/Frontend.fs: 28.9% line coverage (82/284)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Frontend.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc29cfb35f50a05538acc218e64d2503ddf06d2ecd4ae1b9b91f77d827e866d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Core/Intrinsics.fs: 41.5% line coverage (17/41)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Intrinsics.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69c502025d87f86ceea7253d38a0b76f8f2df5491d8e7c842656931a45009d8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/Libs/FShade.Imperative/Ast.fs: 43.9% line coverage (196/446)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/Ast.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"112964cebc16715a172477d53959ea46852f9305533f775ec888cc18eb2bf045"}},{"ruleId":"D8","level":"warning","message":{"text":"No test project references fshadeaot: No test project in this repository references fshadeaot (5 production source file(s)), so \u0060dotnet test\u0060 never loads it and no coverage tool can measure it \u2014 its code is absent from the 71.1% above rather than counted at zero. This is the whole assembly, not a gap within one: add a test project that references it (or a ProjectReference from an existing suite) and its coverage starts being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/FShade.Preprocessor/fshadeaot.fsproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d653bc63c8599baa3e2008a3176075cf1d43ce2dce34914f8bb769acc8a84a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Libs/FShade.Core/Shader.fs: src/Libs/FShade.Core/Shader.fs changed 13 times in last 90 days, max cyclomatic complexity 126 in Preprocessor.preprocessNormalS at line 1886. 5 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-04..2026-11-02, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-04 12:27:25 \u002B01:00\u0027 --until=\u00272026-11-02 12:27:25 \u002B01:00\u0027 --full-history --no-merges -- src/Libs/FShade.Core/Shader.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Shader.fs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5d86747c3b7fdf628a08442895311fb03bcc69d9e2860cf4d2d861084e6bad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Libs/FShade.Imperative/Compiler.fs: src/Libs/FShade.Imperative/Compiler.fs changed 8 times in last 90 days, max cyclomatic complexity 148 in HelpersModule.tryGetBuiltInMethod at line 507. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-04..2026-11-02, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-04 12:27:25 \u002B01:00\u0027 --until=\u00272026-11-02 12:27:25 \u002B01:00\u0027 --full-history --no-merges -- src/Libs/FShade.Imperative/Compiler.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/Compiler.fs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee32a48bb8f5d449c945ce091d2497e4c34c300b434784166639be81c8813383"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Libs/FShade.Core/Optimizer.fs: src/Libs/FShade.Core/Optimizer.fs changed 9 times in last 90 days, max cyclomatic complexity 123 in ConstantFolding.evaluateConstantsS at line 1627. 4 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-04..2026-11-02, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-04 12:27:25 \u002B01:00\u0027 --until=\u00272026-11-02 12:27:25 \u002B01:00\u0027 --full-history --no-merges -- src/Libs/FShade.Core/Optimizer.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/Optimizer.fs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1e28ed17cff2ba872c369ed3843afb8734881986dd5a307436073f8c14ecfb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Libs/FShade.GLSL/Assembler.fs: src/Libs/FShade.GLSL/Assembler.fs changed 3 times in last 90 days, max cyclomatic complexity 95 in Assembler.assembleExprS at line 1554. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-04..2026-11-02, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-04 12:27:25 \u002B01:00\u0027 --until=\u00272026-11-02 12:27:25 \u002B01:00\u0027 --full-history --no-merges -- src/Libs/FShade.GLSL/Assembler.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.GLSL/Assembler.fs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef2960397ff1d642dd5aba373b2d77d1131628c8599faf6723bb44532ac9457"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Libs/FShade.Imperative/Utilities.fs: src/Libs/FShade.Imperative/Utilities.fs changed 4 times in last 90 days, max cyclomatic complexity 38 in ExprExtensions.Expr.TryEval.Static at line 720. 1 of those changes was a fix/bug commit, 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, make sure the area it touches is under test, 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. Counted over 2026-08-04..2026-11-02, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-04 12:27:25 \u002B01:00\u0027 --until=\u00272026-11-02 12:27:25 \u002B01:00\u0027 --full-history --no-merges -- src/Libs/FShade.Imperative/Utilities.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/Utilities.fs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b0b8b5dbae3e43511519b6de7f7789667bed918e839fb6125a767b8101ec06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Libs/FShade.Core/ComputeShader.fs: src/Libs/FShade.Core/ComputeShader.fs changed 5 times in last 90 days, max cyclomatic complexity 22 in ComputeShaderModule.ofExprInternal at line 93. 2 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, make sure the area it touches is under test, 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. Counted over 2026-08-04..2026-11-02, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-04 12:27:25 \u002B01:00\u0027 --until=\u00272026-11-02 12:27:25 \u002B01:00\u0027 --full-history --no-merges -- src/Libs/FShade.Core/ComputeShader.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Core/ComputeShader.fs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b81a112b879c6dc512947f273617e224e4f38db862bb654ef3077363ccd9f51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Libs/FShade.Imperative/UtilityFunction.fs: src/Libs/FShade.Imperative/UtilityFunction.fs changed 3 times in last 90 days, max cyclomatic complexity 16 in UtilityFunctionModule.tryCreate\u0027 at line 49. 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, make sure the area it touches is under test, 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. Counted over 2026-08-04..2026-11-02, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-04 12:27:25 \u002B01:00\u0027 --until=\u00272026-11-02 12:27:25 \u002B01:00\u0027 --full-history --no-merges -- src/Libs/FShade.Imperative/UtilityFunction.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Libs/FShade.Imperative/UtilityFunction.fs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4500eedc3d386361158c7681c0eb2fbd059a5b91469dc57209b0faf78249ca7"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 13 significant file(s) lose their only recent owner: src/Libs/FShade.Core/Optimizer.fs, src/Libs/FShade.GLSL/IntrinsicFunctions.fs, src/Libs/FShade.Imperative/Compiler.fs, src/Libs/FShade.SpirV/Assembler.fs, src/Libs/FShade.Imperative/Ast.fs, src/Libs/FShade.Core/RaytracingSER.fs, src/Libs/FShade.Core/Frontend.fs, src/Libs/FShade.Imperative/ModuleCompiler.fs (\u002B5 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"25da4caea5139a8f8706d9528f2dd5f31e4f6a5a0978859c07525c699ad8a24b"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (14 single-owned of 43 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 43 of the 55 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/Libs/FShade.Debug/Framework.fs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060src/FShade.Preprocessor/fshadeaot.fsproj\u0060 makes this repository a deployable product (line 4)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/FShade.Preprocessor/fshadeaot.fsproj"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8f3350e07af2e413d1b22d13cde4c0c58a725e242fe01c6fed63dfbb1127e3"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 6 project(s) overshoot their size bounds, lowering Project Cohesion to 6.7/10. The most over is \u0060src/Libs/FShade.Core\u0060 (15937 LoC, 365 module-visible types across 1 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"77847d4d9e715398297c158f302f573115261fa4ec2a7243fa64534887cf387b"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e7efc20376ca82d297e418b4690e33529d542653dba1b7d7d2bb15afc33b69a4"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"801e60aed41b1830aa35670f62ac1a60a301a9b98f6d9a13478d3be3430260a0"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"eca0d79a5c8b32b1d32d17adeed54e8bf4045e3e5122f4a9479da6c4481f7387"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d89ff8be40979a750f71a1b1785d33a78ab956aa773c1a40e692751cfa2edca2"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"fcc53031fa987d6bc5a5b08489e3381c86035392521a66ecd56088c20fcbe155"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"47377aa8659f8aadcdd7c9ce0cea201eb0d99596c65fcff940d7ef089d615860"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"51deb5f11d29da72484d112de68af7e38e0a51818f441a6e0dd487a6031a58d2"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a5ca04c0cb1b89928781b2af4d0cbb058a385aeba0b5535a0878e046c51b41cf"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3b05ba515a0129218f03788d09f94768f02609db43e2061d6ce787be3145aa87"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"6b1273c81a1ca9b5eb097489b2567416912a145951451afeec807249ffa5e5b8"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"f565882c0a115fb9578e0145fd6b0e800a1762ed087db622de4d0ffa7bcb5dc2"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 55 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b11295dc6ac6146c259ace6043143959f96dc98628f8c8578b6c5f95b8149"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add \u0060semgrep --config=auto\u0060 plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/test.yml"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060paket.dependencies\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"paket.dependencies"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca76f9e7f8af5cbca13374b1cb689b030c8710ce7b1cc328b36ebe53a6c5e78"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}}],"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-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-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":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"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":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":17,"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."]}]}