Groovy Documentation

org.codenarc.rule.unused
Class UnusedVariableRule

java.lang.Object
  org.codenarc.rule.AbstractRule
      org.codenarc.rule.AbstractAstVisitorRule
          org.codenarc.rule.unused.UnusedVariableRule

class UnusedVariableRule
extends AbstractAstVisitorRule

Rule that checks for variables that are not referenced.

author:
Chris Mair
version:
$Revision: 322 $ - $Date: 2010-04-15 22:46:29 -0400 (Thu, 15 Apr 2010) $


Property Summary
Class astVisitorClass

String name

int priority

 
Constructor Summary
UnusedVariableRule()

 
Method Summary
 
Methods inherited from class AbstractAstVisitorRule
shouldApplyThisRuleTo
 
Methods inherited from class AbstractRule
applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport
 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 
Constructor Detail

UnusedVariableRule

UnusedVariableRule()


 

Groovy Documentation