|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.rule.AbstractRule
groovy.org.codenarc.rule.formatting.ConsecutiveBlankLinesRule
class ConsecutiveBlankLinesRule extends AbstractRule
Makes sure there are no consecutive lines that are either blank or whitespace only.
| Property Summary | |
|---|---|
String |
name
|
int |
priority
|
| Method Summary | |
|---|---|
void
|
applyTo(SourceCode sourceCode, List violations)
Apply the rule to the given source, writing violations to the given list. |
| Property Detail |
|---|
String name
int priority
| Method Detail |
|---|
@Override void applyTo(SourceCode sourceCode, List violations)
sourceCode - the source to checkviolations - a list of Violations that may be added to. It can be an empty list
Groovy Documentation