Coding

Compose Rules – static analysis rules for Jetpack Compose project

Compose Rules provides static analysis rules for Jetpack Compose projects, helping Kotlin developers catch common API design, state management, modifier, naming, preview, and composable structure issues before code review.

The rules are designed for use with ktlint and detekt, making them suitable for Android teams that want enforceable guidance for healthier Compose adoption.

This is free and open source software.

Key Features

  • Provides Jetpack Compose lint rules for ktlint and detekt.
  • Checks common Compose state handling issues, including missing remember usage and mutable state parameters.
  • Enforces guidance for composable function naming, parameter ordering, content slots, and preview visibility.
  • Includes modifier rules covering ordering, default parameters, reuse, and placement.
  • Documents each rule with explanations to help teams understand the reason behind the checks.

Website: github.com/mrmans0n/compose-rules
Support:
Developer: Nacho Lopez
License: Apache License 2.0

Compose Rules is written in Kotlin. Learn Kotlin with our recommended free books and free tutorials.


Related Software

Kotlin Linters
ktlintKotlin linter with built-in formatter
detektStatic code analysis for Kotlin
KonsistStatic code analyzer tailored for Kotlin
Ktlint GradleGradle plugin that wires ktlint formatting into builds
Kotlinter GradlePlugin for linting and formatting
faire-detekt-rulesOpinionated detekt rules for cleaner, safer Kotlin code
Compose RulesStatic analysis checks that tighten Jetpack Compose quality

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted