-
Notifications
You must be signed in to change notification settings - Fork 474
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
lint: fix linter errors and update CI to require passing #4241
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4241 +/- ##
==========================================
+ Coverage 55.13% 55.18% +0.04%
==========================================
Files 397 397
Lines 50073 50076 +3
==========================================
+ Hits 27607 27633 +26
+ Misses 20170 20139 -31
- Partials 2296 2304 +8
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
5f81383
to
8c56e36
Compare
I think we should invoke this linter (with the same filters) when running |
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
huh, fixing these errcheck linter warnings led to another issue:
|
41fe07c
to
f3c3d3e
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.
LGTM
Summary
I noticed some golangci-lint errors cropping up that should have been caught by our reviewdog "error" severity configuration (in .golangci.yml) but I think they were not blocking builds because we have reviewdog set to filter out issues based to just the lines added/modified.
This fixes the linter errors currently on master, and removes filtering from reviewdog to force failing CI if any new high-severity linter errors are encountered.
Warning-level severity linter output is still non-blocking and in .golangci-warnings.yml.
This also promotes a few of golangci-lint's default linters (nolintlint, gosimple, staticcheck, typecheck) that were in .golangci-warnings.yml to error level, these only had a couple of fixes required to get lint clean.
Test Plan
All checks should pass.