Makes sure each class and interface definition is preceded by javadoc. Enum definitions are not checked, due to strange behavior in the Groovy AST.
| Type | Name and description |
|---|---|
boolean |
applyToNonMainClasses |
String |
name |
int |
priority |
| Type | Name and description |
|---|---|
void |
applyTo(SourceCode sourceCode, List violations)Apply the rule to the given source, writing violations to the given list. |
protected String |
sourceCodeNameWithoutExtension(SourceCode sourceCode) |
Apply the rule to the given source, writing violations to the given list.
sourceCode - The source to checkviolations - A list of Violations that may be added to. It can be an empty list