ktlint VS ktlint-gradle

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
ktlint ktlint-gradle
7 3
5,986 1,386
0.8% -
9.6 7.3
5 days ago 12 days ago
Kotlin Kotlin
MIT License MIT License
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

Posts with mentions or reviews of ktlint. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-23.
  • Modern Android Development in 2023
    7 projects | dev.to | 23 Jan 2023
    Ktlint
  • Ask HN: What is a modern Java environment?
    22 projects | news.ycombinator.com | 29 Mar 2022
    Ktlint + Detekt: Kotlin linting/static analysis (https://ktlint.github.io, https://detekt.github.io/detekt)
  • Supercharge your Kotlin Project
    5 projects | dev.to | 20 Oct 2021
    apply plugin: "org.jlleitschuh.gradle.ktlint" ktlint { // https://github.com/pinterest/ktlint/releases version = "0.42.1" reporters { reporter "plain" reporter "checkstyle" reporter "html" } outputColorName = "RED" }
    5 projects | dev.to | 20 Oct 2021
    Linting is the process of analyzing code for potential errors and one of the ways we can do that in Kotlin is using Ktlint. As per the documentation:

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.
  • 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" }

What are some alternatives?

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

detekt - Static code analysis for Kotlin

sonarlint-intellij - SonarLint for IntelliJ

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

dokka - API documentation engine for Kotlin

CrunchyCalendar — awesome calendar widget for android apps - A beautiful material calendar with endless scroll, range selection and a lot more!

keplin - Secure Kotlin scripting and binary lambda-scripts

kotlin-android-template - Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = ❤️

Credit Card Scanner - Android Credit Card Scanner using CameraX and ML Kit

kotlinx-kover

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

detekt-hint - Detection of design principle violations in Kotlin as a plugin to detekt.

jtransc - Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere. Also use JVM code in your favourite language as a library.