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

SpacesFixer: bugfix for new line vs trailing comment #229

Merged
merged 1 commit into from
Nov 8, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 8, 2020

Bug fix for a quite specific situation:

  • If a new line was the expected spacing
  • AND the "first" token was a slash comment
  • AND the "second" token was on the new line without indentation
  • THEN an error would be throw and if the fixer was invoked, a stray new line would be added.

Fixed now.

Includes additional unit tests safeguarding the fix.

Bug fix for a quite specific situation:
* If a new line was the expected spacing
* AND the "first" token was a slash comment
* AND the "second" token was on the new line without indentation
* THEN an error would be throw and if the fixer was invoked, a stray new line would be added.

Fixed now.

Includes additional unit tests safeguarding the fix.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Nov 8, 2020
@jrfnl jrfnl merged commit c677ffc into develop Nov 8, 2020
@jrfnl jrfnl deleted the spacesfixer/bugfix-comment-vs-newline branch November 8, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant