Pattern: Line is too long
Issue: -
Your source code should not contain very long lines. The default wrapping in most tools disrupts the visual structure of the code, making it more difficult to understand.
Exceptions:
package
andimport
statements- lines where obeying the column limit is not possible (e.g.
http
,ftp
,href
usage)
To configure the check to accept lines up to 120 characters long:
<module name="LineLength">
<property name="max" value="120"/>
</module>
To configure the check to ignore lines that begin with *
, followed by just one word, such as within a Javadoc comment:
<module name="LineLength">
<property name="ignorePattern" value="^ *\* *[^ ]+$"/>
</module>