File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments