Groovy Documentation

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

java.lang.Object
  org.codenarc.rule.AbstractRule
      groovy.org.codenarc.rule.convention.NoDefRule

class NoDefRule
extends AbstractRule

Def keyword is overused and should be replaced with specific type.

The excludeRegex property optionally specifies regex to find text which could occur immediately after def.

Authors:
Dominik Przybysz


Field Summary
protected static String MESSAGE

 
Property Summary
String excludeRegex

String name

int priority

 
Method Summary
void applyTo(SourceCode sourceCode, List violations)

 

Field Detail

MESSAGE

protected static final String MESSAGE


 
Property Detail

excludeRegex

String excludeRegex


name

String name


priority

int priority


 
Method Detail

applyTo

@Override
void applyTo(SourceCode sourceCode, List violations)


 

Groovy Documentation