Checks for object constructions that are not assigned or used (i.e., ignored). Ignores unassigned objects if the construction is the last statement within a block, because it may be the intentional return value. By default, this rule does not apply to test files.
| Fields inherited from class | Fields |
|---|---|
class AbstractAstVisitorRule |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME |
| Type | Name and description |
|---|---|
java.lang.Class |
astVisitorClass |
java.lang.String |
doNotApplyToFilesMatching |
java.lang.String |
name |
int |
priority |