github.com/saveourtool/diktat ↗
Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
Open this visualization on its own page →
Contributors
24
Lines of Code
7,110
From
2020-04-20
To
2022-07-01
About saveourtool/diktat
DiKTat is a strict coding standard for Kotlin that implements over 100 inspections and rules for detecting code smells, style issues, and bugs. Built as a collection of Abstract Syntax Tree visitors on top of KTlint, it provides both automated code checking and fixing capabilities integrated directly into CI/CD pipelines. The tool has been recognized by major code analysis communities, appearing on static-analysis tool lists, in the kotlin-awesome repository, and in the kompar code analyzer catalog.
The project distinguishes itself from other Kotlin linters like detekt and ktlint by offering more comprehensive inspections tightly coupled with its detailed codestyle guide, including unique inspections not found elsewhere. Every inspection is highly configurable, allowing developers to enable, disable, or customize rules according to project needs through YAML configuration files. DiKTat supports multiple integration methods including command-line usage, Maven plugins, Gradle plugins, and Spotless integration, making it accessible for various development workflows.
DiKTat's codestyle guide covers naming conventions, comments and documentation, formatting rules, variable declarations, function design, and class structure—providing a complete specification for writing consistent and maintainable Kotlin code. The tool supports suppression of warnings through annotations, baseline mode for gradual adoption on large projects, and multiple report formats including SARIF for native GitHub Actions integration. The project actively welcomes community contributions and maintains comprehensive documentation including examples, configuration guides, and a detailed white paper.