Skip to content

Commit fd531a7

Browse files
Update golangci lint to v2 (#1972)
* chore: migrate golangcilint to v2 config Signed-off-by: Tyler Auerbeck <[email protected]> * chore: update golangci-lint version in build workflow Signed-off-by: Tyler Auerbeck <[email protected]> * bump golagci-lint action to v8 Signed-off-by: Tyler Auerbeck <[email protected]> --------- Signed-off-by: Tyler Auerbeck <[email protected]> Co-authored-by: Tyler Auerbeck <[email protected]>
1 parent 295b5e6 commit fd531a7

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- name: yaml-lint
3333
uses: ibiqlik/action-yamllint@v3
3434
- name: Setup golangci-lint
35-
uses: golangci/golangci-lint-action@v6
35+
uses: golangci/golangci-lint-action@v8
3636
with:
37-
version: v1.64
37+
version: v2.5.0
3838
args: --verbose --timeout 2m
3939
unit:
4040
name: Unit tests

.golangci.yaml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
1-
---
1+
version: "2"
22
linters:
3-
disable-all: true
3+
default: none
44
enable:
55
- gocyclo
6-
- gofmt
7-
- goimports
86
- govet
97
- misspell
10-
- typecheck
8+
exclusions:
9+
generated: lax
10+
presets:
11+
- comments
12+
- common-false-positives
13+
- legacy
14+
- std-error-handling
15+
paths:
16+
- third_party$
17+
- builtin$
18+
- examples$
19+
formatters:
20+
enable:
21+
- gofmt
22+
- goimports
23+
exclusions:
24+
generated: lax
25+
paths:
26+
- third_party$
27+
- builtin$
28+
- examples$

0 commit comments

Comments
 (0)