PowerShell / PowerShell/PSScriptAnalyzer
Update PSUseCorrectCasing to enforce correct case for an enum
Open
Nobody has claimed this yet.
Issue - Enhancement
Up-for-Grabs
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 414
- Avg merge
- 13h 1m
- Merged PRs (30d)
- 2
Description
Expected behavior
Get-ChildItem nosuchitem -ErrorAction SilentlyContinue
Actual behavior
Get-ChildItem nosuchitem -ErrorAction silentlycontinue
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the PSUseCorrectCasing rule and the handling for enum values, using the Get-ChildItem examples as the reproduction. Check how existing analyzer tests cover casing diagnostics, then add coverage showing that silentlycontinue is reported or corrected to SilentlyContinue; done means the rule enforces the enum's documented casing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100