mirror of https://github.com/knative/func.git
Migrate golangci-lint config to v2 (#2781)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
This commit is contained in:
parent
b67d8d4405
commit
c12828fd08
|
@ -1,22 +1,17 @@
|
||||||
#
|
version: "2"
|
||||||
# golangci-lint
|
|
||||||
#
|
|
||||||
# For defaults, see:
|
|
||||||
# https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
run:
|
|
||||||
timeout: 5m
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- unconvert
|
- unconvert
|
||||||
- prealloc
|
- prealloc
|
||||||
- bodyclose
|
- bodyclose
|
||||||
|
exclusions:
|
||||||
issues:
|
generated: lax
|
||||||
exclude-rules:
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
rules:
|
||||||
- linters:
|
- linters:
|
||||||
- staticcheck
|
- staticcheck
|
||||||
# Error Text:
|
# Error Text:
|
||||||
|
@ -28,4 +23,15 @@ issues:
|
||||||
# Name Type = "value"
|
# Name Type = "value"
|
||||||
# Name2 = "value2"
|
# Name2 = "value2"
|
||||||
# )
|
# )
|
||||||
text: "SA9004:"
|
text: 'SA9004:'
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
formatters:
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|
Loading…
Reference in New Issue