PSScriptAnalyzer icon indicating copy to clipboard operation
PSScriptAnalyzer copied to clipboard

Download ScriptAnalyzer from PowerShellGallery

Results 201 PSScriptAnalyzer issues
Sort by recently updated
recently updated
newest added

What aliases should we put on the white-list? This is a open thread for discussion.

Issue - Discussion

The following code makes PSScriptAnalyzer report AvoidDefaultValueForMandatoryParameter. For one parameter set, the parameter is optional, so having a default value may be desired and should not throw a warning. ```PowerShell...

Issue - Bug
Up-for-Grabs
Area - Rules

I'm getting a rule violation when we force Write-Verbose to have output like this: ```PowerShell Write-Verbose -Verbose "My Message" ``` Steps to reproduce ------------------ ```PowerShell Invoke-ScriptAnalyzer -ScriptDefinition ' Write-Verbose -Verbose...

Issue - Bug
Area - Rules

System Details Output ``` ### VSCode version: 1.36.1 2213894ea0415ee8c85c5eea0d0ff81ecc191529 x64 ### VSCode extensions: [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] ### PSES version: ### PowerShell version: Name Value ---- ----- PSVersion...

Area - PSUseDeclaredVarsMoreThanAssignments

Before submitting a bug report: - Make sure you are able to repro it on the latest released version - Perform a quick search for existing issues to check if...

Up-for-Grabs
Area - Formatter

- ✅ Make sure you are able to repro it on the latest released version - ✅ Perform a quick search for existing issues to check if this bug has...

Issue - Bug
Area - Formatter

Basically, it gets fixed if I have: ```PowerShell } else { ``` But it doesn't get fixed if I have: ```PowerShell } else { ``` And I would really like...

Issue - Bug
Area - Formatter

One thing i would like to see is rules that check case of reserved powershell words like function, if, switch, class, etc. A setting should be available to enforce all...

Issue - New Rule
Up-for-Grabs
Area - Rules

from document file /RuleDocumentation/AvoidTrailingWhitespace.md: > Lines should not end with whitespace characters. This can cause problems with the line-continuation backtick, and also clutters up future commits to source control. The...

Issue - Discussion
Area - Documentation

Currently, PSAvoidTrailingWhitespace checks all lines for trailing whitespace, even when that line is effectively empty and the "trailing" whitespace is actually *leading* whitespace for the current indentation level. If the...

Issue - Enhancement
Area - Rules