Skip to content

Commit b340856

Browse files
committed
chore(lint): update golangci config to use wsl_v5
1 parent 631a407 commit b340856

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.golangci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ linters:
6767
- wastedassign
6868
- whitespace
6969
- wrapcheck
70-
- wsl
70+
- wsl_v5
7171
settings:
7272
gocritic:
7373
enabled-tags:
@@ -89,6 +89,10 @@ linters:
8989
- eg *errgroup.Group
9090
- sw *statuswriter.StatusWriter
9191
- db *bun.DB
92+
wsl_v5:
93+
allow-first-in-block: true
94+
allow-whole-block: false
95+
branch-max-lines: 2
9296
exclusions:
9397
generated: lax
9498
presets:

0 commit comments

Comments
 (0)