Skip to content

False positive on ComposableFunctionName when using single expression functions #35

@patrickhoette

Description

@patrickhoette

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions