PowerShell / PowerShell/PSScriptAnalyzer

[Discussion] PowerShell classes to add rules

Open
#645 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Would it seem like a good idea to have the ability to add PSScriptAnalyzer rules using PowerShell classes.

Since many organizations are already incorporating script analyzer in their release pipelines, granting the ability to the Infrastructure developers to add these rules using PowerShell classes would make it easier in the longer run.

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 proposes allowing PSScriptAnalyzer rules to be added through PowerShell classes, but it does not identify files, tests, entry points, or a defined behavior. Start by reviewing the existing rule architecture and documented extension mechanisms; the work is done when the design and implementation path for class-based rules are agreed and validated.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.