-
I'm trying to validate if the class has the annotated variable declared with empty line between them, like this:
I didnt found any rule that validate it, so I started to look at checkstyle GUI but I cannot see empty lines on GUI nor CMD. How can I achieve it? thanks |
Beta Was this translation helpful? Give feedback.
Answered by
nrmancuso
Mar 5, 2024
Replies: 1 comment 8 replies
-
I would suggest that you try out EmptyLineSeparator for this.
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unless I am missing something, this is overkill.
MatchXpath is going to be very difficult or impossible to use to achieve this. I suggest that you go with my suggestion above: use EmptyLineSeparator with a SuppressionXpathSingleFilter.
Example: