Overview of detekt features
detekt is a static code analysis tool for Kotlin projects that provides:
- Code smell analysis and complexity reports (based on lines of code, cyclomatic complexity, and smell count).
- Highly configurable rule sets and the ability to extend detekt with custom rule sets and reports.
- Baseline generation to suppress existing issues in legacy projects.
- Support for
@Suppressannotations to ignore issues in specific source files. - Multiple report formats: HTML, Markdown, SARIF, and XML (Checkstyle).
- First-party Gradle plugin integration and a community of third-party plugins.