Skip to content

Commit

Permalink
update golangci-lint to v1.52
Browse files Browse the repository at this point in the history
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 dec03ea)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Sep 11, 2023
1 parent b800af4 commit 444d053
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
linters:
enable:
- structcheck
- varcheck
- staticcheck
- unconvert
- gofmt
Expand All @@ -14,6 +12,14 @@ linters:
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:
Expand Down
2 changes: 1 addition & 1 deletion script/setup/install-dev-tools
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

GOLANGCI_LINT_VERSION="v1.50.1"
GOLANGCI_LINT_VERSION="v1.52.0"

#
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
Expand Down

0 comments on commit 444d053

Please sign in to comment.