ktlint-gradle VS detekt

Compare ktlint-gradle vs detekt and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
ktlint-gradle detekt
3 5
1,387 6,020
- 1.1%
7.3 9.8
14 days ago about 24 hours ago
Kotlin Kotlin
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ktlint-gradle

Posts with mentions or reviews of ktlint-gradle. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-28.
  • [Question] disable ktlint rules with ktlint-gradle version 12.0.2
    1 project | /r/KotlinAndroid | 5 Dec 2023
    buildscript { . . . dependencies { classpath 'com.android.tools.build:gradle:8.1.4' classpath "org.jlleitschuh.gradle:ktlint-gradle:12.0.2" // https://github.com/JLLeitschuh/ktlint-gradle/releases . . } } allprojects { . . . apply plugin: "org.jlleitschuh.gradle.ktlint" }
  • Ktlint automation for a team
    2 projects | /r/Kotlin | 28 Mar 2022
    Ktlint Gradle has a task addKtlintFormatGitPreCommitHook. Never used it though.
  • Supercharge your Kotlin Project
    5 projects | dev.to | 20 Oct 2021
    ext { // https://github.com/JLLeitschuh/ktlint-gradle/releases ktlintPluginVersion = "10.2.0" } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32" ## KTLINT DEPENDENCY classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlintPluginVersion" }

detekt

Posts with mentions or reviews of detekt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-08.
  • HRV-Mart
    16 projects | dev.to | 8 May 2023
    In protection rules, I added build workflow in Require status checks to pass before merging. This is to ensure that before merging code in master branch, build should run successfully. I also added Jacoco Code Coverage to make sure that enough unit tests are available in project and Detekt to make sure that code in project is readable. I added them in build configuration. Even if one of them gives error, build will fail. Whenever, someone push code in pull request, build action will run and check if build is running successfully or not.
  • Modern Android Development in 2023
    7 projects | dev.to | 23 Jan 2023
    Detekt
  • Change aware code analysis tools?
    1 project | /r/Kotlin | 7 Oct 2022
  • Supercharge your Kotlin Project
    5 projects | dev.to | 20 Oct 2021
    ext { // https://github.com/detekt/detekt/releases detektVersion = "1.17.0" } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32" ## DETEKT DEPENDENCY classpath "io.gitlab.arturbosch.detekt:detekt-gradle- plugin:$detektVersion" }
  • Android Style Guide
    2 projects | /r/androiddev | 24 Mar 2021
    I haven't looked through it completely, but have you considered adhering to detekt and ktlint as well?

What are some alternatives?

When comparing ktlint-gradle and detekt you can also consider the following projects:

ktlint - An anti-bikeshedding Kotlin linter with built-in formatter

kotlinter-gradle - Painless, fast ktlint plugin for Gradle

sonarlint-intellij - SonarLint for IntelliJ

diktat - Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs

ktfmt-gradle - A Gradle plugin to apply ktfmt to your builds, and reformat you Kotlin source code like a glimpse 🧹🐘

spring-petclinic-kotlin - Kotlin version of Spring Petclinic

dokka - API documentation engine for Kotlin

carthage-gradle-plugin - Gradle plugin for Carthage

keplin - Secure Kotlin scripting and binary lambda-scripts

gotrue-kt - Kotlin Client for GoTrue API

KotlinW - A small wrapper for the Kotlin compiler that can be used to execute .kts scripts