Skip to content

Add rule ignore controls - #25

Merged
antonisloukis merged 1 commit into
mainfrom
feat/ignore-rules
Aug 4, 2026
Merged

antonisloukis merged 1 commit into
mainfrom
feat/ignore-rules

Conversation

@antonisloukis

Copy link
Copy Markdown
Owner

Summary

Adds repeatable rule-level ignore controls to RunbookProof scans.

Changes

  • Added the --ignore-rule RULE_ID option
  • Supports multiple --ignore-rule arguments
  • Normalizes rule IDs case-insensitively
  • Validates rule IDs against the RunbookProof rule format
  • Removes ignored findings from text output
  • Removes ignored findings from JSON output
  • Removes ignored findings from SARIF output
  • Excludes ignored findings from severity and finding counts
  • Recalculates exit codes after ignored findings are removed
  • Updated the README with usage examples
  • Added focused CLI tests

Examples

runbookproof scan docs/ \
  --ignore-rule RBP-AZURE-001

@antonisloukis
antonisloukis merged commit a45a1eb into main Aug 4, 2026
7 checks passed
@antonisloukis
antonisloukis deleted the feat/ignore-rules branch August 4, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant