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

Prevent false-positive "unnecessary semicolon" after adding trailing comma in enum #1796

Merged
merged 2 commits into from
Jan 28, 2023

Conversation

paul-dingemans
Copy link
Collaborator

Description

Do not report an "unnecessary semicolon" after adding a trailing comma to an enum class containing a code element after the last enum entry trailing-comma-on-declaration-site

Closes #1786

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 added 2 commits January 28, 2023 13:23
@paul-dingemans paul-dingemans merged commit e5a8776 into master Jan 28, 2023
@paul-dingemans paul-dingemans deleted the 1786-trailing-comma-enum-no-semi branch January 28, 2023 13:50
@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.

Formatting enum class with member definition and missing trailing commas causes rule violations on first run
1 participant