PowerShell / PowerShell/PSScriptAnalyzer

Migrate existing rules to PSSA2

Open
#1,485 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

PSSA2 should support most or all existing PSSA rules. Some rules may be inappropriate for continued use and others may need to be expanded, but gradual migration of rules should be possible.

Dependencies on Helper methods should be replaced with general purpose implementations that live under the appropriate class and injected into rules at instantiation time.

Some rules may need refinement or improvement, particularly in name or implementation. When this is done, a mechanism should be provided to improve compatibility.

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 inventorying the existing PSSA rules and their dependencies on Helper methods, then compare how PSSA2 instantiates rules. Define which rules can migrate, where general-purpose implementations should live, and how compatibility will be preserved for renamed or refined rules.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.