Skip to content

Support per-rule selection with --select and --ignore #3

Description

@Johnkothapalli

Problem

Teams may want to adopt a subset of rules or temporarily suppress a noisy rule without removing the analyzer from CI.

Proposed scope

Add repeatable or comma-separated --select and --ignore rule-ID options. Validate unknown IDs. Selection happens before analysis and must affect the cache profile so cached reports never leak findings from a different policy.

Acceptance criteria

  • default behavior remains unchanged;
  • unknown rule IDs produce a clear error;
  • selection and ignore precedence is documented;
  • cache keys include the effective rule set;
  • tests cover select, ignore, precedence, invalid IDs, and cache isolation;
  • README and changelog are updated.

This touches public CLI behavior; comment with proposed precedence before implementation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededstatus: availableScoped and available for a contributor

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions