PowerShell / PowerShell/PSScriptAnalyzer

Add rule to validate that recommended Pascal-Kebab-Case was used for function naming

Open
#2,071 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2.2k
Forks
414
Avg merge
13h 1m
Merged PRs (30d)
2

Description

Pascal-Kebab-Case

There is a recommended notation for naming methods in Powershell script but no validation available. It would be great if PSScriptAnalyzer could catch names in different notations.

What is the latest version of PSScriptAnalyzer at the point of writing

1.23.0

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

The issue names no implementation files or tests. Start by locating existing PSScriptAnalyzer naming-validation rules and their tests, then determine which function-name forms should be accepted and how Pascal-Kebab-Case should be recognized. Done means the analyzer reports nonconforming PowerShell function names with tests covering the agreed cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.