The PowerShell Script Analyzer taskThis is the Build/Release extension for PSScriptAnalyzer. With this extension you can execute standard script analyzer rules and also specify custom rules. You can choose to run only one or several rules using the "Rules to Include" parameter. Using the "Rules to Exclude" parameter you can execute all rules except the a single or a collection of rules. The extension will download the latest PSScriptAnalyzer module from the PowerShellGallery if it is not present on the agent performing the task. Currently the only mandatory parameter is the path to the folder containing the scripts (.PS1 and .PSM1) files you want to verify. Example build taskExample Agent output |