パッケージ | 説明 |
---|---|
com.puppycrawl.tools.checkstyle.checks.blocks |
Contains the Block checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.imports |
Contains the Imports checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.whitespace |
Contains the Whitespace checks that
are bundled with the main distribution.
|
修飾子とタイプ | クラスと説明 |
---|---|
class |
EmptyBlockCheck
Checks for empty blocks.
|
class |
LeftCurlyCheck
Checks the placement of left curly braces on types, methods and
other blocks:
LITERAL_CATCH , LITERAL_DO , LITERAL_ELSE , LITERAL_FINALLY , LITERAL_FOR , LITERAL_IF , LITERAL_SWITCH , LITERAL_SYNCHRONIZED , LITERAL_TRY , LITERAL_WHILE . |
class |
RightCurlyCheck
Checks the placement of right curly braces.
|
修飾子とタイプ | クラスと説明 |
---|---|
class |
ImportOrderCheck
groups imports: ensures that groups of imports come in a specific order
(e.g., java. comes first, javax. comes second, then everything else)
adds a separation between groups : ensures that a blank line sit between
each group
sorts imports inside each group: ensures that imports within each group
are in lexicographic order
sorts according to case: ensures that the comparison between import is
case sensitive
groups static imports: ensures that static imports are at the top (or the
bottom) of all the imports, or above (or under) each group, or are treated
like non static imports (@see
ImportOrderOption
Example:
<module name="ImportOrder">
<property name="groups" value="java,javax"/>
<property name="ordered" value="true"/>
<property name="caseSensitive" value="false"/>
<property name="option" value="above"/>
</module>
Group descriptions enclosed in slashes are interpreted as regular
expressions. |
修飾子とタイプ | クラスと説明 |
---|---|
class |
EmptyForInitializerPadCheck
Checks the padding of an empty for initializer; that is whether a
space is required at an empty for initializer, or such spaces are
forbidden.
|
class |
EmptyForIteratorPadCheck
Checks the padding of an empty for iterator; that is whether a
space is required at an empty for iterator, or such spaces are
forbidden.
|
class |
MethodParamPadCheck
Checks the padding between the identifier of a method definition,
constructor definition, method call, or constructor invocation;
and the left parenthesis of the parameter list.
|
class |
OperatorWrapCheck
Checks line wrapping for operators.
|
class |
ParenPadCheck
Checks the padding of parentheses; that is whether a space is required
after a left parenthesis and before a right parenthesis, or such spaces are
forbidden, with the exception that it does
not check for padding of the right parenthesis at an empty for iterator.
|
class |
TypecastParenPadCheck
Checks the padding of parentheses for typecasts.
|
Copyright © 2001-2013. All Rights Reserved.