Skip to content

Overview

Important

Make sure to read the Contributing guideline and the code of conduct first.

Development

Development starts with cloning and building the project on your local machine:

git clone https://github.com/pinterest/ktlint && cd ktlint
./gradlew tasks # shows how to build, test, run, etc. project

Tip

To open and run ktlint in Intellij IDEA:

  • File -> Open....
  • You'll also need to set the "Project language level" to 8 in "Project Settings" (File -> Project Structure... -> Project).
  • To run ktlint - right-click on ktlint/src/main/kotlin/com/pinterest/ktlint/Main.kt -> Run.