Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Fix no-consecutive-blank-lines #2239

Merged
merged 2 commits into from
Feb 26, 2017
Merged

Fix no-consecutive-blank-lines #2239

merged 2 commits into from
Feb 26, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Feb 25, 2017

PR checklist

  • bugfix, or enhancement

Overview of change:

Since landing #2201 the tests for no-consecutive-blank-lines fail.
This PR fixes the tests and also simplifies the whole rule logic.

  • Correctly apply fixes at EOF.
  • Fix tests.
  • Simplify collecting consecutive blank lines.

Is there anything you'd like reviewers to focus on?

The error position changes when allowing multiple blank lines. Before it was always at the second line. Now the error is at the first line, that exeeds the limit.

Correctly apply fixes at EOF.
Fix tests.
Simplify collecting consecutive blank lines.
@nchen63
Copy link
Contributor

nchen63 commented Feb 26, 2017

@ajafff thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants