I've seen similar issues but the consensus seems to be this works now. But in my experience, it doesn't. Multiple violations reported by ktlint, even after reformatting the whole project from Android ...