PowerShell / PSScriptAnalyzer

Download ScriptAnalyzer from PowerShellGallery
https://www.powershellgallery.com/packages/PSScriptAnalyzer/
MIT License
1.87k stars 379 forks source link

Rules for Rules #1964

Closed iRon7 closed 9 months ago

iRon7 commented 9 months ago

The PSScriptAnalyzer is a static code checker for PowerShell modules and scripts where it allows for creating custom rules in PowerShell. Yet, there aren't any rules to check whether the custom rules are written according the best practices (which potentially could lead to pitfalls). The examples at Creating custom rules could be improved for at least the known best practices:

bergmeister commented 9 months ago

1st one is not specific to custom rules and second is probably a good use for a custom rule, which a community member could publish as this is a narrow use cases as most PSSA users don't use custom rules in first place