Closed azmiradi97 closed 1 month ago
That error is from the ktlint standard ruleset, not this ruleset.
ktlint documentation about that particular rule can be found here: https://pinterest.github.io/ktlint/latest/rules/standard/#function-naming
They have a section in there that talks about how to configure it for compose:
When using Compose, you might want to configure the function-naming rule with .editorconfig property ktlint_function_naming_ignore_when_annotated_with=Composable. Furthermore, you can use a dedicated ktlint ruleset like Compose Rules for checking naming conventions for Composable functions.
Follow their documentation and it should work.
But report mention to compose fun
@Composable fun DDDDDD() {}
source="standard:function-naming" means standard ruleset, so ktlint. It's telling you that the function name is invalid, because you haven't configured ktlint for compose as I linked above.
okay thank you i understand you @mrmans0n
why produce this error Function name should start with a lowercase letter (except factory methods) and use camel case" source="standard:function-naming