Groovy Documentation

groovy.org.codenarc.rule.convention
[Groovy] Class ParameterReassignmentRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.convention.ParameterReassignmentRule

class ParameterReassignmentRule
extends AbstractAstVisitorRule

Checks for a method or closure parameter being reassigned to a new value within the body of the method/closure, which is a confusing, questionable practice. Use a temporary variable instead.

Authors:
Chris Mair


Property Summary
Class astVisitorClass

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation