From f1c2e34d7456b230608a53fb0bc76f6cda8f64cd Mon Sep 17 00:00:00 2001
From: Rick Giles
+ * <config name="JavadocVariableCheck"/> + *+ *
An example of how to configure the check for the + * {@link Scope#PUBLIC} scope is: + *
+ *+ * <config name="JavadocVariableCheck"> + * <property name="scope" value="public"/> + * </config> + ** @author Oliver Burn * @version 1.0 */ diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/LineLengthCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/LineLengthCheck.java index efed7e862..318c58ea6 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/LineLengthCheck.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/LineLengthCheck.java @@ -39,7 +39,37 @@ import org.apache.commons.beanutils.ConversionException; * has been dropped as it is a special case of regexp: The user can set * the ignorePattern to "^import" and achieve the same effect. * - * + *
+ * The default maximum allowable line length is 80 characters. To change the + * maximum, set property max. + *
+ *+ * To ignore lines in the check, set property ignorePattern to a regular + * expression for the lines to ignore. + *
+ *+ * An example of how to configure the check is: + *
+ *+ * <config name="LineLengthCheck"/> + *+ *
An example of how to configure the check to accept lines up to 120 + * characters long is: + *
+ *+ * <config name="LineLengthCheck"> + * <property name="max" value="120"/> + * </config> + *+ *
An example of how to configure the check to ignore lines that begin with + * " * ", such as within a Javadoc comment, is: + *
+ *+ * <config name="LineLengthCheck"> + * <property name="ignorePattern" value="^ *\* *[^ ]+$"/> + * </config> + *+ * * @author Lars Kühne */ public class LineLengthCheck extends Check