KEMBAR78
Fix for the case when many extra lines by evgeniy-r · Pull Request #208 · dotenv-linter/dotenv-linter · GitHub
Skip to content

Conversation

@evgeniy-r
Copy link
Contributor

@evgeniy-r evgeniy-r commented May 28, 2020

I found the small bug in the ExtraBlankLine check: it prints less warnings than expected when there are several successive blank lines.
For example, it prints only one warning for this file (instead of two):

A=B



B=C

✔ Checklist:

  • This PR has been added to CHANGELOG.md (at the top of the list);
  • Tests for the changes have been added (for bug fixes / features);

@codecov-commenter
Copy link

codecov-commenter commented May 28, 2020

Codecov Report

Merging #208 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #208      +/-   ##
==========================================
+ Coverage   96.87%   96.89%   +0.02%     
==========================================
  Files          14       14              
  Lines        1377     1387      +10     
==========================================
+ Hits         1334     1344      +10     
  Misses         43       43              
Impacted Files Coverage Δ
src/checks/extra_blank_line.rs 93.33% <100.00%> (+1.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c394157...e974140. Read the comment docs.

@evgeniy-r evgeniy-r force-pushed the fix/three_extra_lines branch from 6a2bf0d to 6894d62 Compare May 28, 2020 18:56
@evgeniy-r evgeniy-r force-pushed the fix/three_extra_lines branch from 6894d62 to e974140 Compare May 28, 2020 19:02
@evgeniy-r evgeniy-r changed the title Fix for case when many extra lines Fix for the case when many extra lines May 28, 2020
@mgrachev mgrachev merged commit 5b061c0 into dotenv-linter:master May 29, 2020
@mgrachev
Copy link
Member

@evgeniy-r Great work! Thank you! 🚀

@evgeniy-r evgeniy-r deleted the fix/three_extra_lines branch July 8, 2020 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants