Skip to content

Commit 11fd559

Browse files
committed
chore: fix golangci-lint warning
1 parent 1ea7ad4 commit 11fd559

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.golangci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ linters:
8888
- usetesting # Reports uses of functions with replacement inside the testing package. [auto-fix]
8989
- wastedassign # wastedassign finds wasted assignment statements. [fast: false, auto-fix: false]
9090
- whitespace # Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]
91-
- wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
91+
- wsl_v5 # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
9292
- zerologlint # Detects the wrong usage of `zerolog` that a user forgets to dispatch with `Send` or `Msg` [fast: false, auto-fix: false]
9393

9494
disable:
@@ -129,6 +129,11 @@ linters:
129129
reject:
130130
- anon
131131

132+
wsl_v5:
133+
allow-first-in-block: true
134+
allow-whole-block: false
135+
branch-max-lines: 2
136+
132137
exclusions:
133138
rules:
134139
- path: _test\.go

0 commit comments

Comments
 (0)