apache / apache/grails-intellij-plugin
Redundant boolean operations
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
In my Grails Groovy project the following **'Redundant boolean operations'** is shown on `deleted == false.` This is a valid Grails GORM closure for querying a table. Is it possible to disable the warning?
```
Domain.find {
id == id
deleted == false
}
```
_⚠️ attachment `image.png` was not included in the export_{width=70%}
IU-212.5712.43, JRE 11.0.13+8-b1504.49x64 JetBrains s.r.o., OS Mac OS X(x86_64) v11.6.2, screens 3360.0x2100.0; Retina
---
*1 attachment(s) referenced here (`image.png`) are not part of the CSV export.*
*Imported from [IDEA-296072](https://youtrack.jetbrains.com/issue/IDEA-296072) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported `Domain.find` closure and reproduce the “Redundant boolean operations” warning in IntelliJ IDEA. Trace the inspection or suppression entry point for this Grails/Groovy query pattern; done means the valid `deleted == false` GORM query no longer produces the warning, or the warning can be disabled as requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100