PowerShell / PowerShell/PSScriptAnalyzer

Update PSUseCorrectCasing to enforce correct case for an enum

Open
#1,475 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.