Skip to content

Commit af561b5

Browse files
committed
golangci-lint update to v1.50.0, disable deprecated linters
Signed-off-by: Thomas Stromberg <[email protected]>
1 parent 8391cab commit af561b5

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.golangci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ linters:
106106
- asciicheck
107107
- bodyclose
108108
- cyclop
109-
- deadcode
110109
- dogsled
111110
- dupl
112111
- durationcheck
@@ -128,7 +127,6 @@ linters:
128127
- goprintffuncname
129128
- gosimple
130129
- govet
131-
- ifshort
132130
- importas
133131
- ineffassign
134132
- makezero
@@ -142,19 +140,18 @@ linters:
142140
# disabling for the initial iteration of the linting tool
143141
# - promlinter
144142
- revive
145-
- rowserrcheck
146-
- sqlclosecheck
143+
# - rowserrcheck - disabled because of generics, https://github.com/golangci/golangci-lint/issues/2649
144+
# - sqlclosecheck - disabled because of generics, https://github.com/golangci/golangci-lint/issues/2649
147145
- staticcheck
148-
- structcheck
146+
# - structcheck - disabled because of generics, https://github.com/golangci/golangci-lint/issues/2649
149147
- stylecheck
150148
- thelper
151149
- tparallel
152150
- typecheck
153151
- unconvert
154152
- unparam
155153
- unused
156-
- varcheck
157-
- wastedassign
154+
# - wastedassign - disabled because of generics, https://github.com/golangci/golangci-lint/issues/2649
158155
- whitespace
159156

160157
# Disabled linters, due to being misaligned with Go practices

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ hadolint-lint: $(HADOLINT_BIN)
5454
$(HADOLINT_BIN) $(shell find . -name "*Dockerfile")
5555

5656
GOLANGCI_LINT_CONFIG := $(LINT_ROOT)/.golangci.yml
57-
GOLANGCI_LINT_VERSION ?= v1.47.2
57+
GOLANGCI_LINT_VERSION ?= v1.50.0
5858
GOLANGCI_LINT_BIN := $(LINT_ROOT)/out/linters/golangci-lint-$(GOLANGCI_LINT_VERSION)-$(LINT_ARCH)
5959
$(GOLANGCI_LINT_BIN):
6060
mkdir -p $(LINT_ROOT)/out/linters

Makefile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ hadolint-lint: $(HADOLINT_BIN)
6161

6262
{{ if .Go -}}
6363
GOLANGCI_LINT_CONFIG := $(LINT_ROOT)/.golangci.yml
64-
GOLANGCI_LINT_VERSION ?= v1.47.2
64+
GOLANGCI_LINT_VERSION ?= v1.50.0
6565
GOLANGCI_LINT_BIN := $(LINT_ROOT)/out/linters/golangci-lint-$(GOLANGCI_LINT_VERSION)-$(LINT_ARCH)
6666
$(GOLANGCI_LINT_BIN):
6767
mkdir -p $(LINT_ROOT)/out/linters

0 commit comments

Comments
 (0)