Skip to content

Commit ae5a8e2

Browse files
ccoVeillesagikazarmark
authored andcommitted
ci: upgrade golangci-lint
1 parent 35c2854 commit ae5a8e2

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Lint
8181
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
8282
with:
83-
version: v2.1.6
83+
version: v2.4.0
8484

8585
dev:
8686
name: Developer environment

.golangci.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ linters:
2525
- nolintlint
2626
- prealloc
2727
- predeclared
28-
# - revive
28+
- revive
2929
- rowserrcheck
3030
- sqlclosecheck
3131
- staticcheck
@@ -75,8 +75,15 @@ linters:
7575
# - testpackage
7676
# - wsl
7777

78-
disable:
79-
- errcheck
78+
exclusions:
79+
rules:
80+
- linters:
81+
- errcheck
82+
- noctx
83+
path: _test.go
84+
presets:
85+
- comments
86+
- std-error-handling
8087

8188
settings:
8289
misspell:

0 commit comments

Comments
 (0)