I start seeing in many repos that Kotlin file name...
# detekt
l
I start seeing in many repos that Kotlin file names are starting small letter like
resourceProvider.kt
or
viewExt.kt
. Is it an official convention? I couldn’t find anything in Coding Conventions about it Thread in Slack Conversation
l
Are there classes in these files, or is it just global methods/variables? This could be an interesting way to indicate at a glance that there’s no class in the file.
b
I personally use lowercase file names when there's no clear owning class inside (e.g. a file with multiple utility classes and top level declarations)
l
I thought at one point is was recommended that if there’s multiple classes, the file should be named after the first or most important one