444d053e12
Removing the "structcheck" and "varcheck" linters as they've been deprecated.
level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit dec03ea3d8
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
33 lines
718 B
YAML
33 lines
718 B
YAML
linters:
|
|
enable:
|
|
- staticcheck
|
|
- unconvert
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- ineffassign
|
|
- vet
|
|
- unused
|
|
- misspell
|
|
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
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# io/ioutil is deprecated, but won't be removed until Go v2. It's safe to ignore for the release/2.8 branch.
|
|
- text: "SA1019: \"io/ioutil\" has been deprecated since Go 1.16"
|
|
linters:
|
|
- staticcheck
|