doc-asterisk
What it does
Section titled “What it does”Reports a line of a Javadoc comment, after the first, that does not start with an asterisk. Empty lines are not reported.
Why it matters
Section titled “Why it matters”Javadoc strips the leading * of each line, so a line without one is kept with its indentation, and the comment renders differently from how it reads in the source. The asterisks also show where the comment ends.
To fix, start the line with *.
Example
Section titled “Example”... */class A { /** No star here.
* Star again. */...Configuration
Section titled “Configuration”java: lint: rules: doc-asterisk: warn # off (default), warn, errorEnabled by the presets: java/google.
Suppress one line with sudsy-disable-next-line doc-asterisk in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| checkstyle | JavadocMissingLeadingAsterisk |
full |