Provides a convenient wrapper plugin over the ktlint project. This plugin creates convenient tasks in your Gradle project that run ktlint checks or do code auto format. The plugin can be applied to any project, but only activates if that project has the kotlin plugin applied. The assumption being that you would not want to lint code you weren't compiling. This plugin was written using the new API available for the Gradle script Kotlin builds. This API is available in new versions of Gradle. To test KtLint snapshots add following configuration into project build script. This plugin just adds special tasks that can generate IntelliJ IDEA codestyle rules using ktlint. The version of ktlint used by default may change between patch versions of this plugin. If you don't want to inherit these changes then make sure you lock your version.

Features

  • Build script snippet for new plugin mechanism introduced in Gradle 2.1
  • Minimal supported Gradle version: 6.8
  • Build script snippet for use in all Gradle versions
  • Optionally apply plugin to all project modules
  • Plugin supports KtLint baseline
  • Test KtLint snapshots

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Ktlint Gradle

Ktlint Gradle Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ktlint Gradle!

Additional Project Details

Operating Systems

Windows

Programming Language

Kotlin

Related Categories

Kotlin Browser Extensions and Plugins

Registered

2023-02-23