NoBlankLineAfterSymbols
Since checkstyle-extension 1.0
Description
Checks that files do not contain blank lines after lines that only consist of specific symbols. Trailing semicolons are ignored while checking.
Properties
name | description | type | default value | since |
---|---|---|---|---|
symbols | The symbols to check for. | string | ({[ | 1.0 |
Examples
To configure the default check:
<module name="NoBlankLineAfterSymbols"/>
Example:
class Invalid {
{
// Violation: Blank line after a line containing only symbols from '({['.
}
}
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