mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
59fd8656ac
This will give us nice little performance gains in some code paths. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
29 lines
503 B
YAML
29 lines
503 B
YAML
linters:
|
|
enable:
|
|
- staticcheck
|
|
- unconvert
|
|
- gofmt
|
|
- goimports
|
|
- revive
|
|
- ineffassign
|
|
- vet
|
|
- unused
|
|
- misspell
|
|
- bodyclose
|
|
- prealloc
|
|
disable:
|
|
- errcheck
|
|
|
|
linters-settings:
|
|
revive:
|
|
rules:
|
|
# TODO(thaJeztah): temporarily disabled the "unused-parameter" check.
|
|
# It produces many warnings, and some of those may need to be looked at.
|
|
- name: unused-parameter
|
|
disabled: true
|
|
|
|
run:
|
|
deadline: 2m
|
|
skip-dirs:
|
|
- vendor
|