[Feature Request] Add check warning against mocking record types
Open
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
[Records](https://openjdk.org/jeps/395) are _typically_ used as simple wrappers of data without any methods or complex behavior requiring external dependencies or expensive IO operations. As such, they should (almost) never be mocked, and instead a real instance should be used instead.
Contributor guide
Assessment
This issue has not been assessed yet.