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.Check
com.puppycrawl.tools.checkstyle.checks.sizes.FileLengthCheck
public class FileLengthCheck
extends Check
<module name="FileLength"/>An example of how to configure the check so that it accepts files with at most 1500 lines is:
<module name="FileLength"> <property name="max" value="1500"/> </module>
Method Summary | |
void | |
int[] | |
void |
|
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check | |
beginTree , destroy , finishTree , getAcceptableTokens , getClassLoader , getDefaultTokens , getFileContents , getLines , getRequiredTokens , getTabWidth , getTokenNames , init , leaveToken , log , log , setClassLoader , setFileContents , setMessages , setTabWidth , setTokens , visitToken |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter | |
getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setSeverity |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean | |
configure , contextualize , finishLocalSetup , getConfiguration , setupChild |
public void beginTree(DetailAST aRootAST)
- Overrides:
- beginTree in interface Check
- See Also:
Check
public int[] getDefaultTokens()
- Overrides:
- getDefaultTokens in interface Check
- See Also:
Check
public void setMax(int aLength)
- Parameters:
aLength
- the maximum length of a Java source file
Back to the Checkstyle Home Page |