You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "dkropachev (via GitHub)" <gi...@apache.org> on 2025/05/31 14:54:48 UTC
[PR] Switch to golangci instead of govet [cassandra-gocql-driver]
dkropachev opened a new pull request, #1891:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1891
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSGO-77: Add golangci-lint integration [cassandra-gocql-driver]
Posted by "joao-r-reis (via GitHub)" <gi...@apache.org>.
joao-r-reis merged PR #1891:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1891
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSGO-77: Switch to golangci instead of govet [cassandra-gocql-driver]
Posted by "joao-r-reis (via GitHub)" <gi...@apache.org>.
joao-r-reis commented on PR #1891:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1891#issuecomment-2931122539
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 `golangci-lint` is just a way of running multiple linters so you could just add `golanci-lint` and run the `go vet` linter through `golanci-lint`. Instead what this PR is doing is adding a bunch of more linters instead of just `go vet` in addition to adding `golangci-lint` integration.
Personally I'm fine with using `golangci-lint` but I think the current list of linters that you have is way too large and as a result the diff is huge. This will cause all existing open PRs to have giant conflicts and personally I don't think it's worth the hassle. Also it will probably make it very frustrating to contribute to the driver because how harsh the linter checks are. Maybe you can try running `golangci-lint` with the default linters only and see if it's a good compromise.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSGO-77: Switch to golangci instead of govet [cassandra-gocql-driver]
Posted by "dkropachev (via GitHub)" <gi...@apache.org>.
dkropachev commented on PR #1891:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1891#issuecomment-2933309112
> > What we can do here, is to replace govet with golangci with minimal changes, and later on add more linters in a separate PRs, advocating for each of them separately.
>
> Yeah that is a good approach 👍
Done, please take a look.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSGO-77: Switch to golangci instead of govet [cassandra-gocql-driver]
Posted by "dkropachev (via GitHub)" <gi...@apache.org>.
dkropachev commented on PR #1891:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1891#issuecomment-2931173040
> 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 `golangci-lint` is just a way of running multiple linters so you could just add `golanci-lint` and run the `go vet` linter through `golanci-lint`. Instead what this PR is doing is adding a bunch of more linters instead of just `go vet` in addition to adding `golangci-lint` integration.
>
> Personally I'm fine with using `golangci-lint` but I think the current list of linters that you have is way too large and as a result the diff is huge. This will cause all existing open PRs to have giant conflicts and personally I don't think it's worth the hassle. Also it will probably make it very frustrating to contribute to the driver because how harsh the linter checks are. Maybe you can try running `golangci-lint` with the default linters only and see if it's a good compromise.
What we can do here, is to replace `govet` with `golangci` with minimal changes, and later on add more linters in a separate PRs, advocating for each of them separately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSGO-77: Switch to golangci instead of govet [cassandra-gocql-driver]
Posted by "joao-r-reis (via GitHub)" <gi...@apache.org>.
joao-r-reis commented on PR #1891:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1891#issuecomment-2931196981
> What we can do here, is to replace govet with golangci with minimal changes, and later on add more linters in a separate PRs, advocating for each of them separately.
Yeah that is a good approach 👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org