Skip to content

Add -skip 'Class::method()' to report to drop false positives - #4

Merged
TomasVotruba merged 1 commit into
mainfrom
add-report-skip-method
Sep 9, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
add-report-skip-method

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Adds a repeatable -skip flag to the report command so a known false-positive method can be excluded from the results.

What it does

  • report -skip 'Class::method()' <log> drops every finding whose enclosing method (resolved via the existing AST methodAt) matches.
  • Repeat -skip to exclude several methods.
  • Matching is lenient on the trailing (): Class::method and Class::method() both work.
  • The filter runs before the console table, Checkstyle XML, GitHub annotations, and the exit code, so a skipped method no longer fails CI.

Notes

  • Unknown method references are a no-op (keep all findings).
  • Covered by TestFilterSkipped.

https://claude.ai/code/session_01YVdy9rGZefFP8PGM5ge585

Repeatable -skip flag filters findings whose enclosing method matches,
before the console table, Checkstyle/GitHub output, and the exit code.

Claude-Session: https://claude.ai/code/session_01YVdy9rGZefFP8PGM5ge585
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant