KEMBAR78
Don't fix key order for substitution variables (#383) by stygian-coffee · Pull Request #406 · dotenv-linter/dotenv-linter · GitHub
Skip to content

Conversation

@stygian-coffee
Copy link
Contributor

@stygian-coffee stygian-coffee commented Mar 28, 2021

This pull request addresses issue #383.

I think the fix_warnings function could still use a bit of cleanup after my changes, since I do think it nests a bit deep now.

✔ Checklist:

  • Commit messages have been written in Conventional Commits format;
  • 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);
  • Docs have been added / updated on the dotenv-linter.github.io (for bug fixes / features).

@stygian-coffee stygian-coffee force-pushed the key-order-substitution-variable branch from 7b75536 to c15abcc Compare March 28, 2021 19:28
@codecov-io
Copy link

codecov-io commented Mar 28, 2021

Codecov Report

Merging #406 (7d9e69f) into master (a387862) will increase coverage by 3.47%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #406      +/-   ##
==========================================
+ Coverage   95.73%   99.20%   +3.47%     
==========================================
  Files          37       37              
  Lines        2531     2643     +112     
==========================================
+ Hits         2423     2622     +199     
+ Misses        108       21      -87     
Impacted Files Coverage Δ
src/fixes/unordered_key.rs 100.00% <100.00%> (+0.45%) ⬆️
src/checks.rs 100.00% <0.00%> (+0.61%) ⬆️
src/common/file_entry.rs 100.00% <0.00%> (+2.98%) ⬆️
src/common/line_entry.rs 100.00% <0.00%> (+3.67%) ⬆️
src/checks/incorrect_delimiter.rs 100.00% <0.00%> (+4.54%) ⬆️
src/fs_utils.rs 96.59% <0.00%> (+4.54%) ⬆️
src/lib.rs 99.23% <0.00%> (+6.87%) ⬆️
src/checks/lowercase_key.rs 100.00% <0.00%> (+7.69%) ⬆️
src/checks/key_without_value.rs 100.00% <0.00%> (+7.69%) ⬆️
... and 8 more

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 a387862...7d9e69f. Read the comment docs.

@stygian-coffee stygian-coffee force-pushed the key-order-substitution-variable branch from c15abcc to a78522c Compare March 28, 2021 20:26
@mgrachev mgrachev linked an issue Mar 30, 2021 that may be closed by this pull request
@mgrachev mgrachev added this to the v3.1.0 milestone Mar 30, 2021
Copy link
Member

@mgrachev mgrachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stygian-coffee 👋 Thank you for your contribution 🚀

I have left a comment. Please take a look at it 👀

@stygian-coffee stygian-coffee force-pushed the key-order-substitution-variable branch from 29cda83 to ba03ca2 Compare March 30, 2021 17:42
Copy link
Member

@DDtKey DDtKey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! 🚀
I left some comments, please take a look.

Also add this PR to CHANGELOG.md please 🙂

Slight difference in functionality because lists of substitution
variables no longer include "and".
@mgrachev mgrachev merged commit 313ba56 into dotenv-linter:master Apr 3, 2021
@mgrachev
Copy link
Member

mgrachev commented Apr 3, 2021

@stygian-coffee Thank you for your help 🔥

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.

Don't fix key order for substitution variables

4 participants