Awesome Android Lint
A curated list of great Android lint custom rules and resources
Contents
Rules
- Google Sample Custom Lint Rules - Demo basic setup and packaging of lint rules.
- Android Builtin Checks - Source for Android built in lint detectors.
- Uber Lint Checks - A set of opinionated and useful lint checks, includes Android and Rx checks.
- Vanniktech Lint Rules - A very extensive set of opinionated and useful lint checks, includes Android and Rx checks.
- Slack Lint Rules - Extensive set of rules including Dagger, Moshi, and Mocking. Also uses annotations with certain rules.
- Android Serialization and Immutability Lints - Rules for data immutability and serialization annotation for network requests.
- Try/catch exception rules - Require exception checking in Kotlin.
- Android Styling rules - Require use of theme resources instead of hex or color attributes on both code and XML.
Articles
- Improve your code with lint checks - Official lint configuration guide.
- Android Lint API Guide - Comprehensive official lint API documenation.
- Implementing your first Android lint rule - Introductory guide to writing lint rules.
- Writing custom lint rules to maintain naming conventions - Introductory guide demonstrating Rx lint rule.
- How to write a custom rule in Lint - Introductory guide demonstrating a forbidden import lint rule.
Other
- Detekt - Kotlin static analysis with many integrations and easy extension points.
- Ktlint - An anti-bikeshedding Kotlin linter with built-in formatter.
- Mike's IDEA Extensions - IDE plugin with several Android and Kotlin code quality warnings.
Contribute
Contributions welcome! Read the contribution guidelines first.