Checks for a specified String that must exist within the source code.
Thestring
property specifies the String of text to check for. If null or empty, do nothing.
A RuleSet can contain any number of instances of this rule, but each should be configured
with a unique rule name, string, violationMessage and (optionally) customized priority.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
applyTo(SourceCode sourceCode, java.util.List<Violation> violations) |
|
boolean |
isReady() |
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 |