◐ Shell
clean mode source ↗

Update docs and diagnostic message for UseCorrectCasing by liamjpeters · Pull Request #2138 · PowerShell/PSScriptAnalyzer

PR Summary

Fixes a small regression from #1704 where incorrectly cased parameters are reported as Functions/Cmdlets. i.e.

Resulted in a diagnostic message of:

Function/Cmdlet '-name' does not match its exact casing 'Name'.

instead of:

Parameter '-name' of function/cmdlet 'Get-Process' does not match its exact casing 'Name'.

Added some tests for the messages.

Small tweaks to rule docs too, including that the descriptions of CheckCommands and CheckOperator were transposed.

Closes #2136

PR Checklist