-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
tools: Add github.com/mgechev/revive #7472
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7472 +/- ##
==========================================
+ Coverage 81.38% 81.51% +0.12%
==========================================
Files 354 357 +3
Lines 27080 27242 +162
==========================================
+ Hits 22040 22207 +167
+ Misses 3831 3826 -5
Partials 1209 1209 |
d3a4963
to
20f6b61
Compare
69ef453
to
1880907
Compare
1880907
to
5ae9cd3
Compare
6a8de80
to
941218f
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.
Tactically speaking...
Warnings:
546 unused-parameter
83 exported
28 var-naming
15 redefines-builtin-id
8 package-comments
8 empty-block
6 var-declaration
3 indent-error-flow
2 increment-decrement
1 context-as-argument
1 superfluous-else
...we're going to want to fix the issues that have few instances of them ASAP. But we will probably want to make this a blocking checker before fixing all the "unused-parameter" items, since there are so many of them.
scripts/vet.sh
Outdated
# - Collection of revive linter analysis checks | ||
REV_OUT="$(mktemp)" | ||
revive -formatter unix ./... >"${REV_OUT}" || true | ||
|
||
(noret_grep -v "[unused-parameter]" "${REV_OUT}" | not grep -v "\.pb\.go:") || true |
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.
Now this doesn't show us the other errors.
Maybe we can just make revive skip that check? I assume that's possible?
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.
After switching to plain
formatter, it works
0d56a0c
to
d7dfb68
Compare
d7dfb68
to
b8af6c4
Compare
cc #7444
RELEASE NOTES: None