detekt
« Back to VersTracker
Description:
Static code analysis for Kotlin
Type: Formula  |  Latest Version: 1.23.8@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: kotlin static-analysis code-quality linter developer-tools
Install: brew install detekt
About:
Detekt is a static code analysis tool for Kotlin that scans source code to detect code smells, bugs, and complexity issues. It provides customizable rules and integrates seamlessly with CI/CD pipelines to maintain code quality. The tool helps teams enforce consistent coding standards and identify potential performance bottlenecks early.
Key Features:
  • Extensive rule set covering code style, complexity, and potential bugs
  • Highly configurable via YAML files for custom rule thresholds
  • Gradle and Maven plugin integration for seamless CI/CD workflows
  • HTML and XML report generation with detailed metrics
  • Support for custom rules written in Kotlin
Use Cases:
  • Enforcing code quality standards in Kotlin projects
  • CI/CD pipeline integration for automated code review
  • Technical debt reduction through complexity analysis
  • Detecting common bugs and anti-patterns before production
Alternatives:
  • ktlint – ktlint focuses on code formatting while Detekt provides deeper code analysis and custom rule support
  • SonarQube – SonarQube is language-agnostic and heavier; Detekt is Kotlin-specific and lightweight
License: Apache-2.0
Dependencies: openjdk@21
Bottles available for: all
Version History
Detected Version Rev Change Commit
Dec 15, 2024 11:22am 0 VERSION_BUMP 025b47c7
Sep 16, 2024 12:14am 0 VERSION_BUMP a7a00945