Forbids usage of SQL reserved keywords as class or field names in Grails domain classes.
Naming a domain class (or its field) with such a keyword causes SQL schema creation errors and/or redundant
table/column name mappings.
Note: due to limited type information available during CodeNarc's operation, this rule will report fields
of type java.io.Serializable, but not of its implementations. Please specify any implementations
used as domain properties in #additionalHibernateBasicTypes.
| 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.String |
additionalHibernateBasicTypes |
java.lang.String |
additionalReservedSqlKeywords |
java.lang.String |
applyToFilesMatching |
java.lang.Class |
astVisitorClass |
java.lang.String |
name |
int |
priority |
| Type Params | Return Type | Name and description |
|---|---|---|
|
AstVisitor |
getAstVisitor() |