Skip to content
New issue

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

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

Already on GitHub? # to your account

Add new experimental rule enum-wrapping #1907

Merged
merged 2 commits into from
Apr 2, 2023
Merged

Conversation

paul-dingemans
Copy link
Collaborator

Description

Add new experimental rule enum-wrapping for all code styles. An enum should either be a single line, or each enum entry should be defined on a separate line

Closes #1903

Fix bug in RuleProviderSorter. A rule marked with RunAsLateAsPossible should never be run before a rule not having any Rule.VisitorModifier.

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:

…m should either be a single line, or each enum entry should be defined on a separate line

Closes #1903

Fix bug in RuleProviderSorter. A rule marked with RunAsLateAsPossible should never be run before a rule not having any Rule.VisitorModifier.
@paul-dingemans paul-dingemans added this to the 0.49.0 milestone Apr 1, 2023
@paul-dingemans paul-dingemans merged commit 728fa00 into master Apr 2, 2023
@paul-dingemans paul-dingemans deleted the 1903-enum-wrapping branch April 2, 2023 12:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enum wrapping rule
1 participant