ktlint
« Back to VersTracker
Description:
Anti-bikeshedding Kotlin linter with built-in formatter
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: kotlin linter formatter code-quality developer-tools
Install: brew install ktlint
About:
Ktlint is a Kotlin linter that enforces the official Kotlin coding conventions and provides additional, opinionated rules to prevent code style debates. It features a built-in formatter that automatically fixes style violations, ensuring consistent code formatting across projects. The tool integrates easily into build pipelines and IDEs, helping teams maintain clean, readable codebases.
Key Features:
  • Built-in automatic formatter
  • Enforces Kotlin coding conventions
  • Zero configuration required
  • Extensible via custom rule sets
  • IDE and CI/CD integration
Use Cases:
  • Enforcing consistent code style across Kotlin projects
  • Automated code formatting in CI pipelines
  • Preventing code style debates during code reviews
Alternatives:
  • detekt – Detekt is a static code analysis tool with broader code smell detection, while ktlint focuses primarily on code style and formatting
  • android-studio – Android Studio includes built-in formatting but ktlint provides consistent, project-wide enforcement independent of IDE
Version History
Detected Version Rev Change Commit
Dec 15, 2024 11:22am 0 VERSION_BUMP a54e3ef8
Dec 4, 2024 11:38am 0 VERSION_BUMP c1357e18