Skip to content

Latest commit

 

History

History
 
 

RuleDocumentation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PSScriptAnalyzer Rules

Table of Contents

Rule Severity Configurable
AlignAssignmentStatement Warning
AvoidAssignmentToAutomaticVariable Warning
AvoidDefaultValueForMandatoryParameter Warning
AvoidDefaultValueSwitchParameter Warning
AvoidGlobalAliases* Warning
AvoidGlobalFunctions Warning
AvoidGlobalVars Warning
AvoidInvokingEmptyMembers Warning
AvoidNullOrEmptyHelpMessageAttribute Warning
AvoidShouldContinueWithoutForce Warning
AvoidUsingCmdletAliases Warning Yes
AvoidUsingComputerNameHardcoded Error
AvoidUsingConvertToSecureStringWithPlainText Error
AvoidUsingDeprecatedManifestFields Warning
AvoidUsingEmptyCatchBlock Warning
AvoidUsingInvokeExpression Warning
AvoidUsingPlainTextForPassword Warning
AvoidUsingPositionalParameters Warning
AvoidTrailingWhitespace Warning
AvoidUsingUsernameAndPasswordParams Error
AvoidUsingWMICmdlet Warning
AvoidUsingWriteHost Warning
DSCDscExamplesPresent Information
DSCDscTestsPresent Information
DSCReturnCorrectTypesForDSCFunctions Information
DSCStandardDSCFunctionsInResource Error
DSCUseIdenticalMandatoryParametersForDSC Error
DSCUseIdenticalParametersForDSC Error
DSCUseVerboseMessageInDSCResource Error
MisleadingBacktick Warning
MissingModuleManifestField Warning
PossibleIncorrectComparisonWithNull Warning
PossibleIncorrectUsageOfAssignmentOperator Warning
PossibleIncorrectUsageOfRedirectionOperator Warning
ProvideCommentHelp Information Yes
ReservedCmdletChar Error
ReservedParams Error
ShouldProcess Error
UseApprovedVerbs Warning
UseBOMForUnicodeEncodedFile Warning
UseCmdletCorrectly Warning
UseCorrectCasing Information
UseDeclaredVarsMoreThanAssignments Warning
UseLiteralInitializerForHashtable Warning
UseOutputTypeCorrectly Information
UsePSCredentialType Warning
UseShouldProcessForStateChangingFunctions Warning
UseSingularNouns* Warning
UseSupportsShouldProcess Warning
UseToExportFieldsInManifest Warning
UseCompatibleCmdlets Warning Yes
UseCompatibleCommands Warning Yes
UseCompatibleSyntax Warning Yes
UseCompatibleTypes Warning Yes
PlaceOpenBrace Warning Yes
PlaceCloseBrace Warning Yes
UseConsistentIndentation Warning Yes
UseConsistentWhitespace Warning Yes
UseUTF8EncodingForHelpFile Warning

* Rule is not available on all PowerShell versions, editions and/or OS platforms. See the rule's documentation for details.