-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix/shadowing var #281
Fix/shadowing var #281
Conversation
9bafa22
to
eb2e396
Compare
Codecov Report
@@ Coverage Diff @@
## master #281 +/- ##
=======================================
Coverage 88.86% 88.86%
=======================================
Files 79 79
Lines 6771 6772 +1
Branches 475 475
=======================================
+ Hits 6017 6018 +1
Misses 279 279
Partials 475 475
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this, @niyarin! 👍
The changes look good for src
, but clj-kondo
reports several shadowed vars in test
directory. Would you fix the local binding names in tests
, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you consider whether there are any other files where we can avoid using the :exclude
directive by simply changing variable names? 🙏
I have left comments on some files, so please use them as a reference for your revision strategy.
19b0d9a
to
41f4fd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@niyarin Thank you for addressing the previous points!
I apologize for the request again, but could you please consider if it's possible to further change the names of local bindings to minimize the use of :exclude
directives?
I've added comments on three points as examples.
Please take a look at other codes based on the comments' guidance.
I want to emphasize again that :exclude
can be used in situations like when it's crucial for the names to match exactly as specified in the documentation.
a5e6da6
to
4186808
Compare
I fixed shadowing-var in vcf-validator that recently entered master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @niyarin! LGTM 👍
Would you squash your commits before merging?
4186808
to
d462897
Compare
This PR fix shadowing variables.
I've fixed what's in the comment (#279 (review) ) here in this PR.
meta-info
ofcljam.io.bcf.reader
seemed difficult, so I removed it from the check target.version
ofcljam.io.bcf.reader
could be renamed, but it is also excluded from inspection because the code becomes complicated.