Since Checkstyle 8.32
name | description | type | default value | since |
---|---|---|---|---|
violateExecutionOnNonTightHtml | Control when to print violations if the Javadoc being examined by this check violates the tight html rules defined at Tight-HTML Rules. | boolean | false |
8.3 |
To configure the default check:
<module name="Checker"> <module name="TreeWalker"> <module name="JavadocMissingWhitespaceAfterAsterisk"/> </module> </module>
Code Example:
/** This is valid single-line Javadoc. */ class TestClass { /** *This is invalid Javadoc. */ int invalidJavaDoc; /** * This is valid Javadoc. */ void validJavaDocMethod() { } /**This is invalid single-line Javadoc. */ void invalidSingleLineJavaDocMethod() { } /** This is valid single-line Javadoc. */ void validSingleLineJavaDocMethod() { } }
All messages can be customized if the default message doesn't suit you. Please see the documentation to learn how to.
com.puppycrawl.tools.checkstyle.checks.javadoc