Clone this repo:
  1. 1b8c4c9 Simplify creation of a custom ruleset (#3118) by Paul Dingemans · 2 days ago upstream/master
  2. ff55bc1 chore(deps): update plugin shadow to v9.1.0 (#3111) by renovate[bot] · 3 days ago
  3. 6b30bb4 Change language for code-scanning workflow to 'kotlin' only as project does not contain java code (#3117) by Paul Dingemans · 4 days ago
  4. f5d0a27 Restrict access to GitHub token to "contents: read". It is to be expected that some workflows (publish of docs, and/or releases) will break when not having enough privileges. (#3115) by Paul Dingemans · 4 days ago
  5. 5b15c8e Disable gradle build cache in code scanning workflow as analysis of Kotlin fails without artifact being build (#3116) by Paul Dingemans · 4 days ago

Key features

  • No configuration required
  • Built-in Rule sets
  • Built-in formatter
  • .editorconfig support
  • Several built-in reporters: plain, json, html and checkstyle
  • Executable jar
  • Allows extension with custom rule sets and reporters

Quick start

Follow steps below for a quick start with latest ktlint release.

Documentation

User guide

Legal

This project is not affiliated with nor endorsed by JetBrains.
All code, unless specified otherwise, is licensed under the MIT license.
Copyright (c) 2019 Pinterest, Inc.
Copyright (c) 2016-2019 Stanley Shyiko.