Is there a way to setup checkstyle to prevent leading, multiple or trailing empty lines in method bodies:
e.g.
private void a() {
-
int a = 1;
doStuff(a);
-
-
doMoreStuff(a);
-
}
In the example above, I have denoted empty lines with - characters.
I'd like to be able to to prevent the leading line, trailing line and more than one line in the method body.