-
Notifications
You must be signed in to change notification settings - Fork 642
CASSGO-77: Add golangci-lint integration #1891
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
CASSGO-77: Add golangci-lint integration #1891
Conversation
6698573 to
c6fb2b2
Compare
47b1ec5 to
04987d0
Compare
|
I don't think it's a good idea to say something like "X is standard de facto in golang community" when advocating for a change because a lot of the times when I search online to determine whether this is true or not I'll find a lot of discussion around it and not really any consensus. In this particular case from what I'm reading it looks like Personally I'm fine with using |
What we can do here, is to replace |
Yeah that is a good approach 👍 |
2986fb8 to
e42f913
Compare
Done, please take a look. |
e42f913 to
58f655e
Compare
joao-r-reis
left a comment
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.
👍 can you squash commits and format the commit message like this? Then I'll merge
1. Switch to use golangci instead of govet 2. Enable all linters in govet, except fieldalingment 3. Run `make fix` to fix all the linting problems 4. Fix awaitSchemaAgreement bug found by linters when error is not returned Patch by dkropachev; reviewed by joao-r-reis for CASSGO-77
58f655e to
eae72a5
Compare
golangci-lintis standard de facto in golang community.Using will help with:
govet/fieldalignmentstands out from rest of the linters, it will help to define structures in a way that will make them occupy less memory and provide better productivty as result.