Roslyn analyzer for cognitive complexity.
Currently no support incrementing complexity for ternary operators yet.
Supports Visual Studio 2022.
Configuration is accomplished by adding and editing an editorconfig file to your solution.
The default max complexity is 10. The setting is dotnet_diagnostic.CC0001.max_cognitive_complexity
. Anything above this setting will result in an warning.