Skip to content

Commit 2d8a20a

Browse files
Merge pull request #97 from cerberauth/upgrade-golangci-lint
feat: upgrade golangci-lint
2 parents 88c1e36 + d227385 commit 2d8a20a

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
go-version: ${{ env.GO_VERSION }}
3131

3232
- name: Lint
33-
uses: golangci/golangci-lint-action@v6
33+
uses: golangci/golangci-lint-action@v7
3434

3535
- name: Build
3636
run: go build -v ./...

.golangci.yml

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
1+
version: "2"
12
linters:
23
enable:
3-
- errcheck
44
- goconst
55
- gocritic
6+
- gosec
7+
settings:
8+
gosec:
9+
excludes:
10+
- G101
11+
- G107
12+
exclusions:
13+
generated: lax
14+
presets:
15+
- comments
16+
- common-false-positives
17+
- legacy
18+
- std-error-handling
19+
paths:
20+
- .+_test.go
21+
- third_party$
22+
- builtin$
23+
- examples$
24+
formatters:
25+
enable:
626
- gofmt
727
- goimports
8-
- gosec
9-
- gosimple
10-
- govet
11-
- ineffassign
12-
- staticcheck
13-
- typecheck
14-
- unused
15-
16-
linters-settings:
17-
gosec:
18-
excludes:
19-
- G101
20-
- G107
21-
22-
issues:
23-
exclude-files:
24-
- ".+_test.go"
28+
exclusions:
29+
generated: lax
30+
paths:
31+
- .+_test.go
32+
- third_party$
33+
- builtin$
34+
- examples$

0 commit comments

Comments
 (0)