-
Notifications
You must be signed in to change notification settings - Fork 743
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
Use "revive" instead of "golint" linter #1316
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1316 +/- ##
==========================================
+ Coverage 48.52% 48.67% +0.14%
==========================================
Files 68 68
Lines 4894 4890 -4
==========================================
+ Hits 2375 2380 +5
+ Misses 2166 2160 -6
+ Partials 353 350 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
3e75a12
to
fee30b8
Compare
@@ -1,17 +1,23 @@ | |||
linter-settings: | |||
linters-settings: |
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.
Good catch!
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.
LGTM with one nit
Looks like git diff fails. Can you run |
Ahh, that's it. Done! |
Per the golint repository, the golint linter is no longer maintained. The recommended golangci-lint replacement is revive, so this PR switches us to use the new linter. This commit also includes all necessary changes to make the new linter pass. In configuring this I noticed the that our .golangci.yaml had a typo which caused our misspell and lll configurations to be silently discarded - I've corrected "linter" to "linters" and resolved the spelling mistakes it found. Also upgrade golangci-lint from 1.37.1 to 1.40.1 as previous versions did not configure gosec properly. Signed-off-by: Will Beason <willbeason@google.com>
What this PR does / why we need it:
Per the golint repository, the golint linter is no longer maintained.
The recommended golangci-lint replacement is revive, so this PR switches
us to use the new linter. This commit also includes all necessary
changes to make the new linter pass.
In configuring this I noticed the that our .golangci.yaml had a typo
which caused our
misspell
andlll
configurations to be silentlydiscarded - I've corrected "linter" to "linters" and resolved the
spelling mistakes it found.
Note: when running locally, you may need to upgrade to golangci-lint
1.40.1 as some previous versions did not properly configure gosec.
Signed-off-by: Will Beason willbeason@google.com