-
Notifications
You must be signed in to change notification settings - Fork 40
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
chore: Enable linters exportloopref, nolintlint, whitespace #535
Conversation
|
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.
Appreciate this PR 😃! Thanks for taking the time to also remove the gci
and megacheck
, made some minor suggestions.
ed99e58
to
f9cdf3a
Compare
Codecov Report
@@ Coverage Diff @@
## develop #535 +/- ##
===========================================
- Coverage 54.42% 54.34% -0.08%
===========================================
Files 97 97
Lines 13174 13149 -25
===========================================
- Hits 7170 7146 -24
+ Misses 5325 5324 -1
Partials 679 679
|
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.
I'm happy with this, but from memory someone in the team likes more whitespace than I do (including at top of functions maybe) - Only Shahzad is added to this PR atm, make sure the rest of the team is happy too.
I did request PR review from the database-team group. I'm assuming this sends email to everyone, and if my expectation is wrong I'd like to know :) |
Ah! I only see Shahzads name in the list of reviewers lol |
For the record, Andy and I discussed and we figured out that when we request review from database-team, all members of database-team subsequently receive all notifications on a PR. |
Is that a bad thing? |
I like almost everything about this. The rest I don't care. So overall that's a win in my book. |
IMO is a good thing |
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. Thanks for doing all the requested changes!
Relevant issue(s)
Resolves #536
Part of #487
Description
Adds simple linters:
exportloopref
,nolintlint
,whitespace
.Removes from the list-of-linters-to-consider:
megacheck
as it is deprecatedgci
which is not needed because we enforcegofmt
A potentially controversial decision here is enabling the stylistic
whitespace
. https://github.com/ultraware/whitespaceThis is a draft PR, your feedback is welcome.
I was curious about the list of linters Shahzad had built and this PR results from that.
Tasks
How has this been tested?
Test suite ran locally and on CI.
Specify the platform(s) on which this was tested: