I get a false positive on this rule when using the following syntax:
// Part of theme file
@Composable
fun AppTheme(content: @Composable () -> Unit) {
// Theme setup stuff goes here
}
// False positive is on this function
@Preview
@Composable
private fun PreviewSomeComposable() = AppTheme {
SomeComposable()
}
Seems like the rule doesn't detect that its still only a Unit return type so wants me to start the function with a lowercase letter.
I get a false positive on this rule when using the following syntax:
Seems like the rule doesn't detect that its still only a
Unitreturn type so wants me to start the function with a lowercase letter.