PSScriptAnalyzer
PSScriptAnalyzer is a static code checker for PowerShell modules and scripts. PSScriptAnalyzer checks the quality of PowerShell code by running a set of rules.
Note
Support for the module is limited. Please file issues in the source repository using the This product button in the Feedback section at the bottom of the page.
PSScriptAnalyzer
| Get-ScriptAnalyzerRule |
Gets the script analyzer rules on the local computer. |
| Invoke-Formatter |
Formats a script text based on the input settings or default settings. |
| Invoke-ScriptAnalyzer |
Evaluates a script or module based on selected best practice rules |
Feedback
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.
Submit and view feedback for