KT.UNNECESSARY_INNER_CLASS
Unnecessary inner class
This rule reports unnecessary inner classes. Nested classes that do not access members from the outer class do not require the inner qualifier.
Noncompliant Code
Copy
class A {
val foo = "BAR"
inner class B {
val fizz = "BUZZ"
fun printFizz() {
println(fizz)
}
}
}