Groovy Documentation

groovy.org.codenarc.rule.design
[Groovy] Class BuilderMethodWithSideEffectsRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.design.BuilderMethodWithSideEffectsRule

class BuilderMethodWithSideEffectsRule
extends AbstractAstVisitorRule

A builder method is defined as one that creates objects. As such, they should never be of void return type. If a method is named build, create, or make, then it should always return a value.

Authors:
Hamlet D'Arcy


Property Summary
Class astVisitorClass

String methodNameRegex

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


methodNameRegex

String methodNameRegex


name

String name


priority

int priority


 

Groovy Documentation