Merge PR #5111: Add linters from new golangci version
This commit is contained in:
parent
8e3f967c3f
commit
cf06d3d7df
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue