Skip to content

SuppressionXpathFilter in Checkstyle 10.9.3 sun_checks10.xml file is not ignoring what's specified in my xpath-suppressions.xml file #13032

Closed Answered by romani
schenkjd asked this question in Q&A
Discussion options

You must be logged in to vote

Actually I think I will just use @Suppress Warnings("all"). That seems to be the best bet and I have it working now.

It is good. We have bunch of way to do suppression, choose what you like most or suites you.

Instead of "all" you can specify name of Check to be explicit.

You can try to use this Check https://github.com/sevntu-checkstyle/sevntu.checkstyle/blob/master/sevntu-checks/src/main/java/com/github/sevntu/checkstyle/checks/sizes/LineLengthExtendedCheck.java it is AST based.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@schenkjd
Comment options

@romani
Comment options

Answer selected by schenkjd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants