class TrailingCommaRule extends AbstractAstVisitorRule
Check whether list and map literals contain optional trailing comma.
By default, trailing comma is required.
Set the checkList
and checkMap
properties to false if needed.
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 |
boolean |
checkList |
boolean |
checkMap |
boolean |
ignoreSingleElementList |
boolean |
ignoreSingleElementMap |
java.lang.String |
name |
int |
priority |
Constructor and description |
---|
TrailingCommaRule
() |
Groovy Documentation