Groovy Documentation

groovy.org.codenarc.rule.unused
[Groovy] Class UnusedVariableRule

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

class UnusedVariableRule
extends AbstractAstVisitorRule

Rule that checks for variables that are not referenced.

Authors:
Chris Mair
Hamlet D'Arcy


Property Summary
String ignoreVariableNames

String name

int priority

 
Method Summary
void applyTo(SourceCode sourceCode, List violations)

 

Property Detail

ignoreVariableNames

String ignoreVariableNames


name

String name


priority

int priority


 
Method Detail

applyTo

@Override
void applyTo(SourceCode sourceCode, List violations)


 

Groovy Documentation