detekt

B
B tier on LintersScore 7.1 · #6 of 33
Android app
Not listed
Free plan
Yes
Runs on
Linux, Mac, Windows
detekt.dev
The detekt homepage

Summary

detekt is a free static analyzer for Kotlin that helps identify code smells across Android, JVM, JS, Native, and Multiplatform projects. Developers can configure rule sets, create baselines for existing issues, and suppress findings with @Suppress annotations. Reports can be generated as HTML, Markdown, SARIF, Checkstyle XML, or custom formats; complexity reports can include lines of code, cyclomatic complexity, and code smell counts. The project provides a Gradle plugin and documents use with Gradle, Maven, and Bazel builds. Custom rule sets can be added through its RuleSetProvider and ServiceLoader pattern. The project marketplace also lists community rules, extensions, and plugins, including a GitLab Code Quality reporter and ktlint rule wrappers. CLI installation guidance covers Homebrew on macOS, Scoop on Windows, SDKMAN on Unix-like systems, and NixOS. The Gradle plugin requires Gradle 6.8.3 or higher. detekt is free, with no commercial limits stated; it also supports autofix, IDE use, and CI.

Who it is for

detekt suits Kotlin developers who want configurable code-smell analysis in builds or CI. Its reports, baselines, and custom-rule support may also suit teams with established codebases or specific analysis needs.

What is good

  • Supports Android, JVM, JS, Native, and Multiplatform projects.
  • Offers multiple report formats, including SARIF and HTML.
  • Custom rule sets can be added.
  • Documents Gradle, Maven, and Bazel build use.
  • Free, with no commercial limits stated.

What to know first

  • Gradle plugin requires Gradle 6.8.3 or higher.
  • Security patches cover the current minor version; earlier versions are case by case.

Verdict

detekt provides Kotlin analysis with configurable rules, several report formats, and integrations across documented build tools. Check the Gradle requirement and security policy when selecting a version.

detekt plans and pricing

All plans
detekt Free Open-source Kotlin static analysis tool; no commercial limits stated detekt.dev · 4 Oct 2026

Compared on linters

Free plan
Yesdetekt.dev
Languages supported
1detekt.dev
Autofix
Yesdetekt.dev
Custom rules
Yesdetekt.dev
IDE support
idedetekt.dev
CI support
Yesdetekt.dev

Facts

Purpose
detekt is a static code analyzer for Kotlin that helps identify code smells.detekt.dev · 4 Oct 2026
Project types
The site says detekt supports Android, JVM, JS, Native, and Multiplatform projects.detekt.dev · 4 Oct 2026
Rules
Users can configure rule sets, generate baselines for existing issues, and suppress findings with @Suppress annotations.detekt.dev · 4 Oct 2026
Reports
Supported report formats include HTML, Markdown, SARIF, Checkstyle XML, and custom reports.detekt.dev · 4 Oct 2026
Complexity reports
detekt can report lines of code, cyclomatic complexity, and code smell counts.detekt.dev · 4 Oct 2026
Build integrations
The project provides a Gradle plugin and documents use with Gradle, Maven, and Bazel builds.detekt.dev · 4 Oct 2026
Community integrations
The project marketplace lists community-built rules, extensions, and plugins, including a GitLab Code Quality reporter and ktlint rule wrappers.detekt.dev · 4 Oct 2026
Extensibility
Developers can add custom rule sets using detekt's RuleSetProvider and ServiceLoader pattern.detekt.dev · 4 Oct 2026
CLI downloads
The CLI installation guide documents Homebrew on macOS, Scoop on Windows, SDKMAN on Unix-like systems, and NixOS installation.detekt.dev · 4 Oct 2026
Gradle requirement
The Gradle plugin guide states that detekt requires Gradle 6.8.3 or higher.detekt.dev · 4 Oct 2026
Security support
The security policy says patches are applied up to the current minor version and earlier versions are considered case by case.github.com · 4 Oct 2026
Vulnerability reporting
The security policy asks reporters to email [email protected] and says the team commits to respond within two weeks.github.com · 4 Oct 2026
Community support
The project site links to Kotlin Slack and Stack Overflow for community discussion.detekt.dev · 4 Oct 2026

Best detekt alternatives

See all 20

Where it ranks on Everything Xiaomi

Is detekt yours?

Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.

Sources