mirror of
https://github.com/containers/image.git
synced 2025-04-18 19:44:05 +03:00
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>
This commit is contained in:
parent
6b189934ad
commit
ff238bc950
@ -1,16 +1,18 @@
|
|||||||
---
|
version: "2"
|
||||||
run:
|
|
||||||
concurrency: 6
|
|
||||||
timeout: 5m
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- errorlint
|
- errorlint
|
||||||
|
settings:
|
||||||
linters-settings:
|
errorlint:
|
||||||
errorlint:
|
# See https://golangci-lint.run/usage/linters/#errorlint.
|
||||||
# See https://golangci-lint.run/usage/linters/#errorlint.
|
# Only allow warnings about not using %w.
|
||||||
# Only allow warnings about not using %w.
|
errorf-multi: false
|
||||||
errorf-multi: false
|
asserts: false
|
||||||
asserts: false
|
comparison: false
|
||||||
comparison: false
|
staticcheck:
|
||||||
|
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1005", "-QF1008"] # golangci-lint's default, we add -ST1005 and -QF1008
|
||||||
|
exclusions:
|
||||||
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- std-error-handling
|
||||||
|
2
Makefile
2
Makefile
@ -32,7 +32,7 @@ REGISTRIESDDIR ?= ${CONTAINERSCONFDIR}/registries.d
|
|||||||
# N/B: This value is managed by Renovate, manual changes are
|
# N/B: This value is managed by Renovate, manual changes are
|
||||||
# possible, as long as they don't disturb the formatting
|
# possible, as long as they don't disturb the formatting
|
||||||
# (i.e. DO NOT ADD A 'v' prefix!)
|
# (i.e. DO NOT ADD A 'v' prefix!)
|
||||||
GOLANGCI_LINT_VERSION := 1.64.8
|
GOLANGCI_LINT_VERSION := 2.0.0
|
||||||
|
|
||||||
export PATH := $(PATH):${GOBIN}
|
export PATH := $(PATH):${GOBIN}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user