Beef up Javadoc.
This commit is contained in:
parent
19368509da
commit
e52c0ac541
|
|
@ -36,7 +36,32 @@ import java.util.Set;
|
|||
import org.apache.regexp.RE;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Checks the Javadoc of a method or constructor.
|
||||
* By default, does not check for unused throws.
|
||||
* To check for unused throws, set property checkUnusedThrows to true.
|
||||
* The scope to verify is specified using the {@link Scope} class and
|
||||
* defaults to {@link Scope#PRIVATE}. To verify another scope,
|
||||
* set property scope to one of the {@link Scope#} constants.
|
||||
* </p>
|
||||
* <p>
|
||||
* An example of how to configure the check is:
|
||||
* </p>
|
||||
* TODO: re-visit after configuration format settled.
|
||||
* <pre>
|
||||
* <check
|
||||
* classname="com.puppycrawl.tools.checkstyle.checks.JavadocMethodCheck"/>
|
||||
* </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>
|
||||
* <check
|
||||
* classname="com.puppycrawl.tools.checkstyle.checks.JavadocMethodCheck">
|
||||
* <property name="scope" value="public"/>
|
||||
* <property name="checkUnusedThrows" value="true"/>
|
||||
* </check>
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @author Rick Giles
|
||||
|
|
|
|||
Loading…
Reference in New Issue