July 2018
Beginner
552 pages
13h 18m
English
Also included in the PowerShell extension for VSCode is the PSScriptAnalyzer module. It comes preloaded, and the static code analysis is triggered automatically for any piece of PowerShell code you are working on. We already covered the command-line use of PSScriptAnalyzer in Chapter 5, Writing Reusable Code.
PSScriptAnalyzer can be used very comfortably from within VSCode. A couple of rules are enabled by default, and by bringing up the command palette, you can select all of the rules you want to be applied:

This especially makes sense if you want to apply some enterprise-wide code policies that can be checked with the script ...
Read now
Unlock full access