Skip to content

Commit efce60b

Browse files
committed
Bump golangci/golangci-lint-action from 6 to 8
All lint-actions after 6 require you to use lint version 2+. Pulled the 2.1 version of golangci-lint Ran 'golangci-lint migrate'
1 parent 86d627e commit efce60b

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

.github/workflows/golangci-lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
env:
1414
GO_VERSION: v1.23.6
15-
GOLANGCI_LINT_VERSION: v1.60.1
15+
GOLANGCI_LINT_VERSION: v2.1
1616

1717
jobs:
1818
golangci:
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
go-version: ${{ env.GO_VERSION }}
2626
- name: golangci-lint
27-
uses: golangci/golangci-lint-action@v6
27+
uses: golangci/golangci-lint-action@v8
2828
with:
2929
version: ${{ env.GOLANGCI_LINT_VERSION }}
3030
args: --verbose

.golangci.yaml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,37 @@
1-
run:
2-
timeout: 5m
1+
version: "2"
32
linters:
4-
disable-all: true
3+
default: none
54
enable:
6-
- gofmt
7-
- revive
8-
- gosec
9-
- govet
10-
- unused
5+
- gosec
6+
- govet
7+
- revive
8+
- unused
9+
exclusions:
10+
generated: lax
11+
presets:
12+
- comments
13+
- common-false-positives
14+
- legacy
15+
- std-error-handling
16+
rules:
17+
- linters:
18+
- gosec
19+
path: _test\.go
20+
- linters:
21+
- gosec
22+
path: ^tests/
23+
paths:
24+
- third_party$
25+
- builtin$
26+
- examples$
1127
issues:
1228
fix: true
13-
exclude-rules:
14-
# Don't run security checks on test files
15-
- path: _test\.go
16-
linters:
17-
- gosec
18-
- path: ^tests/
19-
linters:
20-
- gosec
29+
formatters:
30+
enable:
31+
- gofmt
32+
exclusions:
33+
generated: lax
34+
paths:
35+
- third_party$
36+
- builtin$
37+
- examples$

0 commit comments

Comments
 (0)