Skip to content

Commit d6bacfa

Browse files
committed
update golangci-lint to v1.62
Update config file for the new version, and removed some linters that were deprecated and removed; WARN The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. ERRO [linters_context] deadcode: This linter is fully inactivated: it will not produce any reports. ERRO [linters_context] varcheck: This linter is fully inactivated: it will not produce any reports. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 0094cf4 commit d6bacfa

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.golangci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ run:
33

44
linters:
55
enable:
6-
- deadcode
76
- depguard
87
- gofmt
98
- goimports
@@ -13,20 +12,18 @@ linters:
1312
- ineffassign
1413
- misspell
1514
- typecheck
16-
- varcheck
1715
- errname
1816
- makezero
1917
- whitespace
2018
disable-all: true
2119

2220
linters-settings:
2321
depguard:
24-
list-type: blacklist
25-
include-go-root: true
26-
packages:
27-
# The io/ioutil package has been deprecated.
28-
# https://go.dev/doc/go1.16#ioutil
29-
- io/ioutil
22+
rules:
23+
main:
24+
deny:
25+
- pkg: io/ioutil
26+
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
3027
importas:
3128
no-unaliased: true
3229

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
ARG GO_VERSION="1.18"
18-
ARG GOLANGCI_LINT_VERSION="v1.45"
18+
ARG GOLANGCI_LINT_VERSION="v1.62"
1919
ARG ADDLICENSE_VERSION="v1.0.0"
2020

2121
ARG LICENSE_ARGS="-c cli-docs-tool -l apache"

0 commit comments

Comments
 (0)