Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck
public class NewlineAtEndOfFileCheck
extends AbstractFileSetCheck
<module name="NewlineAtEndOfFile"/>This will check against the platform-specific default line separator. It is also possible to enforce the use of a specific line-separator across platforms, with the 'lineSeparator' property:
<module name="NewlineAtEndOfFile"> <property name="lineSeparator" value="lf"/> </module>Valid values for the 'lineSeparator' property are 'system' (system default), 'crlf' (windows), 'cr' (mac) and 'lf' (unix).
Method Summary | |
void |
|
void |
|
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck | |
destroy , filter , fireErrors , getCharset , getMessageCollector , getMessageDispatcher , log , log , setCharset , setFileExtensions , setMessageDispatcher |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter | |
getId , getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setId , setSeverity |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean | |
configure , contextualize , finishLocalSetup , getConfiguration , setupChild |
public void setLineSeparator(String aLineSeparator)
Sets the line separator to one of 'crlf', 'lf' or 'cr'.
- Parameters:
aLineSeparator
- The line separator to set
Back to the Checkstyle Home Page |