Skip to content

Lint: Rename Composable functions to follow naming conventions #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cartland
Copy link
Contributor

The lint tool reported ComposableNaming warnings in GlanceSnippets.kt. Composable functions that return Unit should be named using PascalCase, like classes, to clearly identify them as UI components.

This commit renames 12 Composable functions to adhere to this convention. For example, 'actionLambda' has been renamed to 'ActionLambda'. This follows Compose best practices.

The lint tool reported "ComposableNaming" warnings in GlanceSnippets.kt.
Composable functions that return Unit should be named using PascalCase,
like classes, to clearly identify them as UI components.

This commit renames 12 Composable functions to adhere to this convention.
For example, `actionLambda` has been renamed to `ActionLambda`.
This improves code readability and follows Compose best practices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants