Merge PR #5111: Add linters from new golangci version
This commit is contained in:
parent
8e3f967c3f
commit
cf06d3d7df
|
@ -16,6 +16,8 @@ linters:
|
|||
- scopelint
|
||||
- varcheck
|
||||
- godox
|
||||
- funlen
|
||||
- whitespace
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
|
@ -28,3 +30,10 @@ issues:
|
|||
- text: "don't use an underscore in package name"
|
||||
linters:
|
||||
- golint
|
||||
- text: "ST1003:"
|
||||
linters:
|
||||
- stylecheck
|
||||
|
||||
linters-settings:
|
||||
dogsled:
|
||||
max-blank-identifiers: 3
|
||||
|
|
|
@ -91,7 +91,7 @@ func TestLogContext(t *testing.T) {
|
|||
require.Equal(t, *logger.logs, []string{"debug", "info", "error"})
|
||||
}
|
||||
|
||||
type dummy int64
|
||||
type dummy int64 //nolint: unused
|
||||
|
||||
func (d dummy) Clone() interface{} {
|
||||
return d
|
||||
|
|
Loading…
Reference in New Issue