Skip to content

Commit 4712846

Browse files
committed
fix: update golangci-lint config for v2 compatibility
1 parent 8586245 commit 4712846

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

.golangci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2
1+
version: "2"
22

33
linters:
44
enable:
@@ -11,16 +11,11 @@ linters:
1111
- exhaustive
1212
- makezero
1313
- nakedret
14-
# - goconst # TODO: enable and fix issues
15-
fast: false
16-
17-
linters-settings:
18-
exhaustive:
19-
default-signifies-exhaustive: true
20-
21-
nakedret:
22-
# the gods will judge me but I just don't like naked returns at all
23-
max-func-lines: 0
14+
settings:
15+
exhaustive:
16+
default-signifies-exhaustive: true
17+
nakedret:
18+
max-func-lines: 0
2419

2520
run:
2621
go: '1.21'

0 commit comments

Comments
 (0)