-
moved from #14770 We have one common checkstyle-config for all projects and therefore we can not exclude specific paths.
This genereted files have checkstyle errors everywhere. 😄 therefore I want to exclude those files completly. I have no idea how to achive this with SuppressionXpathSingleFilter I've tested SuppressWithNearbyTextFilter with this settings but this looks kind of strange.
Has anyone a better solution? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Please provide an example of a check and working violation you wish to suppress. If you have any not inside TreeWalker, then I suggest you give us that as an example. |
Beta Was this translation helpful? Give feedback.
-
No problem: example.zip
All errors are correct but since the Java-File is generated (annotated with @generated at class-level) I want to ignore the complete file. |
Beta Was this translation helpful? Give feedback.
I think that used
SuppressWithNearbyTextFilter
is best form of suppression, while excluding folders and files is not an option.