ktlint
ktlint copied to clipboard
Introduce a new rule for naming style
This ticket is a parent for #27 #28 (PR available) #29 proposed by @iggymoran.
Caution: these might not play well with kotlin-native (see https://github.com/JetBrains/kotlin-native/tree/master/samples).
I have a few questions here @shyiko.
- Could you elaborate a little on why these rules might not play well with Kotlin Native?
- Is the current direction to make all of these name checks into a single rule, or would it be better that these are distinct rules?
- Would you consider adding a rule for constant values being UPPER_SNAKE_CASE?
Any updates on that? @shyiko @iggymoran @jzbrooks
Any update on this rule ? @shyiko
The current naming rule conventions seem quite clear and unambiguous. Some simple rules can be extracted quite simply from those conventions.