ktlint-gradle VS ktlint

Compare ktlint-gradle vs ktlint 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-gradle ktlint
3 7
1,387 5,994
- 1.0%
7.3 9.6
20 days ago 7 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-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" }

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.
  • Setting up linting/formatting for an Android project
    1 project | /r/androiddev | 23 Mar 2023
    In my experience, I have faced these issues while trying to keep the code style consistent across the team - 1. ktlint and "Reformat Code" in Android Studio produce different outputs. This causes issues as most developers find it easier to use "Reformat Code" in AS but if you have a ktlint check on CI, the checks sometimes fail. 2. Different AS versions produce different `codeStyles.xml` file. Sometimes, on updating AS, it automatically adds new rules to the `codeStyles.xml` file. These rules might not be compatible with ktlint and might only work on specific AS versions.
  • Modern Android Development in 2023
    7 projects | dev.to | 23 Jan 2023
    Ktlint
  • Three features in Android Studio that maybe you've missed
    1 project | dev.to | 29 May 2022
    Not even an Android Studio-specific feature, but rather a feature of the underlying IntelliJ. Just select Code > Analyze code > Silent code cleanup and your entire project will be cleaned up using the default linter (this can be combined awesomely with 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)
  • Adding Klint to my Android apps
    1 project | dev.to | 4 Mar 2022
    Refs. Klint Page Klint Github
  • Supercharge your Kotlin Project
    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:

What are some alternatives?

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

kotlinter-gradle - Painless, fast ktlint plugin for Gradle

detekt - Static code analysis for Kotlin

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

sonarlint-intellij - SonarLint for IntelliJ

spring-petclinic-kotlin - Kotlin version of Spring Petclinic

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

gotrue-kt - Kotlin Client for GoTrue API

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

carthage-gradle-plugin - Gradle plugin for Carthage

keplin - Secure Kotlin scripting and binary lambda-scripts