Why Is There No Short Variable Inspection For Kotlin?

Answered

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?

2 comments
Comment actions Permalink

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

0
Comment actions Permalink

https://discuss.kotlinlang.org/t/why-is-there-no-short-variable-inspection-for-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.

0

Please sign in to leave a comment.