dropped suffix "Check"
This commit is contained in:
parent
72b40a3552
commit
4cc94a581c
|
|
@ -23,23 +23,23 @@
|
|||
<td class="menu" valign="top">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#FileLengthCheck">FileLengthCheck</a>
|
||||
<a href="#FileLength">FileLength</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#LineLengthCheck">LineLengthCheck</a>
|
||||
<a href="#LineLength">LineLength</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#MethodLengthCheck">MethodLengthCheck</a>
|
||||
<a href="#MethodLength">MethodLength</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#ParameterNumberCheck">ParameterNumberCheck</a>
|
||||
<a href="#ParameterNumber">ParameterNumber</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<!--Content-->
|
||||
<td class="content" valign="top" align="left">
|
||||
|
||||
<a name="FileLengthCheck"></a> <h2>FileLengthCheck</h2> <h4>Description</h4>
|
||||
<a name="FileLength"></a> <h2>FileLength</h2> <h4>Description</h4>
|
||||
<p class="body">
|
||||
Checks for long source files.
|
||||
</p>
|
||||
|
|
@ -71,9 +71,9 @@
|
|||
To configure the check to accept files with up to 1500 lines:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<config name="FileLength">
|
||||
<module name="FileLength">
|
||||
<property name="max" value="1500"/>
|
||||
</config>
|
||||
</module>
|
||||
</pre>
|
||||
|
||||
<h4>Package</h4>
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
<a href="TreeWalker">TreeWalker</a>
|
||||
</p>
|
||||
|
||||
<a name="LineLengthCheck"></a> <h2>LineLengthCheck</h2> <h4>Description</h4>
|
||||
<a name="LineLength"></a> <h2>LineLength</h2> <h4>Description</h4>
|
||||
<p class="body">
|
||||
Checks for long lines.
|
||||
</p>
|
||||
|
|
@ -129,18 +129,18 @@
|
|||
To configure the check to accept lines up to 120 characters long:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<config name="LineLength">
|
||||
<module name="LineLength">
|
||||
<property name="max" value="120"/>
|
||||
</config>
|
||||
</module>
|
||||
</pre>
|
||||
<p class="body">
|
||||
To configure the check to ignore lines that begin with " * ", followed
|
||||
by just one word, such as within a Javadoc comment:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<config name="LineLength">
|
||||
<module name="LineLength">
|
||||
<property name="ignorePattern" value="^ *\* *[^ ]+$"/>
|
||||
</config>
|
||||
</module>
|
||||
</pre>
|
||||
|
||||
<h4>Notes</h4>
|
||||
|
|
@ -159,7 +159,7 @@
|
|||
<a href="TreeWalker">TreeWalker</a>
|
||||
</p>
|
||||
|
||||
<a name="MethodLengthCheck"></a> <h2>MethodLengthCheck</h2> <h4>Description</h4>
|
||||
<a name="MethodLength"></a> <h2>MethodLength</h2> <h4>Description</h4>
|
||||
<p class="body">
|
||||
Checks for long methods and constructors.
|
||||
</p>
|
||||
|
|
@ -197,16 +197,16 @@
|
|||
To configure the check:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<config name="MethodLength"/>
|
||||
<module name="MethodLength"/>
|
||||
</pre>
|
||||
<p class="body">
|
||||
To configure the check so that it accepts methods with at most 60 lines:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<config name="MethodLength">
|
||||
<module name="MethodLength">
|
||||
<property name="tokens" value="METHOD_DEF"/>
|
||||
<property name="max" value="60"/>
|
||||
</config>
|
||||
</module>
|
||||
</pre>
|
||||
|
||||
<h4>Package</h4>
|
||||
|
|
@ -219,7 +219,7 @@
|
|||
</p>
|
||||
|
||||
|
||||
<a name="ParameterNumberCheck"></a> <h2>ParameterNumberCheck</h2> <h4>Description</h4>
|
||||
<a name="ParameterNumber"></a> <h2>ParameterNumber</h2> <h4>Description</h4>
|
||||
<p class="body">
|
||||
Checks the number of parameters of a method or constructor.
|
||||
</p>
|
||||
|
|
@ -252,16 +252,16 @@
|
|||
To configure the check:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<config name="ParameterNumber"/>
|
||||
<module name="ParameterNumber"/>
|
||||
</pre>
|
||||
<p class="body">
|
||||
To configure the check to allow 10 parameters for a method:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<config name="ParameterNumber">
|
||||
<module name="ParameterNumber">
|
||||
<property name="max" value="10"/>
|
||||
<property name="tokens" value="METHOD_DEF"/>
|
||||
</config>
|
||||
</module>
|
||||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
|
|
|
|||
Loading…
Reference in New Issue