Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
PSAvoidGlobalVars should not warn when you are referencing built-in global variables #187
PowerShell defines many built-in global variables by default. When you reference one of these variables in a script or module using the "global:" scope qualifier, PSScriptAnalyzer generates a warning due to how the PSAvoidGlobalVars rules is written. When the variable is a global, built-in variable though, this warning should not be generated.
PSAvoidGlobalVars should be modified to exclude built-in, global variables that are defined by PowerShell.