Skip to content

Commit 6afa177

Browse files
committedMar 20, 2025
Add example for keyword
1 parent 27194d2 commit 6afa177

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎docs/Rules/UseCorrectCasing.md

+8
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,19 @@ If true, require the case of all commands to match their actual casing.
5757
### Wrong way
5858

5959
```powershell
60+
ForEach ($file in Get-childitem -Recurse) {
61+
$file.Extension -eq '.txt'
62+
}
63+
6064
invoke-command { 'foo' } -runasadministrator
6165
```
6266

6367
### Correct way
6468

6569
```powershell
70+
foreach ($file in Get-ChildiItem -Recurse) {
71+
$file.Extension -eq '.txt'
72+
}
73+
6674
Invoke-Command { 'foo' } -RunAsAdministrator
6775
```

0 commit comments

Comments
 (0)