NoBlankLineBeforeSymbols
Since checkstyle-extension 1.0
Description
Checks that files do not contain blank lines before lines that only consist of specific symbols. Trailing semicolons are ignored while checking, except if semicolons are part of the symbols to check for.
Properties
name | description | type | default value | since |
---|---|---|---|---|
symbols | The symbols to check for. | string | )}]; | 1.0 |
Examples
To configure the default check:
<module name="NoBlankLineBeforeSymbols"/>
Example:
class Invalid {
// Violation: Blank line before a line containing only symbols from ')}];'.
}
enum InvalidEnum {
CONSTANT1,
CONSTANT2,
// Violation: Blank line before 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