aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexkravin <nesterenko-aleksey@list.ru>2015-03-17 02:19:31 +0400
committerRoman Ivanov <ivanov-jr@mail.ru>2015-03-17 09:29:37 -0700
commitbcb409636668ddd466c48cac95b28dc93de02a9f (patch)
tree6b53f2ef2d2abd2e803c59e2f734903b2a9c3737
parent565bce1493cf116dbd5defb289239e48de0c6a7c (diff)
downloadcheckstyle-bcb409636668ddd466c48cac95b28dc93de02a9f.tar.gz
Removed AvailableChecks page, updated corresponding UT, updated README
-rw-r--r--README.md2
-rw-r--r--src/test/java/com/puppycrawl/tools/checkstyle/AllChecksPresentOnAvailableChecksPageTest.java2
-rw-r--r--src/xdocs/availablechecks.xml772
-rw-r--r--src/xdocs/checks.xml4
4 files changed, 6 insertions, 774 deletions
diff --git a/README.md b/README.md
index 3a04d0b8c..6d2783cad 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ checking Java source code for adherence to a Code Standard or set of validation
The latest version can be found at [SourceForge downloads](https://sourceforge.net/projects/checkstyle/files/checkstyle/) or at [Maven repo](http://repo1.maven.org/maven2/com/puppycrawl/tools/checkstyle/).
-Documentation is available in HTML format, see http://checkstyle.sourceforge.net/availablechecks.html.
+Documentation is available in HTML format, see http://checkstyle.sourceforge.net/checks.html.
Continuous integration and Quality reports
======================
diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/AllChecksPresentOnAvailableChecksPageTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/AllChecksPresentOnAvailableChecksPageTest.java
index 811c6f711..a6b0edd36 100644
--- a/src/test/java/com/puppycrawl/tools/checkstyle/AllChecksPresentOnAvailableChecksPageTest.java
+++ b/src/test/java/com/puppycrawl/tools/checkstyle/AllChecksPresentOnAvailableChecksPageTest.java
@@ -33,7 +33,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
public class AllChecksPresentOnAvailableChecksPageTest
{
private static final File JAVA_SOURCES_DIRECTORY = new File("src/main/java");
- private static final String AVAILABLE_CHECKS_PATH = "src/xdocs/availablechecks.xml";
+ private static final String AVAILABLE_CHECKS_PATH = "src/xdocs/checks.xml";
private static final File AVAILABLE_CHECKS_FILE = new File(AVAILABLE_CHECKS_PATH);
private static final String CHECK_FILE_NAME = ".+Check.java$";
private static final String CHECK_SUFFIX = "Check.java";
diff --git a/src/xdocs/availablechecks.xml b/src/xdocs/availablechecks.xml
deleted file mode 100644
index f1cf0139f..000000000
--- a/src/xdocs/availablechecks.xml
+++ /dev/null
@@ -1,772 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<document xmlns="http://maven.apache.org/XDOC/2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
-
- <properties>
- <title>Available Checks</title>
- <author email="checkstyle-devel@lists.sourceforge.net">Checkstyle Development Team</author>
- </properties>
-
- <body>
-<section name="Available Checks">
- <p>
- Checkstyle provides many checks that you can apply to your
- source code. Below is an alphabetical reference, the site
- navigation menu provides a reference organized by functionality.
- </p>
- <table>
- <tr>
- <td><a href="config_naming.html#AbbreviationAsWordInName">AbbreviationAsWordInName</a></td>
- <td>The Check validate abbreviations(consecutive capital letters)
- length in identifier name, it also allow in enforce camel case naming.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#AbstractClassName">AbstractClassName</a></td>
- <td>
- Ensures that the names of abstract classes conforming to some
- regular expression.
- </td>
- </tr>
- <tr>
- <td><a href="config_annotation.html#AnnotationLocation">AnnotationLocation</a></td>
- <td>Check location of annotation on language elements.</td>
- </tr>
- <tr>
- <td><a href="config_annotation.html#AnnotationUseStyle">AnnotationUseStyle</a></td>
- <td>This check controls the style with the usage of annotations.</td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#AnonInnerLength">AnonInnerLength</a></td>
- <td>Checks for long anonymous inner classes.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#ArrayTrailingComma">ArrayTrailingComma</a></td>
- <td>Checks if array initialization contains optional trailing comma.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#ArrayTypeStyle">ArrayTypeStyle</a></td>
- <td>Checks the style of array type definitions.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#AtclauseOrder">AtclauseOrder</a></td>
- <td>Checks the order of at-clauses.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#AvoidEscapedUnicodeCharacters">AvoidEscapedUnicodeCharacters</a></td>
- <td>Restrict using Unicode escapes.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#AvoidInlineConditionals">AvoidInlineConditionals</a></td>
- <td>Detects inline conditionals.</td>
- </tr>
- <tr>
- <td><a href="config_blocks.html#AvoidNestedBlocks">AvoidNestedBlocks</a></td>
- <td>Finds nested blocks.</td>
- </tr>
- <tr>
- <td><a href="config_imports.html#AvoidStarImport">AvoidStarImport</a></td>
- <td>Check that finds import statements that use the * notation.</td>
- </tr>
- <tr>
- <td><a href="config_imports.html#AvoidStaticImport">AvoidStaticImport</a></td>
- <td>Check that finds static imports.</td>
- </tr>
- <tr>
- <td><a href="config_metrics.html#BooleanExpressionComplexity">BooleanExpressionComplexity</a></td>
- <td>
- Restricts nested boolean operators (&amp;&amp;, ||, &amp;, |
- and ^) to a specified depth (default = 3).
- </td>
- </tr>
- <tr>
- <td><a href="config_metrics.html#ClassDataAbstractionCoupling">ClassDataAbstractionCoupling</a></td>
- <td>This metric measures the number of instantiations of other classes within the given class.</td>
- </tr>
- <tr>
- <td><a href="config_metrics.html#ClassFanOutComplexity">ClassFanOutComplexity</a></td>
- <td>The number of other classes a given class relies on.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">ClassTypeParameterName</a></td>
- <td>
- Checks that class type parameter names conform to a format
- specified by the format property.
- </td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">ConstantName</a></td>
- <td>Checks that constant names conform to a format specified by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#CovariantEquals">CovariantEquals</a></td>
- <td>
- Checks that if a class defines a covariant method equals, then
- it defines method equals(java.lang.Object).
- </td>
- </tr>
- <tr>
- <td><a href="config_imports.html#CustomImportOrder">CustomImportOrder</a></td>
- <td>
- Checks that the groups of import declarations appear in the order specified
- by the user.
- </td>
- </tr>
- <tr>
- <td><a href="config_metrics.html#CyclomaticComplexity">CyclomaticComplexity</a></td>
- <td>Checks cyclomatic complexity against a specified limit.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#DeclarationOrder">DeclarationOrder</a></td>
- <td>
- Checks that the parts of a class or interface declaration
- appear in the order suggested by the <a
- href="http://java.sun.com/docs/codeconv/html/CodeConventions.doc2.html#1852"
- >Code Conventions for the Java Programming Language</a>.
- </td>
- </tr>
- <tr>
- <td><a href="config_coding.html#DefaultComesLast">DefaultComesLast</a></td>
- <td>
- Check that the <code>default</code> is after all the
- <code>case</code>s in a <code>switch</code> statement.
- </td>
- </tr>
- <tr>
- <td><a href="config_misc.html#DescendantToken">DescendantToken</a></td>
- <td>Checks for restricted tokens beneath other tokens.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#DesignForExtension">DesignForExtension</a></td>
- <td>Checks that classes are designed for inheritance.</td>
- </tr>
- <tr>
- <td><a href="config_blocks.html#EmptyBlock">EmptyBlock</a></td>
- <td>Checks for empty blocks.</td>
- </tr>
- <tr>
- <td><a href="config_blocks.html#EmptyCatchBlock">EmptyCatchBlock</a></td>
- <td>Checks for empty catch blocks with few options to skip violation.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#EmptyForInitializerPad">EmptyForInitializerPad</a></td>
- <td>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.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#EmptyForIteratorPad">EmptyForIteratorPad</a></td>
- <td>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.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#EmptyLineSeparator">EmptyLineSeparator</a></td>
- <td>Checks for blank line separators.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#EmptyStatement">EmptyStatement</a></td>
- <td>
- Detects empty statements (standalone ';').</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#EqualsAvoidNull">EqualsAvoidNull</a></td>
- <td>
- Checks that any combination of String literals with optional
- assignment is on the left side of an equals() comparison.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#EqualsHashCode">EqualsHashCode</a></td>
- <td>
- Checks that classes that override equals() also override hashCode().</td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#ExecutableStatementCount">ExecutableStatementCount</a></td>
- <td>
- Restricts the number of executable statements to a specified
- limit (default = 30).
- </td>
- </tr>
- <tr>
- <td><a href="config_coding.html#ExplicitInitialization">ExplicitInitialization</a></td>
- <td>
- Checks if any class or object member explicitly initialized
- to default for its type value (<code>null</code> for object
- references, zero for numeric types and <code>char</code>
- and <code>false</code> for <code>boolean</code>.
- </td>
- </tr>
- <tr>
- <td><a href="config_coding.html#FallThrough">FallThrough</a></td>
- <td>Checks for fall through in switch statements
- Finds locations where a case contains Java code -
- but lacks a break, return, throw or continue statement.</td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#FileLength">FileLength</a></td>
- <td>
- Checks for long source files.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#FileTabCharacter">FileTabCharacter</a></td>
- <td>Checks to see if a file contains a tab character.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#FinalClass">FinalClass</a></td>
- <td>
- Checks that class which has only private ctors
- is declared as final.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#FinalLocalVariable">FinalLocalVariable</a></td>
- <td>
- Ensures that local variables that never get their values changed,
- must be declared final.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#FinalParameters">FinalParameters</a></td>
- <td>Check that method/constructor/catch/foreach parameters are final.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#GenericWhitespace">GenericWhitespace</a></td>
- <td>Checks that the whitespace around the Generic tokens &lt; and &gt; are
- correct to the <i>typical</i> convention.</td>
- </tr>
- <tr>
- <td><a href="config_header.html#Header">Header</a></td>
- <td>Checks the header of the source against a fixed header file.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#HiddenField">HiddenField</a></td>
- <td>Checks that a local variable or a parameter does not shadow
- a field that is defined in the same class.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#HideUtilityClassConstructor">HideUtilityClassConstructor</a></td>
- <td>Make sure that utility classes (classes that contain only static methods)
- do not have a public constructor.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#IllegalCatch">IllegalCatch</a></td>
- <td>Catching java.lang.Exception, java.lang.Error or java.lang.RuntimeException
- is almost never acceptable.</td>
- </tr>
- <tr>
- <td><a href="config_imports.html#IllegalImport">IllegalImport</a></td>
- <td>
- Checks for imports from a set of illegal packages.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#IllegalInstantiation">IllegalInstantiation</a></td>
- <td>
- Checks for illegal instantiations where a factory method is preferred.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#IllegalThrows">IllegalThrows</a></td>
- <td>Throwing java.lang.Error or java.lang.RuntimeException
- is almost never acceptable.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#IllegalToken">IllegalToken</a></td>
- <td>
- Checks for illegal tokens.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#IllegalTokenText">IllegalTokenText</a></td>
- <td>
- Checks for illegal token text.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#IllegalType">IllegalType</a></td>
- <td>
- Checks that particular class are never used as types in variable
- declarations, return values or parameters.</td>
- </tr>
- <tr>
- <td><a href="config_imports.html#ImportControl">ImportControl</a></td>
- <td>Check that controls what packages can be imported in each package.</td>
- </tr>
- <tr>
- <td><a href="config_imports.html#ImportOrder">ImportOrder</a></td>
- <td>Ensures that groups of imports come in a specific order.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#Indentation">Indentation</a></td>
- <td>Checks correct indentation of Java Code.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#InnerAssignment">InnerAssignment</a></td>
- <td>
- Checks for assignments in subexpressions, such as in
- <code>String s = Integer.toString(i = 2);</code>.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#InnerTypeLast">InnerTypeLast</a></td>
- <td>
- Check nested (internal) classes/interfaces are declared at the bottom of the
- class after all method and field declarations.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#InterfaceIsType">InterfaceIsType</a></td>
- <td>Implements Bloch, Effective Java, Item 17 -
- Use Interfaces only to define types.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">InterfaceTypeParameterName</a></td>
- <td>
- Checks that interface type parameter names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_metrics.html#JavaNCSS">JavaNCSS</a></td>
- <td>This check calculates the Non Commenting Source Statements (NCSS) metric for
- Java source files and methods.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#JavadocMethod">JavadocMethod</a></td>
- <td>Checks the Javadoc of a method or constructor.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#JavadocPackage">JavadocPackage</a></td>
- <td>Checks that all packages have a package documentation.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#JavadocTagContinuationIndentation">JavadocTagContinuationIndentation</a></td>
- <td>Checks the indentation of the continuation lines in at-clauses.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#JavadocParagraph">JavadocParagraph</a></td>
- <td>Checks Javadoc paragraphs.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#JavadocStyle">JavadocStyle</a></td>
- <td>Custom Checkstyle Check to validate Javadoc.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#JavadocType">JavadocType</a></td>
- <td>Checks the Javadoc of a type.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#JavadocVariable">JavadocVariable</a></td>
- <td>Checks that a variable has Javadoc comment.</td>
- </tr>
- <tr>
- <td><a href="config_blocks.html#LeftCurly">LeftCurly</a></td>
- <td>
- Checks the placement of left curly braces on types, methods and
- other blocks:
- </td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#LineLength">LineLength</a></td>
- <td>Checks for long lines.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">LocalFinalVariableName</a></td>
- <td>
- Checks that local final variable names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#LocalVariableName">LocalVariableName</a></td>
- <td>
- Checks that local, non-final variable names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#MagicNumber">MagicNumber</a></td>
- <td>
- Checks for magic numbers.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">MemberName</a></td>
- <td>
- Checks that instance variable names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#MethodCount">MethodCount</a></td>
- <td>Checks the number of methods declared in each type.</td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#MethodLength">MethodLength</a></td>
- <td>
- Checks for long methods.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#MethodName">MethodName</a></td>
- <td>
- Checks that method names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#MethodParamPad">MethodParamPad</a></td>
- <td>
- 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.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">MethodTypeParameterName</a></td>
- <td>
- Checks that class type parameter names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#MissingCtor">MissingCtor</a></td>
- <td>
- Checks that classes (except abstract one) define a ctor and don't rely
- on the default one.</td>
- </tr>
- <tr>
- <td><a href="config_annotation.html#MissingDeprecated">MissingDeprecated</a></td>
- <td>
- This class is used to verify that both the
- </td>
- </tr>
- <tr>
- <td><a href="config_annotation.html#MissingOverride">MissingOverride</a></td>
- <td>
- This class is used to verify that the </td>
- </tr>
- <tr>
- <td><a href="config_coding.html#MissingSwitchDefault">MissingSwitchDefault</a></td>
- <td>
- Checks that switch statement has &quot;default&quot; clause.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#ModifiedControlVariable">ModifiedControlVariable</a></td>
- <td>Check for ensuring that for loop control variables are not modified
- inside the for block.</td>
- </tr>
- <tr>
- <td><a href="config_modifier.html#ModifierOrder">ModifierOrder</a></td>
- <td>
- Checks that the order of modifiers conforms to the suggestions in the
- <a
- href="http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html">
- Java Language specification, sections 8.1.1, 8.3.1 and 8.4.3</a>.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#MultipleStringLiterals">MultipleStringLiterals</a></td>
- <td>Checks for multiple occurrences of the same string literal within a
- single file.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#MultipleVariableDeclarations">MultipleVariableDeclarations</a></td>
- <td>
- Checks that each variable declaration is in its own statement
- and on its own line.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#MutableException">MutableException</a></td>
- <td> Ensures that exceptions (defined as any class name conforming
- to some regular expression) are immutable.</td>
- </tr>
- <tr>
- <td><a href="config_metrics.html#NPathComplexity">NPathComplexity</a></td>
- <td>Checks the npath complexity against a specified limit (default = 200).</td>
- </tr>
- <tr>
- <td><a href="config_blocks.html#NeedBraces">NeedBraces</a></td>
- <td>
- Checks for braces around code blocks.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#NestedForDepth">NestedForDepth</a></td>
- <td>Restricts nested <code>for</code> blocks to a specified depth (default = 1).</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#NestedIfDepth">NestedIfDepth</a></td>
- <td>Restricts nested if-else blocks to a specified depth (default = 1).</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#NestedTryDepth">NestedTryDepth</a></td>
- <td>Restricts nested try-catch-finally blocks to a specified depth (default = 1).</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#NewlineAtEndOfFile">NewlineAtEndOfFile</a></td>
- <td>
- Checks that there is a newline at the end of each file.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#NoClone">NoClone</a></td>
- <td>
- Checks that the clone method is not overridden from the
- Object class.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#NoFinalizer">NoFinalizer</a></td>
- <td>Checks that no method having zero parameters is defined
- using the name <em>finalize</em>.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#NonEmptyAtclauseDescription">NonEmptyAtclauseDescription</a></td>
- <td>
- Checks that the at-clause tag is followed by description .</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#NoLineWrap">NoLineWrap</a></td>
- <td>
- Checks that chosen statements are not line-wrapped.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#NoWhitespaceAfter">NoWhitespaceAfter</a></td>
- <td>
- Checks that there is no whitespace after a token.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#NoWhitespaceBefore">NoWhitespaceBefore</a></td>
- <td>
- Checks that there is no whitespace before a token.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#OneStatementPerLine">OneStatementPerLine</a></td>
- <td>Checks there is only one statement per line.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#OneTopLevelClass">OneTopLevelClass</a></td>
- <td>Checks that each top-level class, interfaces or enum resides in a source file of its own.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#OperatorWrap">OperatorWrap</a></td>
- <td>
- Checks line wrapping for operators.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#OuterTypeFilename">OuterTypeFilename</a></td>
- <td>Checks that the outer type name and the file name match.</td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#OuterTypeNumber">OuterTypeNumber</a></td>
- <td>Checks for the number of defined types at the "outer" level.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#OverloadMethodsDeclarationOrder">OverloadMethodsDeclarationOrder</a></td>
- <td>Checks that overload methods are grouped together.</td>
- </tr>
- <tr>
- <td><a href="config_annotation.html#PackageAnnotation">PackageAnnotation</a></td>
- <td>This check makes sure that all package annotations are in the
- package-info.java file.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#PackageDeclaration">PackageDeclaration</a></td>
- <td>Ensures there is a package declaration and (optionally) in the correct directory.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">PackageName</a></td>
- <td>
- Checks that package names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#ParameterAssignment">ParameterAssignment</a></td>
- <td>
- Disallow assignment of parameters.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">ParameterName</a></td>
- <td>
- Checks that parameter names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_sizes.html#ParameterNumber">ParameterNumber</a></td>
- <td>
- Checks the number of parameters that a method or constructor has.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#ParenPad">ParenPad</a></td>
- <td>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.</td>
- </tr>
- <tr>
- <td><a href="config_imports.html#RedundantImport">RedundantImport</a></td>
- <td>
- Checks for imports that are redundant.</td>
- </tr>
- <tr>
- <td><a href="config_modifier.html#RedundantModifier">RedundantModifier</a></td>
- <td>Checks for redundant modifiers in interface and annotation definitions.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#Regexp">Regexp</a></td>
- <td>
- A check that makes sure that a specified pattern exists (or not) in the file.</td>
- </tr>
- <tr>
- <td><a href="config_header.html#RegexpHeader">RegexpHeader</a></td>
- <td>Checks the header of the source against a header file that contains a
- </td>
- </tr>
- <tr>
- <td><a href="config_regexp.html#RegexpMultiline">RegexpMultiline</a></td>
- <td>Implementation of a check that looks that matches across multiple lines in
- any file type.</td>
- </tr>
- <tr>
- <td><a href="config_regexp.html#RegexpSingleline">RegexpSingleline</a></td>
- <td>Implementation of a check that looks for a single line in any file type.</td>
- </tr>
- <tr>
- <td><a href="config_regexp.html#RegexpSinglelineJava">RegexpSinglelineJava</a></td>
- <td>Implementation of a check that looks for a single line in Java files.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#RequireThis">RequireThis</a></td>
- <td>Checks that code doesn't rely on the &quot;this&quot; default.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#ReturnCount">ReturnCount</a></td>
- <td>
- Restricts return statements to a specified count (default = 2).</td>
- </tr>
- <tr>
- <td><a href="config_blocks.html#RightCurly">RightCurly</a></td>
- <td>
- Checks the placement of right curly braces.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#SeparatorWrap">SeparatorWrap</a></td>
- <td>
- Checks line wrapping with separators.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#SingleLineJavadoc">SingleLineJavadoc</a></td>
- <td>
- Checks that a JavaDoc block which can fit on a single line and doesn't contain at-clauses</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#SimplifyBooleanExpression">SimplifyBooleanExpression</a></td>
- <td>
- Checks for overly complicated boolean expressions.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#SimplifyBooleanReturn">SimplifyBooleanReturn</a></td>
- <td>
- Checks for overly complicated boolean return statements.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#Modules">StaticVariableName</a></td>
- <td>
- Checks that static, non-final variable names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#StringLiteralEquality">StringLiteralEquality</a></td>
- <td>Checks that string literals are not used with
- <code>==</code> or <code>&#33;=</code>.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#SummaryJavadoc">SummaryJavadoc</a></td>
- <td>
- Checks that Javadoc summary sentence does not contain phrases that are not recommended to use.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#SuperClone">SuperClone</a></td>
- <td>
- Checks that an overriding clone() method invokes super.clone().</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#SuperFinalize">SuperFinalize</a></td>
- <td>
- Checks that an overriding finalize() method invokes super.finalize().</td>
- </tr>
- <tr>
- <td><a href="config_annotation.html#SuppressWarnings">SuppressWarnings</a></td>
- <td>
- This check allows you to specify what warnings that
- </td>
- </tr>
- <tr>
- <td><a href="config_annotation.html#SuppressWarningsHolder">SuppressWarningsHolder</a></td>
- <td>
- This check allows for finding code that should not be reported by Checkstyle
- </td>
- </tr>
- <tr>
- <td><a href="config_design.html#ThrowsCount">ThrowsCount</a></td>
- <td>
- Restricts throws statements to a specified count (default = 1).</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#TodoComment">TodoComment</a></td>
- <td>
- A check for TODO comments.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#TrailingComment">TrailingComment</a></td>
- <td>
- The check to ensure that requires that comments be the only thing on a line.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#Translation">Translation</a></td>
- <td>
- The TranslationCheck class helps to ensure the correct translation of code by
- checking property files for consistency regarding their keys.</td>
- </tr>
- <tr>
- <td><a href="config_naming.html#TypeName">TypeName</a></td>
- <td>
- Checks that type names conform to a format specified
- by the format property.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#TypecastParenPad">TypecastParenPad</a></td>
- <td>Checks the padding of parentheses for typecasts.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#UncommentedMain">UncommentedMain</a></td>
- <td>Detects uncommented main methods.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#UniqueProperties">UniqueProperties</a></td>
- <td>Detects duplicated keys in properties files.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#UnnecessaryParentheses">UnnecessaryParentheses</a></td>
- <td>
- Checks if unnecessary parentheses are used in a statement or expression.</td>
- </tr>
- <tr>
- <td><a href="config_imports.html#UnusedImports">UnusedImports</a></td>
- <td>
- Checks for unused import statements.</td>
- </tr>
- <tr>
- <td><a href="config_misc.html#UpperEll">UpperEll</a></td>
- <td>Checks that long constants are defined with an upper ell.</td>
- </tr>
- <tr>
- <td><a href="config_coding.html#VariableDeclarationUsageDistance">VariableDeclarationUsageDistance</a></td>
- <td>Checks the distance between declaration of variable and its first usage.</td>
- </tr>
- <tr>
- <td><a href="config_design.html#VisibilityModifier">VisibilityModifier</a></td>
- <td>Checks visibility of class members.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#WhitespaceAfter">WhitespaceAfter</a></td>
- <td>
- Checks that a token is followed by whitespace, with the exception that it
- does not check for whitespace after the semicolon of an empty for iterator.</td>
- </tr>
- <tr>
- <td><a href="config_whitespace.html#WhitespaceAround">WhitespaceAround</a></td>
- <td>
- Checks that a token is surrounded by whitespace.</td>
- </tr>
- <tr>
- <td><a href="config_javadoc.html#WriteTag">WriteTag</a></td>
- <td>
- Outputs a JavaDoc tag as information.</td>
- </tr>
- </table>
- </section>
- </body>
-</document>
diff --git a/src/xdocs/checks.xml b/src/xdocs/checks.xml
index ae5d5ffe8..032299b54 100644
--- a/src/xdocs/checks.xml
+++ b/src/xdocs/checks.xml
@@ -559,6 +559,10 @@
<td>Checks for the number of defined types at the "outer" level.</td>
</tr>
<tr>
+ <td><a href="config_coding.html#OverloadMethodsDeclarationOrder">OverloadMethodsDeclarationOrder</a></td>
+ <td>Checks that overload methods are grouped together.</td>
+ </tr>
+ <tr>
<td><a href="config_annotation.html#PackageAnnotation">PackageAnnotation</a></td>
<td>This check makes sure that all package annotations are in the
package-info.java file.</td>