org.codenarc.rule.imports
[Groovy] Class ImportFromSamePackageRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.imports.ImportFromSamePackageRule
@SuppressWarnings('DuplicateLiteral')
class ImportFromSamePackageRule
extends AbstractRule
Checks for an import of a class that is within the same package as the importing class.
- Authors:
- Chris Mair
- Version:
- \$Revision: 439 \$ - \$Date: 2010-11-08 15:16:30 -0500 (Mon, 08 Nov 2010) \$
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
name
String name
-
priority
int priority
-
applyTo
void applyTo(SourceCode sourceCode, List violations)
-
Groovy Documentation