Twitter Compose Rules is a set of custom ktlint rules to ensure that your compostables don't fall into common pitfalls, that might be easy to miss in code reviews. It can be challenging for big teams to start adopting Compose, particularly because not everyone will start at the same time or with the same patterns. Twitter tried to ease the pain by creating a set of Compose static checks. Compose has lots of superpowers but also has a bunch of foot guns to be aware of as seen in this Twitter Thread. This is where our static checks come in. We want to detect as many potential issues as we can, as quickly as we can. In this case, we want an error to show prior to engineers having to review the code. Similar to other static check libraries we hope this leads to a "don't shoot the messengers" philosophy which will foster healthy Compose adoption.

Features

  • Static checks to aid with a healthy adoption of Compose
  • It can be challenging for big teams to start adopting Compose
  • Compose has lots of superpowers but also has a bunch of footguns to be aware of
  • Static checks for Compose bundled in this repo
  • Use with ktlint
  • Use with Detekt

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Twitter's Jetpack Compose Rules

Twitter's Jetpack Compose Rules Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Twitter's Jetpack Compose Rules!

Additional Project Details

Programming Language

Kotlin

Related Categories

Kotlin Static Code Analysis Tool

Registered

2023-03-31