Groovy Documentation

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

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

class UnusedObjectRule
extends AbstractAstVisitorRule

Checks for object constructions that are not assigned or used (i.e., ignored). Ignores unassigned objects if the construction is the last statement within a block, because it may be the intentional return value. By default, this rule does not apply to test files.

Authors:
Chris Mair


Property Summary
Class astVisitorClass

String doNotApplyToFilesMatching

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


doNotApplyToFilesMatching

String doNotApplyToFilesMatching


name

String name


priority

int priority


 

Groovy Documentation