Skip to content
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

Testing CI... #820

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Tweak golangci-lint: exclude Log statements from errcheck
  • Loading branch information
Koenraad Verheyden committed Jul 15, 2021
commit af26048e0d07278cc4f7be55a1416485e8d13790
3 changes: 3 additions & 0 deletions .errcheck-exclude.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// the following functions will be excluded from errcheck
// https://github.com/kisielk/errcheck#excluding-functions
(github.com/go-kit/kit/log.Logger).Log
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ linters:
- interfacer
- typecheck

linters-settings:
errcheck:
exclude: ./.errcheck-exclude.txt

issues:
exclude:
- Error return value of .*log\.Logger\)\.Log\x60 is not checked
Expand Down