Skip to content

Files

Latest commit

 

History

History
29 lines (18 loc) · 737 Bytes

UseCorrectCasing.md

File metadata and controls

29 lines (18 loc) · 737 Bytes

Pattern: Incorrect casing for Cmdlet/Function

Issue: -

Description

PowerShell is case insensitive where applicable. The casing of cmdlet names does not matter but this rule ensures that the casing matches for consistency and also because most cmdlets start with an upper case and using that improves readability to the human eye.

How

Use exact casing of the cmdlet, e.g. Invoke-Command.

Example of incorrect code:

invoke-command { 'test' }
}

Example of correct code:

Invoke-Command { 'test' }
}

Further Reading