Inspectopedia 2024.3 Help

Potentially confusing code constructs

Clashing getters   New in this release

Reports boolean methods which can be accessed via the same property name.

Clashing trait methods   New in this release

Reports classes which implement two or more traits that contain methods with same signatures.

Deprecated API usage  

Reports references to deprecated classes, fields, and methods.

Double negation  

Reports double negation that can be simplified.

GString map key   New in this release

Reports statements which use a groovy.lang.GString object as a key to map.

Implicit null argument   New in this release

Reports calls with no arguments to method that has exactly one parameter.

Local variable is reassigned in closure or anonymous class   New in this release

Reports local variables assigned to expression with different type inside of closure or anonymous class.

Negated conditional expression  

Reports conditional expressions whose conditions are negated.

Negated if condition expression   New in this release

Reports if statements which contain else branches and whose conditions are negated.

Nested conditional expression  

Reports ternary conditional expressions that are nested inside other conditional expressions.

Nested switch statement   New in this release

Reports switch statements that are nested inside other switch statements.

New instance of class annotated with @groovy.lang.Singleton   New in this release

Reports new instance creation of classes annotated with @groovy.lang.Singleton.

Octal integer  

Reports octal integer literals.

Overly complex arithmetic expression  

Reports arithmetic expressions with too many terms.

Overly complex boolean expression  

Reports boolean expressions with too many terms.

Package mismatch   New in this release

Reports files with a declared package that does not match the package expected.

Pointless arithmetic expression  

Reports pointless arithmetic expressions.

Pointless boolean expression  

Reports pointless or pointlessly complicated boolean expressions.

Result of increment or decrement used  

Reports increment or decrement expressions nested inside other expressions.

Statement with empty body  

Reports if, while, do or for statements with empty bodies.

Unnecessary qualified reference   New in this release

Reports fully qualified references, which can be replaced with import.

Last modified: 11 September 2024