Closed WildOrangutan closed 1 year ago
function-naming rule to not trigger for composable functions, that are meant to be capitalized. For example:
function-naming
@Composable fun MainScreen() { Text("Hello") }
Is there any option, to exclude this rule, only for @Composable annotations maybe?
@Composable
Lint fails, saying that MainScreen() should be named mainScreen()
MainScreen()
mainScreen()
Nothing special, just run lint with above code
Ktlint version: 1.0.0
This is fixed in ktlint 1.0.1.
Expected Behavior
function-naming
rule to not trigger for composable functions, that are meant to be capitalized. For example:Is there any option, to exclude this rule, only for
@Composable
annotations maybe?Observed Behavior
Lint fails, saying that
MainScreen()
should be namedmainScreen()
Steps to Reproduce
Nothing special, just run lint with above code
Your Environment
Ktlint version: 1.0.0