Classes that do nothing but hold data should be replaced with a data class. UseDataClass
It is in the style rule set. detekt does not run it by default. It needs type resolution.
- Code
UseDataClass
Source: github.com, detekt.dev. JSON record. This entry is a card. Help write this page.