https://kotlinlang.org logo
#ktfmt
Title
# ktfmt
p

pablisco

06/14/2022, 10:05 AM
We have ktfmt enabled in our project using spotless. I found a problem with the check. It complains when using factory functions with UpperCamelCase naming. However, this is valid under Kotlin lang rules: https://kotlinlang.org/docs/coding-conventions.html#function-names Is there a way to change this? Or shall I open a PR for this? Thank you 🙏
1
j

Javier

06/14/2022, 10:32 AM
Error?
I have using it with function with camel case with no issues 🤔
composable functions for example
p

pablisco

06/14/2022, 10:53 AM
Hmm, it may be a spotless issues. Gonna investigate a bit more
j

Javier

06/14/2022, 10:56 AM
I am using it with spotless too
p

pablisco

06/14/2022, 12:18 PM
Aaaand, never mind I was using an old version 🙈
13 Views