IDE settings
Presuming the IDE is IntelliJ IDEA or PyCharm, consider applying the linter style to it.
Ktlint Style¶
Explained in Ktlint IntelliJ IDEA Configuration, using standard Kotlin coding conventions is enough:
- In File > Settings > Editor > Code Style > Kotlin, set from Kotlin style guide.
- Append
kotlin.code.style=official
to rootgradle.properties
.
Google Java Style¶
Explained in Google Java Format:
- In File > Settings > Editor > Code Style > Java, import IntelliJ Java Google Style file.