Skip to content

Commit 279db92

Browse files
authored
Merge pull request tinkerbell#28 from tstromberg/up-linter
Update golangci-lint to v1.42.1, enable errname
2 parents ddbbce2 + 57b2ff2 commit 279db92

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.golangci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ linters:
107107
- dupl
108108
- durationcheck
109109
- errcheck
110-
# errname is only available in golangci-lint v1.42.0+ - wait until v1.43 is available to settle
111-
# - errname
110+
- errname
112111
- errorlint
113112
- exhaustive
114113
- exportloopref

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# BEGIN: lint-install .
33
# http://github.com/tinkerbell/lint-install
44

5-
GOLINT_VERSION ?= v1.42.0
5+
GOLINT_VERSION ?= v1.42.1
66
HADOLINT_VERSION ?= v2.7.0
77
SHELLCHECK_VERSION ?= v0.7.2
88
YAMLLINT_VERSION ?= 1.26.3

Makefile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# BEGIN: lint-install {{.Args}}
33
# http://github.com/tinkerbell/lint-install
44

5-
{{ if .Go }}GOLINT_VERSION ?= v1.42.0{{ end }}
5+
{{ if .Go }}GOLINT_VERSION ?= v1.42.1{{ end }}
66
{{ if .Dockerfile}}HADOLINT_VERSION ?= v2.7.0{{ end }}
77
{{ if .Shell}}SHELLCHECK_VERSION ?= v0.7.2{{ end }}
88
{{ if .YAML}}YAMLLINT_VERSION ?= 1.26.3{{ end }}

0 commit comments

Comments
 (0)