remove deprecated golangci-lint linters

Linters 'deadcode' and 'varcheck' are deprecated since v1.49.0
and had been replaced by 'unused'
This commit is contained in:
CrazyMax
2023-05-04 23:29:18 +02:00
parent e458e00217
commit e29ba8f703
2 changed files with 2 additions and 3 deletions

View File

@@ -7,7 +7,6 @@ run:
linters:
enable:
- deadcode
- depguard
- gofmt
- goimports
@@ -17,10 +16,10 @@ linters:
- ineffassign
- misspell
- typecheck
- varcheck
- errname
- makezero
- whitespace
- unused
disable-all: true
linters-settings:

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.20"
ARG GOLANGCI_LINT_VERSION="v1.48"
ARG GOLANGCI_LINT_VERSION="v1.51"
FROM golang:${GO_VERSION}-alpine AS base
ENV GOFLAGS="-buildvcs=false"