Contains Detekt rule which helps to detect missing @JsonClass(generateAdapter = true)
on data classes. It finds classes by keywords in their names.
Artifact is not published to public maven repo so for now you need to build jar manually.
- Build project and publish it to your Maven repository.
- Add it to your project by adding it to dependencies in the following way:
dependencies { detektPlugins("org.nacyolsa.detekt.moshi:detekt-moshi-rules:1.0.0") }
- Activate rule
MoshiRuleSet: MissingJsonClassAnnotation: active: true keywords: Request,Response,Event excludes: ['**/test/**']
Feel free to add more useful rules for Moshi.