Skip to content

fix: allow ignore patterns to match rule ids - #45

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/ignore-by-rule-id-d8f7
Sep 12, 2026
Merged

fix: allow ignore patterns to match rule ids#45
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/ignore-by-rule-id-d8f7

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

ignore patterns now match if they appear in either location or ruleId (same substring semantics), so ignore: [\"MCP001\"] actually suppresses that rule.

Test plan

  • npm test — unit + integration cases for ignore by rule id

Fixes #23

Extend applyIgnores to match ignore substrings against ruleId as well
as location, so configs like ignore: ["MCP001"] work as expected.

Fixes AgentPostmortem#23
@royalpinto007
royalpinto007 merged commit 88d62be into AgentPostmortem:main Sep 12, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

Merged. Thanks a lot, @sharadvc.

Genuinely helpful change for MCP-audit.

If this project helps you out, a star helps others find it too.

Happy to see more from you whenever you have the time.

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.

ignore patterns cannot suppress by rule id

2 participants