Back to Ktlint

Overview

documentation/snapshot/docs/contributing/overview.md

1.8.0751 B
Original Source

!!! 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:

sh
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:

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