Skip to content

Commit ff238bc

Browse files
renovate[bot]mtrmac
authored andcommitted
chore(deps): update dependency golangci/golangci-lint to v2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Miloslav Trmač <mitr@redhat.com>
1 parent 6b18993 commit ff238bc

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

.golangci.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
---
2-
run:
3-
concurrency: 6
4-
timeout: 5m
5-
1+
version: "2"
62
linters:
73
enable:
84
- errorlint
9-
10-
linters-settings:
11-
errorlint:
12-
# See https://golangci-lint.run/usage/linters/#errorlint.
13-
# Only allow warnings about not using %w.
14-
errorf-multi: false
15-
asserts: false
16-
comparison: false
5+
settings:
6+
errorlint:
7+
# See https://golangci-lint.run/usage/linters/#errorlint.
8+
# Only allow warnings about not using %w.
9+
errorf-multi: false
10+
asserts: false
11+
comparison: false
12+
staticcheck:
13+
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1005", "-QF1008"] # golangci-lint's default, we add -ST1005 and -QF1008
14+
exclusions:
15+
presets:
16+
- comments
17+
- common-false-positives
18+
- std-error-handling

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ REGISTRIESDDIR ?= ${CONTAINERSCONFDIR}/registries.d
3232
# N/B: This value is managed by Renovate, manual changes are
3333
# possible, as long as they don't disturb the formatting
3434
# (i.e. DO NOT ADD A 'v' prefix!)
35-
GOLANGCI_LINT_VERSION := 1.64.8
35+
GOLANGCI_LINT_VERSION := 2.0.0
3636

3737
export PATH := $(PATH):${GOBIN}
3838

0 commit comments

Comments
 (0)