KT.MODIFIER_ORDER

Modifiers are not in the default order from coding-conventions

This rule reports cases in the code where modifiers are not in the correct order. The default modifier order is taken from: https://kotlinlang.org/docs/coding-conventions.html#modifiers-order

Noncompliant Code

Copy
lateinit internal val str: String

Compliant Code

Copy
internal lateinit val str: String

The content on this page is adapted from the Detekt Docs. Copyright ©2022 The Detekt Team. All rights reserved. https://detekt.dev/comments.html