| description | List of PSScriptAnalyzer rules |
|---|---|
| ms.date | 07/24/2026 |
| ms.topic | reference |
| title | List of PSScriptAnalyzer rules |
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.