Skip to content

Commit 90f5485

Browse files
committed
chore(linter): add whitespace linter wsl_v5
1 parent edde8d8 commit 90f5485

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎golang-ci.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ linters:
1515
- revive
1616
- sqlclosecheck
1717
- wastedassign
18+
- wsl_v5
1819
disable:
1920
- noctx # false positive: finds errors with http.NewRequest that dont make sense
2021
- unparam # false positives
@@ -39,7 +40,7 @@ linters:
3940
- experimental
4041
gosec:
4142
excludes:
42-
# Suppressions: (see https://github.com/securego/gosec#available-rules for details)
43+
# Suppressions: (see https://github.com/securego/gosec#available-rules for details)
4344
- G104 # "Audit errors not checked" -> which we don't need and is a badly implemented version of errcheck
4445
- G102 # "Bind to all interfaces" -> since this is normal in k8s
4546
- G304 # "File path provided as taint input" -> too many false positives
@@ -66,6 +67,9 @@ linters:
6667
- name: atomic
6768
- name: empty-lines
6869
- name: early-return
70+
wsl_v5:
71+
allow-whole-block: true
72+
branch-max-lines: 4
6973
exclusions:
7074
generated: lax
7175
paths:

0 commit comments

Comments
 (0)