googlesamples/android-custom-lint-rules resource
This sample demonstrates how to create a custom lint checks and corresponding lint tests observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 69
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4024
- days_rel: n/a
- days_push: 188
- n_releases_24m: 0
Adoption not part of the score
1017 stars · 175 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An official Google sample project demonstrating how to write, test, and package custom Android Lint rules in Kotlin/Java. It includes example lint checks, their tests, and documentation on distributing rules via lint.jar inside AAR libraries.
Use cases
- write custom android lint rules
- how to create custom lint checks for android library
- test custom lint checks
- package lint rules in an aar
- enforce company-specific code rules with lint
- learn the android lint api
When to choose
- you are an Android library author wanting to ship lint rules with your library
- you need to enforce team- or company-specific coding rules in Android projects
- you want a working reference for the Android Lint API and its testing setup
When to avoid
- you need a production lint library rather than a sample to copy from
- you want static analysis for non-JVM languages
- you need a stable API - the lint API is explicitly not final and changes between releases
Facets
learning-resource · maturity active
testing linter developer-tools android-tools developer-tools testing tutorials jvm cli android-lint static-analysis custom-lint-rules sample-project kotlin android
1 source
- readme: https://github.com/googlesamples/android-custom-lint-rules · fetched 2026-08-28 · 63f10f4b98fd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| googlesamples/android-custom-lint-rules | main | 63 |
For agents
markdown · JSON · MCP: product_card(name="googlesamples/android-custom-lint-rules")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem