New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SuppressWarningsHolder should not report violations #7848
Comments
http://rveach.no-ip.org/checkstyle/regression/reports/290/
|
yes, and we have such tests only to have some violation. |
I'm on it |
The xpath test will have to be removed since it won't be possible to create violations. I think we can leave it off documentation too. |
@rnveach yup but after remove the xpath test and leave it off doc i will got error that i must add it |
You will need to change UT to not complain about this module. |
@rnveach I am already changed SuppressWarningsHolderTest to expect no violations in testAnnotationInTry method |
@rnveach I fixed the problem but I can't find UT that can cover switch default case I think we covered all possible case for parent type so any suggestion what should I do because I got this error
|
If you are ready, start a PR and we will discuss there. |
Fix was merged |
Check documentation: https://checkstyle.org/config_annotation.html#SuppressWarningsHolder
SuppressWarningsHolder should support annotations in all possible places, fact that we probably can not distinguish what violation to suppress is bug of our implementation and should have github issue BUT not a violation in code.
issue is detected at #7841 (comment)
problem is already covered by UT - https://github.com/checkstyle/checkstyle/blob/master/src/it/resources/org/checkstyle/suppressionxpathfilter/suppresswarningsholder/SuppressionXpathRegressionSuppressWarningsHolderOne.java
The text was updated successfully, but these errors were encountered: