A package source file's path should match the package declaration.
To find the package-relevant sub-path in the file path the groupId needs to be configured. It is expected to appear in every package declaration.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 |