Skip to content

Commit 3f4baa6

Browse files
committed
Add more linters
1 parent 57f7e26 commit 3f4baa6

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
- name: Checkout Repository
2929
uses: actions/checkout@v2
3030
- name: Lint Code
31-
uses: golangci/golangci-lint-action@v2.5.2
31+
uses: golangci/golangci-lint-action@v2
3232
with:
33-
args: --timeout ${{ env.GOLANGCI_TIMEOUT }} --issues-exit-code=0
33+
args: --timeout ${{ env.GOLANGCI_TIMEOUT }}

.golangci.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,32 @@ linters-settings:
44

55
linters:
66
enable:
7+
- asciicheck
8+
- deadcode
9+
- errcheck
10+
- errorlint
11+
- gofmt
12+
- gofumpt
713
- goimports
14+
- gosec
815
- gosimple
916
- govet
17+
- ineffassign
18+
- makezero
1019
- misspell
11-
- gofmt
12-
- unparam
13-
- unconvert
20+
- nilerr
21+
- noctx
22+
- predeclared
23+
- promlinter
24+
- staticcheck
1425
- structcheck
15-
- errcheck
26+
- typecheck
27+
- unconvert
28+
- unparam
29+
- unused
30+
- varcheck
31+
- wastedassign
1632
disable-all: true
17-
33+
issues:
34+
max-issues-per-linter: 0
35+
max-same-issues: 0

0 commit comments

Comments
 (0)