Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The PSScriptAnalyzer module includes the following built-in rule definitions. For rules that
support settings, you can enable or disable them by setting the Enable configuration property in
a custom settings file. Rules listed as Always enabled don't expose a per-rule Enable property.
There are two ways to avoid using these rules:
- Create a custom rule configuration file to include only the rules you want or exclude the rules you don't want.
- Add the appropriate rule suppression attributes to your code to suppress the rule for specific code blocks. For more information, see the Suppressing rules section of Using PSScriptAnalyzer.