twitter/compose-rules
Static checks to aid with a healthy adoption of Compose observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
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: 1561
- days_rel: n/a
- days_push: 977
- n_releases_24m: 0
Adoption not part of the score
1380 stars · 105 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of static analysis rules for Jetpack Compose, shipped as custom ktlint rules and a Detekt plugin, that detect common Compose pitfalls before code review. Built by Twitter to help large teams adopt Compose with consistent, healthy patterns.
Use cases
- lint jetpack compose code for common pitfalls
- catch compose recomposition performance issues early
- enforce compose best practices across an android team
- add compose rules to ktlint
- run compose checks with detekt
- flag composable antipatterns before human code review
When to choose
- Your Android team is adopting Jetpack Compose and wants automated enforcement of composable best practices
- You already use ktlint or Detekt and want Compose-specific rules integrated into your existing setup
- You want Compose issues surfaced in the build pipeline rather than relying on reviewers to catch them
When to avoid
- Your project does not use Jetpack Compose, e.g. view-based Android or non-UI Kotlin code
- You need rules for Android's own lint system rather than ktlint or Detekt
- You need runtime fixes or behavior changes - these are purely static checks
Facets
library · maturity active
linter code-review developer-tools mobile-development android-tools jvm jetpack-compose ktlint detekt static-analysis kotlin code-quality composables android
2 sources
- readme: https://github.com/twitter/compose-rules · fetched 2026-08-28 · ee0abbd2da16
- homepage: https://twitter.github.io/compose-rules · fetched 2026-08-29 · 8b9715f42eb3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| twitter/compose-rules | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="twitter/compose-rules")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem