Where can I find settings parameters for each rule?


I just download the extension for Visual Studio and I’m wondering where I can find a list of allowed parameters for each rule that I can tune in the settings.json file ?

This page gives an example but I see no link to have an exhaustive list.



Welcome to the community!

In fact, I don’t know of any good way to get a comprehensive list of rules with parameters. As a rule of thumb, a rule with “too” in the title is likely to be a threshold rule and thus to have a parameter to set the threshold. (“Cognitive Complexity of methods should not be too high”; “Files should not have too many functions”; “Switch cases should not have too many lines of code”; and so on) But that’s not exhaustive; other rules also have parameters and I can’t give you a rule of thumb to find them.


1 Like

Thanks for the reply :slight_smile: