You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RuleDocumentation/UseConsistentWhitespace.md
+14-9
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,16 @@
13
13
```powershell
14
14
Rules = @{
15
15
PSUseConsistentWhitespace = @{
16
-
Enable = $true
17
-
CheckInnerBrace = $true
18
-
CheckOpenBrace = $true
19
-
CheckOpenParen = $true
20
-
CheckOperator = $true
21
-
CheckPipe = $true
22
-
CheckPipeForRedundantWhitespace = $false
23
-
CheckSeparator = $true
24
-
CheckParameter = $false
16
+
Enable = $true
17
+
CheckInnerBrace = $true
18
+
CheckOpenBrace = $true
19
+
CheckOpenParen = $true
20
+
CheckOperator = $true
21
+
CheckPipe = $true
22
+
CheckPipeForRedundantWhitespace = $false
23
+
CheckSeparator = $true
24
+
CheckParameter = $false
25
+
IgnoreAssignmentOperatorInsideHashTable = $false
25
26
}
26
27
}
27
28
```
@@ -64,3 +65,7 @@ Checks if a pipe is surrounded by redundant whitespace (i.e. more than 1 whitesp
64
65
65
66
Checks if there is more than one space between parameters and values. E.g. `foo -bar $baz -bat` instead of `foo -bar $baz -bat`. This eliminates redundant whitespace that was probably added unintentionally.
66
67
The rule does not check for whitespace between parameter and value when the colon syntax `-ParameterName:$ParameterValue` is used as some users prefer either 0 or 1 whitespace in this case.
68
+
69
+
#### IgnoreAssignmentOperatorInsideHashTable: bool (Default value is `$false`)
70
+
71
+
When `CheckOperator` is set, ignore whitespace around assignment operators within multi-line hash tables. Set this option in order to use the `AlignAssignmentStatement` rule but still check whitespace around operators everywhere else.
0 commit comments