diktat
diktat copied to clipboard
Usage of standard type names in generics should be prohibited
Quite confusing, isn't it?
fun<Int> foo(a: Int) {
}
Need to prohibit naming of generic types with standard Kotlin types (kotlin.kotlin_builtins)
There is a common suggestion to use a single letter for generic types (for example in java Generic Types -> Type Parameter Naming Conventions, or sonar: squid:S00119). We can add similar rule to diktat