Skip to content

Commit 4f64086

Browse files
authored
chore: upgrade golangci-lint from v1.64.8 to v2.1.6 and the related action from v6 to v8 (#1160)
Signed-off-by: Christopher Coco <[email protected]>
1 parent 338bc33 commit 4f64086

File tree

2 files changed

+48
-16
lines changed

2 files changed

+48
-16
lines changed

.github/workflows/ci-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ jobs:
6767
env:
6868
GO111MODULE: off
6969
- name: Run golangci-lint
70-
uses: golangci/golangci-lint-action@v6
70+
uses: golangci/golangci-lint-action@v8
7171
with:
72-
version: v1.64.8
72+
version: v2.1.6
7373
args: --timeout 5m
7474
test:
7575
name: Ensure unit tests are passing

.golangci.yml

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,51 @@
1-
run:
2-
timeout: 2m
1+
version: "2"
32
linters:
43
enable:
5-
- gofmt
6-
- govet
7-
- goimports
8-
- ineffassign
94
- misspell
105
- unconvert
6+
- ineffassign
117
- unused
12-
linters-settings:
13-
goimports:
14-
local-prefixes: github.com/argoproj-labs/argocd-image-updater
15-
issues:
16-
exclude-files:
17-
- ".*\\.pb\\.go"
18-
exclude-dirs:
19-
- vendor/
8+
- govet
9+
exclusions:
10+
generated: lax
11+
presets:
12+
- comments
13+
- common-false-positives
14+
- legacy
15+
- std-error-handling
16+
paths:
17+
- .*\.pb\.go
18+
- vendor/
19+
- third_party$
20+
- builtin$
21+
- examples$
22+
settings:
23+
staticcheck:
24+
checks:
25+
- all
26+
- '-QF1003'
27+
- '-QF1008'
28+
- '-QF1011'
29+
- '-QF1012'
30+
- '-ST1003'
31+
- '-ST1005'
32+
- '-ST1016'
33+
- '-ST1023'
34+
formatters:
35+
enable:
36+
- gofmt
37+
- goimports
38+
settings:
39+
goimports:
40+
local-prefixes:
41+
- github.com/argoproj-labs/argocd-image-updater
42+
exclusions:
43+
generated: lax
44+
paths:
45+
- .*\.pb\.go
46+
- vendor/
47+
- third_party$
48+
- builtin$
49+
- examples$
50+
run:
51+
timeout: 5m

0 commit comments

Comments
 (0)