Changed Javadoc documentation for "config" elements to "module" elements.
This commit is contained in:
parent
4564aecb5c
commit
fa0c0353c2
|
|
@ -35,7 +35,7 @@ import com.puppycrawl.tools.checkstyle.api.FullIdent;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="AvoidStarImport"/>
|
||||
* <module name="AvoidStarImport"/>
|
||||
* </pre>
|
||||
* @author Oliver Burn
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ConstantNameCheck"/>
|
||||
* <module name="ConstantName"/>
|
||||
* </pre>
|
||||
*
|
||||
* <p>
|
||||
|
|
@ -44,9 +44,9 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* letters and digits is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ConstantNameCheck">
|
||||
* <module name="ConstantName">
|
||||
* <property name="format" value="^[A-Z][A-Z0-9]*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
|
|
|
|||
|
|
@ -39,17 +39,17 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* <p> An example of how to configure the check is:
|
||||
* <pre>
|
||||
* <check
|
||||
* classname="com.puppycrawl.tools.checkstyle.checks.EmptyBlockCheck"/>
|
||||
* classname="com.puppycrawl.tools.checkstyle.checks.EmptyBlock"/>
|
||||
* </pre>
|
||||
*
|
||||
* <p> An example of how to configure the check for the {@link
|
||||
* BlockOption#TEXT} policy and only catch blocks is:
|
||||
*
|
||||
* <pre>
|
||||
* <config name="EmptyBlockCheck">
|
||||
* <module name="EmptyBlock">
|
||||
* <property name="tokens" value="LITERAL_CATCH"/>
|
||||
* <property name="option" value="text"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author Lars Kühne
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="EqualsHashCodeCheck"/>
|
||||
* <module name="EqualsHashCode"/>
|
||||
* </pre>
|
||||
* @author lkuehne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -38,16 +38,16 @@ import com.puppycrawl.tools.checkstyle.api.Check;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="FileLengthCheck"/>
|
||||
* <module name="FileLength"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check so that it accepts files with at
|
||||
* most 1500 lines is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="FileLengthCheck">
|
||||
* <module name="FileLength">
|
||||
* <property name="max" value="1500"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Lars Kühne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ package com.puppycrawl.tools.checkstyle.checks;
|
|||
* <code>System.out.println</code> is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="GenericIllegalRegexpCheck">
|
||||
* <module name="GenericIllegalRegexp">
|
||||
* <property name="format" value="System\.out\.println"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author lkuehne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -63,10 +63,10 @@ import org.apache.commons.beanutils.ConversionException;
|
|||
* "java.header" and ignore lines 2, 3, and 4 is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="HeaderCheck">
|
||||
* <module name="Header">
|
||||
* <property name="headerFile" value="java.header"/>
|
||||
* <property name="ignoreLines" value="2, 3, 4"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Lars Kühne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -36,16 +36,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="HiddenFieldCheck"/>
|
||||
* <module name="HiddenField"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check so that it doesn't check parameters
|
||||
* is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="HiddenFieldCheck">
|
||||
* <module name="HiddenField">
|
||||
* <property name="checkParameters" value="false"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Rick Giles
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -38,16 +38,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="IllegalImportCheck"/>
|
||||
* <module name="IllegalImport"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check so that it rejects packages
|
||||
* <code>java.io.*</code> and <code>java.sql.*</code> is
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="IllegalImportCheck">
|
||||
* <module name="IllegalImport">
|
||||
* <property name="illegalPkgs" value="java.io, java.sql"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @author Lars Kühne
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ import antlr.collections.AST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="IllegalInstantiationCheck"/>
|
||||
* <module name="IllegalInstantiation"/>
|
||||
* </pre>
|
||||
* @author lkuehne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -51,16 +51,16 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* </p>
|
||||
* <p> An example of how to configure the check is:
|
||||
* <pre>
|
||||
* <config name="InnerAssignmentCheck"/>
|
||||
* <module name="InnerAssignment"/>
|
||||
* </pre>
|
||||
*
|
||||
* <p> An example of how to configure the check for only <code>+</code>,
|
||||
* <code>+=</code>, and <code>-=</code> operators is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="InnerAssignmentCheck">
|
||||
* <module name="InnerAssignment">
|
||||
* <tokens>ASSIGN, PLUS_ASSIGN, MINUS_ASSIGN</tokens>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
|
||||
* @author lkuehne
|
||||
|
|
|
|||
|
|
@ -48,16 +48,16 @@ import org.apache.regexp.RE;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="JavadocMethodCheck"/>
|
||||
* <module name="JavadocMethod"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check to check for unused imports
|
||||
* and for the {@link Scope#PUBLIC} scope is:
|
||||
*</p>
|
||||
* <pre>
|
||||
* <config name="JavadocMethodCheck">
|
||||
* <module name="JavadocMethod">
|
||||
* <property name="scope" value="public"/>
|
||||
* <property name="checkUnusedThrows" value="true"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
|
|
|
|||
|
|
@ -46,32 +46,32 @@ import com.puppycrawl.tools.checkstyle.api.Utils;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="JavadocTypeCheck"/>
|
||||
* <module name="JavadocType"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for the
|
||||
* {@link Scope#PUBLIC} scope is:
|
||||
*</p>
|
||||
* <pre>
|
||||
* <config name="JavadocTypeCheck">
|
||||
* <module name="JavadocType">
|
||||
* <property name="scope" value="public"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for an author tag
|
||||
* and a version tag is:
|
||||
*</p>
|
||||
* <pre>
|
||||
* <config name="JavadocTypeCheck">
|
||||
* <module name="JavadocType">
|
||||
* <property name="authorFormat" value="\S"/>
|
||||
* <property name="versionFormat" value="\S"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for a
|
||||
* CVS revision version tag is:
|
||||
*</p>
|
||||
* <pre>
|
||||
* <config name="JavadocTypeCheck">
|
||||
* <module name="JavadocType">
|
||||
* <property name="versionFormat" value="\$Revision.*\$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
|
||||
|
|
|
|||
|
|
@ -33,15 +33,15 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="JavadocVariableCheck"/>
|
||||
* <module name="JavadocVariable"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for the
|
||||
* {@link Scope#PUBLIC} scope is:
|
||||
*</p>
|
||||
* <pre>
|
||||
* <config name="JavadocVariableCheck">
|
||||
* <module name="JavadocVariable">
|
||||
* <property name="scope" value="public"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -51,24 +51,24 @@ import org.apache.commons.beanutils.ConversionException;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="LineLengthCheck"/>
|
||||
* <module name="LineLength"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check to accept lines up to 120
|
||||
* characters long is:
|
||||
*</p>
|
||||
* <pre>
|
||||
* <config name="LineLengthCheck">
|
||||
* <module name="LineLength">
|
||||
* <property name="max" value="120"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check to ignore lines that begin with
|
||||
* " * ", followed by just one word, such as within a Javadoc comment,
|
||||
* is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="LineLengthCheck">
|
||||
* <module name="LineLength">
|
||||
* <property name="ignorePattern" value="^ *\* *[^ ]+$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author Lars Kühne
|
||||
|
|
|
|||
|
|
@ -34,16 +34,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="LocalFinalVariableNameCheck"/>
|
||||
* <module name="LocalFinalVariableName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that are only upper case
|
||||
* letters and digits is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="LocalFinalVariableNameCheck">
|
||||
* <module name="LocalFinalVariableName">
|
||||
* <property name="format" value="^[A-Z][A-Z0-9]*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author Rick Giles
|
||||
|
|
|
|||
|
|
@ -35,16 +35,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="LocalVariableNameCheck"/>
|
||||
* <module name="LocalVariableName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that begin with a lower
|
||||
* case letter, followed by letters, digits, and underscores is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="LocalVariableNameCheck">
|
||||
* <module name="LocalVariableName">
|
||||
* <property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Rick Giles
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MemberNameCheck"/>
|
||||
* <module name="MemberName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that begin with
|
||||
|
|
@ -43,9 +43,9 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* digits is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MemberNameCheck">
|
||||
* <module name="MemberName">
|
||||
* <property name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Rick Giles
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -34,17 +34,17 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MethodLeftCurlyCheck"/>
|
||||
* <module name="MethodLeftCurly"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check with policy
|
||||
* {@link LeftCurlyOption#NLOW} and maxLineLength 120 is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MethodLeftCurlyCheck">
|
||||
* <module name="MethodLeftCurly">
|
||||
* <property name="option" value="nlow"/>
|
||||
* <property name="maxLineLength" value="120"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
|
|
|
|||
|
|
@ -39,16 +39,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MethodLengthCheck"/>
|
||||
* <module name="MethodLength"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check so that it accepts methods with at
|
||||
* most 60 lines is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MethodLengthCheck">
|
||||
* <module name="MethodLength">
|
||||
* <property name="max" value="60"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Lars Kühne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -33,16 +33,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MethodNameCheck"/>
|
||||
* <module name="MethodName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that begin with
|
||||
* a lower case letter, followed by letters, digits, and underscores is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="MethodNameCheck">
|
||||
* <module name="MethodName">
|
||||
* <property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ModifierCheck"/>
|
||||
* <module name="Modifier"/>
|
||||
* </pre>
|
||||
* @author Lars Kühne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -39,14 +39,14 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="NeedBracesCheck"/>
|
||||
* <module name="NeedBraces"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for <code>if</code> and
|
||||
* <code>else</code> blocks is:
|
||||
* <pre>
|
||||
* <config name="NeedBracesCheck">
|
||||
* <module name="NeedBraces">
|
||||
* <property name="tokens" value="LITERAL_IF, LITERAL_ELSE"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Rick Giles
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -45,15 +45,15 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="NoWhitespaceAfterCheck"/>
|
||||
* <module name="NoWhitespaceAfter"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check to allow linebreaks after
|
||||
* a {@link TokenTypes#DOT DOT} token is:
|
||||
* <pre>
|
||||
* <config name="NoWhitespaceAfterCheck">
|
||||
* <module name="NoWhitespaceAfter">
|
||||
* <property name="tokens" value="DOT"/>
|
||||
* <property name="allowLineBreaks" value="true"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Rick Giles
|
||||
* @author lkuehne
|
||||
|
|
|
|||
|
|
@ -41,15 +41,15 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="NoWhitespaceBeforeCheck"/>
|
||||
* <module name="NoWhitespaceBefore"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check to allow linebreaks before
|
||||
* a {@link TokenTypes#DOT DOT} token is:
|
||||
* <pre>
|
||||
* <config name="NoWhitespaceBeforeCheck">
|
||||
* <module name="NoWhitespaceBefore">
|
||||
* <property name="tokens" value="DOT"/>
|
||||
* <property name="allowLineBreaks" value="true"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Rick Giles
|
||||
* @author lkuehne
|
||||
|
|
|
|||
|
|
@ -70,17 +70,17 @@ import com.puppycrawl.tools.checkstyle.api.Utils;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="OperatorWrapCheck"/>
|
||||
* <module name="OperatorWrap"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for assignment operators at the
|
||||
* end of a line is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="OperatorWrapCheck">
|
||||
* <module name="OperatorWrap">
|
||||
* <property name="tokens"
|
||||
* value="ASSIGN,DIV_ASSIGN,PLUS_ASSIGN,MINUS_ASSIGN,STAR_ASSIGN,MOD_ASSIGN,SR_ASSIGN,BSR_ASSIGN,SL_ASSIGN,BXOR_ASSIGN,BOR_ASSIGN,BAND_ASSIGN"/>
|
||||
* <property name="option" value="eol"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author Rick Giles
|
||||
|
|
|
|||
|
|
@ -49,17 +49,17 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="OtherLeftCurlyCheck"/>
|
||||
* <module name="OtherLeftCurly"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check with policy
|
||||
* {@link LeftCurlyOption#NLOW} and maxLineLength 120 is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="OtherLeftCurlyCheck">
|
||||
* <module name="OtherLeftCurly">
|
||||
* <property name="option" value="nlow"/>
|
||||
* <property name="maxLineLength" value="120"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check with policy
|
||||
|
|
@ -67,10 +67,10 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="OtherLeftCurlyCheck">
|
||||
* <module name="OtherLeftCurly">
|
||||
* <property name="option" value="nl"/>
|
||||
* <property name="tokens" value="LITERAL_IF, LITERAL_ELSE"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="PackageHtmlCheck"/>
|
||||
* <module name="PackageHtml"/>
|
||||
* </pre>
|
||||
* @author lkuehne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -43,17 +43,17 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="PackageNameCheck"/>
|
||||
* <module name="PackageName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for package names that begin with
|
||||
* <code>com.puppycrawl.tools.checkstyle</code> is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="PackageNameCheck">
|
||||
* <module name="PackageName">
|
||||
* <property name="format"
|
||||
* value="^com\.puppycrawl\.tools\.checkstyle(\\.[a-zA-Z_][a-zA-Z_0-9]*)*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
|
|
|
|||
|
|
@ -34,16 +34,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ParameterNameCheck"/>
|
||||
* <module name="ParameterName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that begin with
|
||||
* a lower case letter, followed by letters, digits, and underscores is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ParameterNameCheck">
|
||||
* <module name="ParameterName">
|
||||
* <property name="format" value="^^[a-z](_?[a-zA-Z0-9]+)*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
|
||||
*
|
||||
* @author Oliver Burn
|
||||
|
|
|
|||
|
|
@ -33,15 +33,15 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ParameterNumberCheck"/>
|
||||
* <module name="ParameterNumber"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check to allow 10 parameters is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ParameterNumberCheck">
|
||||
* <module name="ParameterNumber">
|
||||
* <property name="max" value="10"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
|
||||
* @author Oliver Burn
|
||||
|
|
|
|||
|
|
@ -43,18 +43,18 @@ import com.puppycrawl.tools.checkstyle.api.Utils;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ParenPadCheck"/>
|
||||
* <module name="ParenPad"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check to require spaces for the
|
||||
* parentheses of constructor, method, and super constructor invocations is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="ParenPadCheck">
|
||||
* <module name="ParenPad">
|
||||
* <property name="tokens"
|
||||
* value="CTOR_CALL, METHOD_CALL, SUPER_CTOR_CALL"/>
|
||||
* <property name="option" value="space"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -35,16 +35,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="PublicMemberNameCheck"/>
|
||||
* <module name="PublicMemberName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that begin with
|
||||
*lower case letter, followed by letters and digits is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="PublicMemberNameCheck">
|
||||
* <module name="PublicMemberName">
|
||||
* <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author Rick Giles
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ import java.util.HashSet;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="RedundantImportCheck"/>
|
||||
* <module name="RedundantImport"/>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="RedundantModifierCheck"/>
|
||||
* <module name="RedundantModifier"/>
|
||||
* </pre>
|
||||
* @author lkuehne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -56,10 +56,10 @@ import com.puppycrawl.tools.checkstyle.api.Utils;
|
|||
* "java.header" and ignore lines 4 and 5 is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="RegexpHeaderCheck">
|
||||
* <module name="RegexpHeader">
|
||||
* <property name="headerFile" value="java.header"/>
|
||||
* <property name="ignoreLines" value="4, 5"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author Lars Kühne
|
||||
|
|
|
|||
|
|
@ -36,17 +36,17 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="RightCurlyCheck"/>
|
||||
* <module name="RightCurly"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check with policy
|
||||
* {@link RightCurlyOption#ALONE} for <code>else</code> tokens is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="RightCurlyCheck">
|
||||
* <module name="RightCurly">
|
||||
* <property name="tokens" value="LITERAL_ELSE"/>
|
||||
* <property name="option" value="alone"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @author lkuehne
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="SimplifyBooleanExpressionCheck"/>
|
||||
* <module name="SimplifyBooleanExpression"/>
|
||||
* </pre>
|
||||
* @author lkuehne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="SimplifyBooleanReturnCheck"/>
|
||||
* <module name="SimplifyBooleanReturn"/>
|
||||
* </pre>
|
||||
* @author Lars Kühne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -35,16 +35,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="StaticVariableNameCheck"/>
|
||||
* <module name="StaticVariableName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that begin with
|
||||
* a lower case letter, followed by letters, digits, and underscores is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="StaticVariableNameCheck">
|
||||
* <module name="StaticVariableName">
|
||||
* <property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Rick Giles
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ import com.puppycrawl.tools.checkstyle.api.Check;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TabCharacterCheck"/>
|
||||
* <module name="TabCharacter"/>
|
||||
* </pre>
|
||||
* @author Lars Kühne
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -36,16 +36,16 @@ import com.puppycrawl.tools.checkstyle.api.FileContents;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TodoCommentCheck"/>
|
||||
* <module name="TodoComment"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for comments that contain
|
||||
* <code>WARNING</code> is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TodoCommentCheck">
|
||||
* <module name="TodoComment">
|
||||
* <property name="format" value="WARNING"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ import com.puppycrawl.tools.checkstyle.Defn;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TranslationCheck"/>
|
||||
* <module name="Translation"/>
|
||||
* </pre>
|
||||
* @author Alexandra Bunge
|
||||
* @author lkuehne
|
||||
|
|
|
|||
|
|
@ -33,17 +33,17 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TypeLeftCurlyCheck"/>
|
||||
* <module name="TypeLeftCurly"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check with policy
|
||||
* {@link LeftCurlyOption#NLOW} and maxLineLength 120 is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TypeLeftCurlyCheck">
|
||||
* <module name="TypeLeftCurly">
|
||||
* <property name="option" value="nlow"/>
|
||||
* <property name="maxLineLength" value="120"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @author lkuehne
|
||||
|
|
|
|||
|
|
@ -33,16 +33,16 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TypeNameCheck"/>
|
||||
* <module name="TypeName"/>
|
||||
* </pre>
|
||||
* <p>
|
||||
* An example of how to configure the check for names that begin with
|
||||
* a lower case letter, followed by letters, digits, and underscores is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="TypeNameCheck">
|
||||
* <module name="TypeName">
|
||||
* <property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author Oliver Burn
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import java.util.Iterator;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="UnusedImportsCheck"/>
|
||||
* <module name="UnusedImports"/>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ import com.puppycrawl.tools.checkstyle.api.Check;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="UpperEllCheck"/>
|
||||
* <module name="UpperEll"/>
|
||||
* </pre>
|
||||
* @author Oliver Burn
|
||||
* @version 1.0
|
||||
|
|
|
|||
|
|
@ -35,15 +35,15 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="WhitespaceAfterCheck"/>
|
||||
* <module name="WhitespaceAfter"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for whitespace only after
|
||||
* {@link TokenTypes#COMMA COMMA} and {@link TokenTypes#SEMI SEMI} tokens is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="WhitespaceAfterCheck">
|
||||
* <module name="WhitespaceAfter">
|
||||
* <property name="tokens" value="COMMA, SEMI"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @author Rick Giles
|
||||
|
|
|
|||
|
|
@ -79,16 +79,16 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="WhitespaceAroundCheck"/>
|
||||
* <module name="WhitespaceAround"/>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check for whitespace only around
|
||||
* assignment operators is:
|
||||
* </p>
|
||||
* <pre>
|
||||
* <config name="WhitespaceAroundCheck">
|
||||
* <module name="WhitespaceAround">
|
||||
* <property name="tokens"
|
||||
* value="ASSIGN,DIV_ASSIGN,PLUS_ASSIGN,MINUS_ASSIGN,STAR_ASSIGN,MOD_ASSIGN,SR_ASSIGN,BSR_ASSIGN,SL_ASSIGN,BXOR_ASSIGN,BOR_ASSIGN,BAND_ASSIGN"/>
|
||||
* </config>
|
||||
* </module>
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue