org.codenarc.rule.imports
[Groovy] Class UnnecessaryGroovyImportRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.imports.UnnecessaryGroovyImportRule
class UnnecessaryGroovyImportRule
extends AbstractRule
Rule that checks for imports from any packages that are already automatically imported by Groovy
classes, including java.lang, java.net, java.util, java.io, java.net, groovy.lang and groovy.util,
as well as the classes java.math.BigDecimal and java.math.BigInteger
- Authors:
- Chris Mair
- Version:
- \$Revision: 302 \$ - \$Date: 2010-01-31 19:06:00 -0500 (Sun, 31 Jan 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