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/UseConsistentCasing.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,12 @@
4
4
5
5
## Description
6
6
7
-
This is a style/formatting rule. PowerShell is case insensitive where applicable. The casing of keywords and operators does not matter but this rule ensures the use of lowercase for consistency and also because it helps distinguish keywords from commands (e.g. `foreach` is a keyword, but `ForEach-Object` is the command) and parameters (which should start with a capital letter).
7
+
Prescribes lowercase characters for PowerShell keywords and operators.
8
+
PowerShell is case-insensitive for keywords and operators,
9
+
however maintaining a single casing convention aids consistency,
10
+
and using lowercase helps to distinguish keywords from commands
11
+
and operators from parameters.
12
+
For example, this rule ensures the keyword `foreach` is distinguishable from the `ForEach-Object` command.
0 commit comments