We use ktfmt as a code style checker and reformater with the
kotlinlang
code style.
The gradle plugin is installed for all submodules through the
conventions plugin. It adds two gradle tasks
./gradlew ktfmtCheck
and ./gradlew ktfmtFormat
. The gradle plugin is configured to use kotlinlang
.
ktfmt has an IntelliJ plugin which automatically replaces IntelliJ's
format command and applies ktfmt's formatting. The IntelliJ plugin must be configured to use kotlinlang
under the
plugin's settings.