Code formatting is often not taken seriously and sometimes even omitted, but it's actually something that brings enjoyment to our eyes while doing code reviews. In this talk, we will dig into ktlint (Kotlin formatting linter), its internals (UAST, Psi), how to create a custom rule and how to have the formatting automated.