GCX-HCI / ThirtyInch

a MVP library for Android favoring a stateful Presenter
Apache License 2.0
1.03k stars 101 forks source link

Feature: Annotation Lint Checks #188

Open jreehuis opened 5 years ago

jreehuis commented 5 years ago

Description

Annotations in Java can be restricted to some languages types like Method or Class. In ThirtyInch some of our annotations so are allowed but are useless and will not trigger the job for what they are intended. This PR will bring Lint Checks will warn the dev about those cases right at the annotation usage.

How to Test

Play with the following scenarios:

Note: Always do a rebuild if you do a change in the Sample Project as it might has to be recompiled to pick the lint checks up.

Merge Information

This PR builds on top of #187 so please do not merge this after #187 . It will also ease the PR review a lot.

Note

Testing Lint Checks in the Sample Project did not work reliably for me. This seems to be an Android Studio Issue as quite often an Invalidate Caches and Restart help. A commandline lint run were reporting the errors reliably.