-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
errcheck: allow exclude config without extra file #2110
Conversation
One of the challenges in standardizing on a golangci-lint configuration is that if we want to configure `errcheck`, it requires two separate files to configure: the golangci config file, plus a separate errcheck excludes file. In particular, copying golangci-lint configs across projects often fails, as a reference to an exclude file at a particular file will not resolve. While this config does not add any new functionality, it allows the entirety of the errcheck configuration to be done inside the golangci-lint config file itself.
Thanks for the quick feedback, all comments addressed! Not sure if there's anything I need to do to get the pipeline to pass. It's failing on a |
Hey, @rliebz — we just merged your PR to
By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests. Thanks again! |
@rliebz great to see this just land in |
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
One of the challenges in standardizing on a golangci-lint configuration is that if we want to configure
errcheck
, it requires two separate files to configure: the golangci config file, plus a separate errcheck excludes file.In particular, copying golangci-lint configs across projects often fails, as a reference to an exclude file at a particular file will not resolve.
While this config does not add any new functionality, it allows the entirety of the errcheck configuration to be done inside the
golangci-lint config file itself.
https://github.com/kisielk/errcheck#excluding-functions