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

Exception in trailing-comma-on-declaration-site on empty enum class #1826

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

paul-dingemans
Copy link
Collaborator

Description

Do not throw exception when enum class does not contain entries trailing-comma-on-declaration-site

Closes #1711

Checklist

  • PR description added
  • tests are added
  • KtLint has been applied on source code itself and violations are fixed
  • documentation is updated
  • CHANGELOG.md is updated

In case of adding a new rule:

@paul-dingemans paul-dingemans merged commit 44ad030 into master Feb 18, 2023
@paul-dingemans paul-dingemans deleted the 1711-empty-enum-class branch February 18, 2023 21:19
@paul-dingemans paul-dingemans added this to the 0.49.0 milestone Mar 21, 2023
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.

ktlint raise error when there is empty enum class
1 participant