@@ -11,7 +11,7 @@ title: UseCorrectCasing
1111## Description
1212
1313This is a style/formatting rule. PowerShell is case insensitive wherever possible, so the casing of
14- cmdlet names, parameters, keywords and operators does not matter. This rule nonetheless ensures
14+ cmdlet names, parameters, keywords and operators doesn't matter. This rule nonetheless ensures
1515consistent casing for clarity and readability. Using lowercase keywords helps distinguish them from
1616commands. Using lowercase operators helps distinguish them from parameters.
1717
@@ -34,31 +34,31 @@ Rules = @{
3434}
3535```
3636
37- ### Parameters
37+ ## Parameters
3838
39- #### Enable: bool (Default value is ` $false ` )
39+ ### Enable: bool (Default value is ` $false ` )
4040
4141Enable or disable the rule during ScriptAnalyzer invocation.
4242
43- #### CheckCommands: bool (Default value is ` $true ` )
43+ ### CheckCommands: bool (Default value is ` $true ` )
4444
45- If true, require the case of all operators to be lowercase .
45+ If true, require the case of all command and parameter names to match their canonical casing .
4646
47- #### CheckKeyword: bool (Default value is ` $true ` )
47+ ### CheckKeyword: bool (Default value is ` $true ` )
4848
4949If true, require the case of all keywords to be lowercase.
5050
51- #### CheckOperator: bool (Default value is ` $true ` )
51+ ### CheckOperator: bool (Default value is ` $true ` )
5252
53- If true, require the case of all commands to match their actual casing.
53+ If true, require the case of all operators to be lowercase. For example: ` -eq ` , ` -ne ` , ` -gt `
5454
5555## Examples
5656
5757### Wrong way
5858
5959``` powershell
6060ForEach ($file in Get-childitem -Recurse) {
61- $file.Extension -eq '.txt'
61+ $file.Extension -EQ '.txt'
6262}
6363
6464invoke-command { 'foo' } -runasadministrator
0 commit comments