PSScriptAnalyzer is a static analysis tool, it examines source code and flags issues based on configured rules. PSScriptAnalyzer comes allows a developer to define and inject their own rules using the CustomRulePath parameter. Custom rules might be used to apply an organisation-specific style to code, beyond the best-practice rules.

The rules used as examples in this article are available on GitHub/indented-automation
More »