Why Is There No Short Variable Inspection For Kotlin?


In the Java - Naming conventions section of the Inspections there is an inspection called "Local variable naming convention" which says:

Reports local variables whose names are either too short, too long, or do not follow the specified regular expression pattern. 
Use the fields below to specify minimum length, maximum length and regular expression expected for local variables names.
Specify 0 to not check the length of names. Regular expressions are in standard java.util.regex format.

In the Kotlin section there is an identically named inspection but it only says:

This inspection reports local variable names that do not follow the recommended naming conventions.

Why is there no check for variable name length in the Kotlin version?

评论操作 固定链接

Please use https://discuss.kotlinlang.org/ for any questions related to Kotlin.

评论操作 固定链接



Short answer: they don't share the same code base and they haven't got round to making Kotlin feature parity with Java yet.