Skip to content

Files

Latest commit

 

History

History
15 lines (8 loc) · 538 Bytes

GrailsDomainHasEquals.md

File metadata and controls

15 lines (8 loc) · 538 Bytes

Pattern: Grails - domain has equals()

Issue: -

Description

Checks that Grails domain classes redefine equals().

Ignores classes annotated with @EqualsAndHashCode or @Canonical.

This rule sets the default value of applyToFilesMatching to only match files under the 'grails-app/domain' folder. You can override this with a different regular expression value if appropriate.

Further Reading