Connect with us


Detekt – Static code analysis tool for the Kotlin

Meet detekt, a static code analysis tool for the Kotlin programming language. It operates on the abstract syntax tree provided by the Kotlin compiler.

Detekt features

  • Code smell analysis for your Kotlin projects
  • Complexity reports based on lines of code, cyclomatic complexity and amount of code smells
  • Highly configurable rule sets
  • Suppression of findings with Kotlin’s @Suppress and Java’s @SuppressWarnings annotations
  • Specification of quality gates which will break your build
  • Code Smell baseline and suppression for legacy projects
  • Gradle plugin for code analysis via Gradle builds
  • SonarQube integration
  • Extensibility by enabling incorporation of personal rule sets, FileProcessListener's and OutputReport's
  • IntelliJ integration
  • Third party integrations for MavenBazel and Github Actions (Docker based and Javascript based)

Visit the project website for installation guides, release notes, migration guides, rule descriptions and configuration options.

Detekt on GitHub:
Platform: Android/Kotlin
⭐️: 4.4K