Skip to content
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

Enforce enum names (enhancement) #2835

Closed
ataulm opened this issue Oct 16, 2024 · 0 comments · Fixed by #2839
Closed

Enforce enum names (enhancement) #2835

ataulm opened this issue Oct 16, 2024 · 0 comments · Fixed by #2839

Comments

@ataulm
Copy link

ataulm commented Oct 16, 2024

Expected Rule behavior

#635 enforces naming within enums as per Kotlin Coding Conventions. The style guide is liberal here, allowing 2 options.

This is great, but we'd like an enhancement to the existing rule so we can configure which of the two options are our project convention, so we can stay consistent across our codebase.

paul-dingemans added a commit that referenced this issue Oct 19, 2024
This property allows enum entry names to be restricted to:
 * `upper_cases`: an enum entry may only contain uppercases, and underscores, and digits, and dicritics on letters and strokes
  * `camel_cases`: an enum entry may only contain CamelCase values, including digits, and dicritics on letters and strokes)
  * `upper_or_camel_case`: allows both the `upper_cases` and `camel_cases` styles as defined in the Kotlin Coding Conventions

  Closes #2835
paul-dingemans added a commit that referenced this issue Oct 20, 2024
…#2839)

This property allows enum entry names to be restricted to:
 * `upper_cases`: an enum entry may only contain uppercases, and underscores, and digits, and dicritics on letters and strokes
  * `camel_cases`: an enum entry may only contain CamelCase values, including digits, and dicritics on letters and strokes)
  * `upper_or_camel_case`: allows both the `upper_cases` and `camel_cases` styles as defined in the Kotlin Coding Conventions

Closes #2835
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 a pull request may close this issue.

1 participant