PSScriptAnalyzer
PSScriptAnalyzer copied to clipboard
Download ScriptAnalyzer from PowerShellGallery
## PR Summary *Very much a work in progress, but almost all tests pass (new cmdlet needs help for `Get-Help`) and json files are usable wherever .psd1 settings file can...
## PR Summary Add new diagnostic rule `PSUseFullyQualifiedCmdletNames` to replace aliases and unqualified cmdlet names with fully qualified versions (e.g., `ModuleName\CmdletName`). This rule addresses a common pain point in PowerShell...
## PR Summary ## PR Checklist - [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission) - Use the present tense and imperative mood when describing your changes - [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission) -...
Similar to the rule [`AvoidUsingPlainTextForPassword`](https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/rules/avoidusingplaintextforpassword), passing plaintext passwords to external/binary cmdlets should be avoided. This includes cmdlets as e.g.: ```PowerShell PS C:\> Get-Command -ParameterName Password CommandType Name Version Source -----------...
**Summary of the new feature** Would be nice is PSSA could add a rule that makes sure variables are strongly typed. Should be an optional rule, disabled by default, to...
## PR Summary Overhauls the AlignAssignmentStatement rule to include handling of enums as well as fix several issues with Hashtable alignment. I am *very* open to feedback and suggestions 😀....
## PR Summary Adds a new rule, `UseSingleValueFromPipelineParameter`, which flags when multiple parameters in the same parameter set have `ValueFromPipeline` set to true. When running something like: ```powershell function Test-ValueFromPipeline...
## PR Summary Add UseConsistentParameterSetName rule to detect potential parameter set issues Parameter set names are case-sensitive in PowerShell (unlike most other elements), which can lead to runtime errors and...
**Summary of the new feature** As a user of PSScriptAnalyzer, I want to be able to configure where ParameterDescription comments appear and enforce required help sections (with optional order enforcement)...
Summary --------------- Both the `-Path` and `-ScriptDefinition` parameters of `Invoke-ScriptAnalyzer` are `[string]` parameters. Both accept `ValueFromPipeline` and both are declared as `Position=0`. While they exist in different parameter sets (each...