Class |
Description |
AssignCollectionSortRule
|
The Collections.sort() method mutates the list and returns the list as a value. |
AssignCollectionUniqueRule
|
The unique() method mutates the original list. |
ClosureAsLastMethodParameterRule
|
If a method is called and the last parameter is an inline closure it can be declared outside of the method call brackets. |
CollectAllIsDeprecatedRule
|
collectAll is deprecated since Groovy 1.8.1. |
ConfusingMultipleReturnsRule
|
Multiple return values can be used to set several variables at once. |
ExplicitArrayListInstantiationRule
|
This rule checks for the explicit instantiation of an ArrayList using the no-arg constructor.
|
ExplicitArrayListInstantiationRule.1
|
|
ExplicitCallToAndMethodRule
|
This rule detects when the and(Object) method is called directly in code instead of using the & operator. |
ExplicitCallToCompareToMethodRule
|
This rule detects when the compareTo(Object) method is called directly in code instead of using the <=>, >, >=, <, and <= operators. |
ExplicitCallToDivMethodRule
|
This rule detects when the div(Object) method is called directly in code instead of using the / operator. |
ExplicitCallToEqualsMethodRule
|
This rule detects when the equals(Object) method is called directly in code instead of using the == or ! |
ExplicitCallToGetAtMethodRule
|
This rule detects when the getAt(Object) method is called directly in code instead of using the [] index operator. |
ExplicitCallToLeftShiftMethodRule
|
This rule detects when the leftShift(Object) method is called directly in code instead of using the << operator. |
ExplicitCallToMethodAstVisitor
|
Parent Visitor for "ExplicitCallToX" Rules. |
ExplicitCallToMinusMethodRule
|
This rule detects when the minus(Object) method is called directly in code instead of using the - operator. |
ExplicitCallToModMethodRule
|
This rule detects when the mod(Object) method is called directly in code instead of using the % operator. |
ExplicitCallToMultiplyMethodRule
|
This rule detects when the multiply(Object) method is called directly in code instead of using the * operator. |
ExplicitCallToOrMethodRule
|
This rule detects when the or(Object) method is called directly in code instead of using the | operator. |
ExplicitCallToPlusMethodRule
|
This rule detects when the plus(Object) method is called directly in code instead of using the + operator. |
ExplicitCallToPowerMethodRule
|
This rule detects when the power(Object) method is called directly in code instead of using the ** operator. |
ExplicitCallToPutAtMethodRule
|
etects when the map.putAt(k, v) method is called directly rather than using map[k] = v. |
ExplicitCallToRightShiftMethodRule
|
This rule detects when the rightShift(Object) method is called directly in code instead of using the >> operator. |
ExplicitCallToXorMethodRule
|
This rule detects when the xor(Object) method is called directly in code instead of using the ^ operator. |
ExplicitHashMapInstantiationRule
|
This rule checks for the explicit instantiation of a HashMap using the no-arg constructor.
|
ExplicitHashMapInstantiationRule.1
|
|
ExplicitHashSetInstantiationRule
|
This rule checks for the explicit instantiation of a HashSet using the no-arg constructor.
|
ExplicitHashSetInstantiationRule.1
|
|
ExplicitLinkedHashMapInstantiationRule
|
This rule checks for the explicit instantiation of a LinkedHashMap using the no-arg constructor.
|
ExplicitLinkedHashMapInstantiationRule.1
|
|
ExplicitLinkedListInstantiationRule
|
This rule checks for the explicit instantiation of a LinkedList using the no-arg constructor.
|
ExplicitLinkedListInstantiationRule.1
|
|
ExplicitStackInstantiationRule
|
This rule checks for the explicit instantiation of a Stack using the no-arg constructor.
|
ExplicitStackInstantiationRule.1
|
|
ExplicitTreeSetInstantiationRule
|
This rule checks for the explicit instantiation of a TreeSet using the no-arg constructor.
|
ExplicitTreeSetInstantiationRule.1
|
|
ExplicitTypeInstantiationAstVisitor
|
AstVisitor that checks for no-arg constructor calls for the type specified in the constructor.
|
GStringAsMapKeyRule
|
A rule that disallows GStrings as map keys as they might change
their hashcode over time.
|
GStringExpressionWithinStringRule
|
Check for regular (single quote) strings containing a GString-type expression (${..}). |
GetterMethodCouldBePropertyRule
|
If a class defines a public method that follows the Java getter notation and returns a constant,
then it is cleaner to provide a Groovy property for the value rather than a Groovy method. |
GroovyLangImmutableRule
|
The groovy.lang.Immutable annotation has been deprecated and replaced by groovy.transform.Immutable. |
UseCollectManyRule
|
In many case collectMany() yields the same result as collect{}.flatten. |
UseCollectNestedRule
|
Instead of nested collect{}-calls use collectNested{} |