mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
Dockerfile: update golangci-lint to v2.5
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
+12
-20
@@ -1,31 +1,23 @@
|
|||||||
|
version: "2"
|
||||||
run:
|
run:
|
||||||
timeout: 10m
|
|
||||||
modules-download-mode: vendor
|
modules-download-mode: vendor
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
|
default: none
|
||||||
enable:
|
enable:
|
||||||
- gofmt
|
|
||||||
- govet
|
- govet
|
||||||
- depguard
|
|
||||||
- goimports
|
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- misspell
|
- misspell
|
||||||
- unused
|
|
||||||
- revive
|
- revive
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- typecheck
|
- unused
|
||||||
disable-all: true
|
settings:
|
||||||
|
revive:
|
||||||
|
rules:
|
||||||
|
- name: package-comments # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#package-comments
|
||||||
|
disabled: true
|
||||||
|
|
||||||
linters-settings:
|
formatters:
|
||||||
depguard:
|
enable:
|
||||||
rules:
|
- gofmt
|
||||||
main:
|
- goimports
|
||||||
deny:
|
|
||||||
- pkg: "io/ioutil"
|
|
||||||
desc: The io/ioutil package has been deprecated. See https://go.dev/doc/go1.16#ioutil
|
|
||||||
|
|
||||||
issues:
|
|
||||||
exclude-rules:
|
|
||||||
- linters:
|
|
||||||
- revive
|
|
||||||
text: "stutters"
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ ARG DEBIAN_VERSION=bookworm
|
|||||||
|
|
||||||
ARG XX_VERSION=1.6.1
|
ARG XX_VERSION=1.6.1
|
||||||
ARG OSXCROSS_VERSION=11.3-r7-debian
|
ARG OSXCROSS_VERSION=11.3-r7-debian
|
||||||
ARG GOLANGCI_LINT_VERSION=v1.64.5
|
ARG GOLANGCI_LINT_VERSION=v2.5
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
ARG PACKAGE=github.com/docker/docker-credential-helpers
|
ARG PACKAGE=github.com/docker/docker-credential-helpers
|
||||||
|
|||||||
Reference in New Issue
Block a user