-
Notifications
You must be signed in to change notification settings - Fork 61
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
Bug fix: check names of ALL files #78
Bug fix: check names of ALL files #78
Conversation
25665f0
to
3d905d9
Compare
3d905d9
to
dad0dd5
Compare
Codecov Report
@@ Coverage Diff @@
## main #78 +/- ##
=======================================
Coverage 95.52% 95.52%
=======================================
Files 21 21
Lines 469 469
=======================================
Hits 448 448
Misses 12 12
Partials 9 9
Continue to review full report at Codecov.
|
@@ -75,6 +75,17 @@ func TestGenerateFileViolations(t *testing.T) { | |||
assert.Len(t, res.Results, 1) | |||
assert.Regexp(t, "^Filename violation: ", res.Results[0].Reason()) | |||
}) | |||
|
|||
t.Run("filename violation for empty file", func(t *testing.T) { |
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.
👍🏻
This reverts commit 7cb1c2d.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Check file names of all files in the target path.
What is the current behavior? (You can also link to an open issue here)
Currently names of empty files and just non-text files are not analyzed.
What is the new behavior (if this is a feature change)?
Analyze names of all files in the target path, but still skip analyzing content of empty files and non-text files.
Does this PR introduce a breaking change? (What changes might users need to make due to this PR?)
The linter may detect more violations as all file names are analyzed. If, for some reason, names of some files should not be analyzed, they should be added to the ignore list.
Other information: