Inspectopedia Help

Style

Java-style property access  

Reports properties accessed via method calls.

Method call can be replaced with operator invocation  

Reports method calls that can be replaced with operator invocations.

Operator invocation can be replaced with method call  

Reports operator invocations that can be replaced with method calls.

String style violation  

Reports strings with quotation that doesn't match code style.

Ternary expression  

Reports ternary expressions.

Unnecessary 'def'  

Reports unnecessary def modifiers when used with explicit type declaration.

Unnecessary 'final'  

Reports unnecessary final modifiers when used with the record definition.

Unnecessary 'non-sealed' modifier  

Reports unnecessary non-sealed modifiers which used on methods, fields, or variables.

Unnecessary 'public'  

Reports unnecessary public modifiers as Groovy classes and methods are public by default.

Unnecessary 'sealed' modifier  

Reports unnecessary sealed modifiers which used on methods, fields, or variables.

Unnecessary import alias  

Reports unnecessary import aliases.

Unnecessary semicolon  

Reports unnecessary semicolons.

Last modified: 18 June 2024