Skip to content

Commit c0f8599

Browse files
authored
Switch to golangci-lint v2 (#113)
1 parent 16c5319 commit c0f8599

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
cache: true
2323

2424
- name: Lint
25-
uses: golangci/golangci-lint-action@v6
25+
uses: golangci/golangci-lint-action@v7
2626
with:
27-
version: v1.64.8
27+
version: v2.3.0
2828
args: --issues-exit-code=0
2929
only-new-issues: true

.golangci.yaml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,47 @@
1-
---
1+
version: "2"
22
linters:
3-
disable-all: true
3+
default: none
44
enable:
5-
# fast, autofix
6-
- dupword
7-
- godot
8-
- gofumpt
9-
- goimports
10-
- whitespace
11-
12-
# fast, nofix
135
- dupl
14-
- gci
15-
- ineffassign
16-
17-
# slow, nofix
6+
- dupword
187
- err113
198
- errcheck
209
- errname
2110
- errorlint
22-
- gosimple
11+
- godot
12+
- gosec
2313
- govet
14+
- ineffassign
2415
- nonamedreturns
2516
- revive
2617
- staticcheck
27-
- typecheck
18+
- tparallel
2819
- unconvert
2920
- unused
3021
- usetesting
22+
- whitespace
3123
- wrapcheck
32-
33-
# Undecided
34-
- tparallel
35-
- gosec
36-
37-
issues:
38-
exclude-dirs:
39-
- src/mockaws
24+
exclusions:
25+
generated: lax
26+
presets:
27+
- comments
28+
- common-false-positives
29+
- legacy
30+
- std-error-handling
31+
paths:
32+
- src/mockaws
33+
- third_party$
34+
- builtin$
35+
- examples$
36+
formatters:
37+
enable:
38+
- gci
39+
- gofumpt
40+
- goimports
41+
exclusions:
42+
generated: lax
43+
paths:
44+
- src/mockaws
45+
- third_party$
46+
- builtin$
47+
- examples$

0 commit comments

Comments
 (0)