Makes sure there are no consecutive lines that are either blank or whitespace only.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
applyTo(SourceCode sourceCode, java.util.List<Violation> violations) Apply the rule to the given source, writing violations to the given list. |
Methods inherited from class | Name |
---|---|
class AbstractRule |
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getCompilerPhase, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getName, getPriority, getViolationMessage, isEnabled, isReady, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setName, setPriority, setViolationMessage, toString, validate |
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