Skip to content

Commit 1913c0a

Browse files
committed
Add checkstyle rule for comment line length
1 parent f994515 commit 1913c0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

checkstyle.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@
4747
<property name="allowNonPrintableEscapes" value="true"/>
4848
</module>
4949
<module name="LineLength">
50-
<!--<property name="max" value="100"/>-->
5150
<property name="max" value="150"/>
5251
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
52+
<message key="maxLineLen" value="Code line is longer than {0,number,integer} characters (found {1,number,integer})."/>
53+
</module>
54+
<module name="LineLength">
55+
<property name="max" value="80"/>
56+
<property name="ignorePattern" value="^[ \t]*([a-zA-Z0-9\{\}\+\|\&amp;\&quot;@\(\)<>]|//)|@link|@see"/>
57+
<message key="maxLineLen" value="Comment line is longer than {0,number,integer} characters (found {1,number,integer})."/>
5358
</module>
5459
<module name="AvoidStarImport"/>
5560
<module name="OneTopLevelClass"/>

0 commit comments

Comments
 (0)