psscriptanalyzer

psscriptanalyzer is a linter for PowerShell.

You can enable the psscriptanalyzer linter with:

trunk check enable psscriptanalyzer

Auto Enabling

psscriptanalyzer will be auto-enabled if a PSScriptAnalyzerSettings.psd1 config file is present.

Settings

psscriptanalyzer supports the following config files:

  • PSScriptAnalyzerSettings.psd1

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info.

Last updated