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

Annotation spacing fix #1087

Merged
merged 5 commits into from
Feb 23, 2021
Merged

Conversation

shashachu
Copy link
Contributor

Description

There was a bug with the experimental annotation-spacing-rule where it would flag a comment separating an annotation from the annotated construct, but fail to autocorrect it.

This fixes the bug as well as clarifies the error message.

Checklist

  • [x ] tests are added
  • [x ] CHANGELOG.md is updated

@shashachu shashachu merged commit be9626d into pinterest:master Feb 23, 2021
romtsn pushed a commit to paul-dingemans/ktlint that referenced this pull request Mar 7, 2021
* Fixing bug with experiment:annotation-spacing-rule with comments

* updating changelog

* deleting unused function

* fix imports

* fix build
@shashachu shashachu deleted the annotation-spacing-fix branch March 16, 2021 17:30
romtsn pushed a commit to paul-dingemans/ktlint that referenced this pull request Aug 8, 2021
* Fixing bug with experiment:annotation-spacing-rule with comments

* updating changelog

* deleting unused function

* fix imports

* fix build
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.

1 participant