Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Updated readme for new check
  • Loading branch information
kozaxinan authored Sep 25, 2024
1 parent 11aa8de commit 8548aaf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ If you want to use this rule, please configure you lint.xml.
<issue id="NetworkLayerClassJsonRule" severity="error" />
```


### NetworkLayerBodyClassJsonClassRule
Classes used in as body with Moshi should use JsonClass annotation to generate the adaptor class. This lint checks Retrofit interface methods' body param for JsonClass annotation. If you don't use Moshi for Retrofit, this check is useless. That is why it is `infromation` level.

```
<issue id="NetworkLayerBodyClassJsonClassRule" severity="error" />
```

# Usage
Library is published to jitpack.io. After adding implementation to your module, lint will include new rules.

Expand Down

0 comments on commit 8548aaf

Please sign in to comment.