NoTrailingWhitespace
Since checkstyle-extension 1.0
Description
Checks that files have no trailing whitespace.
Examples
To configure the default check:
<module name="NoTrailingWhitespace"/>
Example:
class Valid {
// OK: no trailing whitespace
int x = 0; // OK: no trailing whitespace
}
class Invalid {
// Violation: Trailing whitespace.
}
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