Contributing
This page documents everything needed to contribute to Kleuth.
Ktlint#
Kleuth uses the JLLeitschuh Ktlint Gradle plugin to manage Kotlin code linting. The following setup is required when working with the project:
- Setup the kotlin code style by running
./gradlew ktlintApplyToIdeato apply it on the Kleuth project, or./graldew ktlintApplyToIdeaGloballyto apply it for every project. - Add the ktlint pre-commit hook with
./gradlew addKtlintCheckGitPreCommitHookto ensure your PR verify will not fail because of linting errors.