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