NoSubsequentBlankLines
Since checkstyle-extension 1.0
Description
Checks that files do not have multiple blank lines in a row.
Examples
To configure the default check:
<module name="NoSubsequentBlankLines"/>
Example:
class Valid {
// OK: single blank line
}
class Invalid {
// Violation: Two or more blank lines in a row.
}
Violation Messages
All messages can be customized if the default message doesn't suit you. Please see the documentation to learn how to.
Package
com.github.robtimus.checkstyle.checks