Why does the IDE keep suggesting me to change my f...
# intellij
m
Why does the IDE keep suggesting me to change my file property to all-uppercase? How can I turn that off?
r
A file level public val is a global constant, and in Java there’s a convention that constants are upper, snake case.
m
Yes, but I'm developing in Kotlin 🤔
m
"Names of properties holding references to singleton objects can use the same naming style as object declarations: val PersonComparator: Comparator<Person> = /*...*/ "
Anyway, my question is how to turn that off. I've banned all uppercase from my code and I remember that there was a related option somewhere.
r
I was answering the first half of your question, why it did it. Perhaps you’re looking for
Editor > Inspections > Kotlin > Naming conventions > Const property naming convention
m
Right 👍 The setting doesn’t change anything though. Looks like it only applies to
const val
.
r
Object property naming convention?
m
That’s already set correctly and doesn’t affect it either
r
Though looks like it’s happy with lower case to start
m
None of my inspections require uppercase now but the refactoring suggestion remains
r
Don’t know then, sorry
m
No worries, but thanks for trying 🙂
a
This is during the Rename refactoring, right? Then I suppose inspections have nothing to do with it. It's worth to create a feature request to configure this refactoring.