Class |
Description |
AssignCollectionSortAstVisitor
|
|
AssignCollectionSortRule
|
The Collections.sort() method mutates the list and returns the list as a value. |
AssignCollectionUniqueAstVisitor
|
|
AssignCollectionUniqueRule
|
the unique method mutates the original list. |
ClosureAsLastMethodParameterAstVisitor
|
|
ClosureAsLastMethodParameterRule
|
If a method is called and the last parameter is an inline closure it can be declared outside of the method call brackets. |
CollectAllIsDeprecatedAstVisitor
|
|
CollectAllIsDeprecatedRule
|
collectAll is deprecated since Groovy 1.8.1. |
ConfusingMultipleReturnsAstVisitor
|
|
ConfusingMultipleReturnsRule
|
Multiple return values can be used to set several variables at once. |
ConstantExpressionExtractor
|
|
ExplicitArrayListInstantiationRule
|
This rule checks for the explicit instantiation of an ArrayList using the no-arg constructor.
|
ExplicitCallToAndMethodAstVisitor
|
|
ExplicitCallToAndMethodRule
|
This rule detects when the and(Object) method is called directly in code instead of using the & operator. |
ExplicitCallToCompareToMethodAstVisitor
|
|
ExplicitCallToCompareToMethodRule
|
This rule detects when the compareTo(Object) method is called directly in code instead of using the <=>, >, >=, <, and <= operators. |
ExplicitCallToDivMethodAstVisitor
|
|
ExplicitCallToDivMethodRule
|
This rule detects when the div(Object) method is called directly in code instead of using the / operator. |
ExplicitCallToEqualsMethodAstVisitor
|
|
ExplicitCallToEqualsMethodRule
|
This rule detects when the equals(Object) method is called directly in code instead of using the == or ! |
ExplicitCallToGetAtMethodAstVisitor
|
|
ExplicitCallToGetAtMethodRule
|
This rule detects when the getAt(Object) method is called directly in code instead of using the [] index operator. |
ExplicitCallToLeftShiftMethodAstVisitor
|
|
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. |
ExplicitCallToMinusMethodAstVisitor
|
|
ExplicitCallToMinusMethodRule
|
This rule detects when the minus(Object) method is called directly in code instead of using the - operator. |
ExplicitCallToModMethodAstVisitor
|
|
ExplicitCallToModMethodRule
|
This rule detects when the mod(Object) method is called directly in code instead of using the % operator. |
ExplicitCallToMultiplyMethodAstVisitor
|
|
ExplicitCallToMultiplyMethodRule
|
This rule detects when the multiply(Object) method is called directly in code instead of using the * operator. |
ExplicitCallToOrMethodAstVisitor
|
|
ExplicitCallToOrMethodRule
|
This rule detects when the or(Object) method is called directly in code instead of using the | operator. |
ExplicitCallToPlusMethodAstVisitor
|
|
ExplicitCallToPlusMethodRule
|
This rule detects when the plus(Object) method is called directly in code instead of using the + operator. |
ExplicitCallToPowerMethodAstVisitor
|
|
ExplicitCallToPowerMethodRule
|
This rule detects when the power(Object) method is called directly in code instead of using the ** operator. |
ExplicitCallToRightShiftMethodAstVisitor
|
|
ExplicitCallToRightShiftMethodRule
|
This rule detects when the rightShift(Object) method is called directly in code instead of using the >> operator. |
ExplicitCallToXorMethodAstVisitor
|
|
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.
|
ExplicitHashSetInstantiationRule
|
This rule checks for the explicit instantiation of a HashSet using the no-arg constructor.
|
ExplicitLinkedHashMapInstantiationRule
|
This rule checks for the explicit instantiation of a LinkedHashMap using the no-arg constructor.
|
ExplicitLinkedListInstantiationRule
|
This rule checks for the explicit instantiation of a LinkedList using the no-arg constructor.
|
ExplicitStackInstantiationRule
|
This rule checks for the explicit instantiation of a Stack using the no-arg constructor.
|
ExplicitTreeSetInstantiationRule
|
This rule checks for the explicit instantiation of a TreeSet using the no-arg constructor.
|
ExplicitTypeInstantiationAstVisitor
|
AstVisitor that checks for no-arg constructor calls for the type specified in the constructor.
|
GStringAsMapKeyAstVisitor
|
|
GStringAsMapKeyRule
|
A rule that disallows GStrings as map keys as they might change
their hashcode over time.
|
GStringExpressionWithinStringAstVisitor
|
|
GStringExpressionWithinStringRule
|
Check for regular (single quote) strings containing a GString-type expression (${..}). |
GetterMethodCouldBePropertyAstVisitor
|
|
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. |
GroovyLangImmutableAstVisitor
|
|
GroovyLangImmutableRule
|
The groovy.lang.Immutable annotation has been deprecated and replaced by groovy.transform.Immutable. |
UseCollectManyAstVisitor
|
|
UseCollectManyRule
|
In many case collectMany() yields the same result as collect{}.flatten. |
UseCollectNestedAstVisitor
|
|
UseCollectNestedRule
|
Instead of nested collect{}-calls use collectNested{} |