Kotlin best-practices

My team struggles with Kotlin coding conventions. From my point of view there is an overuse of it (related post), apply, let and friends. This is especially hard to read if blocks are nested or if endless trainwrecks of “let … let … let” are used.

I’m looking for best-practices in Kotlin, something like this:

Do you know more good sources?

1 Like

I can advice detekt plugin. Just add it into your gradle build, it will check for a lot of rules.

So you don’t need to learn style guide, this tool just insists on it.