PSScriptAnalyzer - PowerShell Script Analyzer
suggest changeIntroduction
PSScriptAnalyzer is a static code checker for PowerShell modules and scripts. It checks code by running rules based on PowerShell best practices identified by the PowerShell team and the community. It generates DiagnosticRecord results (errors and warnings) about potential defects and suggests improvements. Install-Module is provided by PowerShellGet.
PS> Install-Module -Name PSScriptAnalyzer
Syntax
Get-ScriptAnalyzerRule [-CustomizedRulePath <string[]>] [-Name <string[]>] [-Severity <string[]>] [<CommonParameters>]Invoke-ScriptAnalyzer [-Path] <string> [-CustomizedRulePath <string[]>] [-ExcludeRule <string[]>] [-IncludeRule <string[]>] [-Severity <string[]>] [-Recurse] [-SuppressedOnly] [<CommonParameters>]
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents