PowerShell / PowerShell/PSScriptAnalyzer

Allow UseCompatibleCommands to ignore whole modules

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

Nobody has claimed this yet.

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

Description

Currently UseCompatibleCommands only ignores commands on an individual basis. When one system has a whole module that another does not, this can be cumbersome to configure. Instead it should be able to ignore whole modules.

As part of this change, the query API should be updated so that data elements have a reference to their parents (for example CmdletData refers to the containing ModuleData) to make this possible.

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 UseCompatibleCommands and the CmdletData and ModuleData definitions, then trace how the query API represents command data. The change is complete when configuration can ignore an entire module and query results expose each data element's parent module reference; no tests or file paths are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.