Merge PR #5111: Add linters from new golangci version

This commit is contained in:
Marko 2019-09-30 16:06:07 -07:00 committed by Alexander Bezobchuk
parent 8e3f967c3f
commit cf06d3d7df
2 changed files with 10 additions and 1 deletions

View File

@ -16,6 +16,8 @@ linters:
- scopelint - scopelint
- varcheck - varcheck
- godox - godox
- funlen
- whitespace
issues: issues:
exclude-rules: exclude-rules:
@ -28,3 +30,10 @@ issues:
- text: "don't use an underscore in package name" - text: "don't use an underscore in package name"
linters: linters:
- golint - golint
- text: "ST1003:"
linters:
- stylecheck
linters-settings:
dogsled:
max-blank-identifiers: 3

View File

@ -91,7 +91,7 @@ func TestLogContext(t *testing.T) {
require.Equal(t, *logger.logs, []string{"debug", "info", "error"}) require.Equal(t, *logger.logs, []string{"debug", "info", "error"})
} }
type dummy int64 type dummy int64 //nolint: unused
func (d dummy) Clone() interface{} { func (d dummy) Clone() interface{} {
return d return d