From df91057c1ead21b974824440a3363efb346e660f Mon Sep 17 00:00:00 2001
From: Oliver Burn
* Checks the Javadoc of a type.
- * By default, does not check for author or version tags.
- * 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.
- * To define the format for an author tag or a version tag,
- * set property authorFormat or versionFormat respectively to a
- *
- * regular expression.
- *
- * An example of how to configure the check is:
- * An example of how to configure the check for the
- * {@link Scope#PUBLIC} scope is:
- * An example of how to configure the check for an author tag
- * and a version tag is:
- * An example of how to configure the check for a
- * CVS revision version tag is:
- *
* Checks that all packages have a package documentation.
- *
- * An example of how to configure the check is:
- *
Checks Javadoc comments for class and interface definitions.
+ By default, does not check for author or version tags. The
+ scope to verify is specified using the
- * <module name="JavadocType"/>
- *
- *
- * <module name="JavadocType">
- * <property name="scope" value="public"/>
- * </module>
- *
- *
- * <module name="JavadocType">
- * <property name="authorFormat" value="\S"/>
- * <property name="versionFormat" value="\S"/>
- * </module>
- *
- *
- * <module name="JavadocType">
- * <property name="versionFormat" value="\$Revision.*\$"/>
- * </module>
- *
*
* @author Oliver Burn
* @author Michael Tamm
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/PackageHtmlCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/PackageHtmlCheck.java
index 02044293a..2c937e432 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/PackageHtmlCheck.java
+++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/PackageHtmlCheck.java
@@ -27,15 +27,8 @@ import com.puppycrawl.tools.checkstyle.api.MessageDispatcher;
import com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck;
/**
- *
- * <module name="PackageHtml"/>
- *
+ *
* @author lkuehne
*/
public class PackageHtmlCheck extends AbstractFileSetCheck
diff --git a/src/xdocs/config_javadoc.xml b/src/xdocs/config_javadoc.xml
index 57071e03d..a7462c421 100755
--- a/src/xdocs/config_javadoc.xml
+++ b/src/xdocs/config_javadoc.xml
@@ -65,7 +65,17 @@
Scope
+ class and defaults to Scope.PRIVATE. To verify
+ another scope, set property scope to one of the
+ Scope constants. To define the format for an
+ author tag or a version tag, set property authorFormat or
+ versionFormat respectively to a
+
+ regular expression.
- Checks that variables have Javadoc comments. -
-+ Checks that variables have Javadoc comments. +
+| name | -description | -type | -default value | -
|---|---|---|---|
| scope | -visibility scope where Javadoc comments are checked | -scope | -private | -
| excludeScope | -visibility scope where Javadoc comments are not checked | -scope | -null | -
| name | +description | +type | +default value | +
|---|---|---|---|
| scope | +visibility scope where Javadoc comments are checked | +scope | +private | +
| excludeScope | +visibility scope where Javadoc comments are not checked | +scope | +null | +
- To configure the default check: -
-+ To configure the default check: +
+- To configure the check for public scope: -
-+ To configure the check for public + scope: +
+ +- To configure the check for members which are in private, but not in protected scope: -
-+ To configure the check for members which are in private, but not in protected scope: +
+ +- com.puppycrawl.tools.checkstyle.checks.javadoc -
-+ com.puppycrawl.tools.checkstyle.checks.javadoc +
+- TreeWalker -
-+ TreeWalker +
+- Validates Javadoc comments to help ensure they are well - formed. The following checks are performed: -
++ Validates Javadoc comments to help ensure they are well + formed. The following checks are performed: +
-- These checks were patterned after the checks made by the DocCheck - doclet available from Sun. -
-+ These checks were patterned after the checks made by the DocCheck + doclet available from Sun. +
+| name | -description | -type | -default value | -||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| scope | -visibility scope where Javadoc comments are checked | -scope | -private | -||||||||||||||||||||||||||||
| excludeScope | -visibility scope where Javadoc comments are not checked | -scope | -null | -||||||||||||||||||||||||||||
| checkFirstSentence | -- Whether to check the first sentence for proper end of sentence. - | -boolean | -true | -||||||||||||||||||||||||||||
| checkEmptyJavadoc | -- Whether to check if the Javadoc is missing a describing text. - | -boolean | -false | -||||||||||||||||||||||||||||
| checkHtml | -Whether to check for incomplete html tags. | -boolean | -true | -||||||||||||||||||||||||||||
| tokens | -definitions to check | +
| name | +description | +type | +default value | +|
|---|---|---|---|---|
| scope | +visibility scope where Javadoc comments are checked | +scope | +private | +|
| excludeScope | +visibility scope where Javadoc comments are not checked | +scope | +null | +|
| checkFirstSentence | ++ Whether to check the first sentence for proper end of sentence. + | +boolean | +true | +|
| checkEmptyJavadoc | ++ Whether to check if the Javadoc is missing a describing text. + | +boolean | +false | +|
| checkHtml | +Whether to check for incomplete html tags. | +boolean | +true | +|
| tokens | +definitions to check | -- subset of tokens INTERFACE_DEF, - CLASS_DEF, - METHOD_DEF, - CTOR_DEF, - VARIABLE_DEF - | ++ subset of tokens INTERFACE_DEF, + CLASS_DEF, + METHOD_DEF, + CTOR_DEF, + VARIABLE_DEF + | -- INTERFACE_DEF, - CLASS_DEF, - METHOD_DEF, - CTOR_DEF, - VARIABLE_DEF - | -
- To configure the default check: -
++ To configure the default check: +
-- To configure the check for public scope: -
++ To configure the check for public + scope: +
-- To configure the check for javadoc which is in private, but not in package scope: -
++ To configure the check for javadoc which is in private, but not in package scope: +
-- To configure the check to turn off first sentence checking: -
-+ To configure the check to turn off first sentence checking: +
+ +- com.puppycrawl.tools.checkstyle.checks -
-+ com.puppycrawl.tools.checkstyle.checks +
+- TreeWalker -
-+ TreeWalker +
+