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

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool 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