Skip to content

Commit 17c167b

Browse files
committed
tests: fix configuration
1 parent 03bb402 commit 17c167b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pkg/golinters/wsl/testdata/wsl_v5_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ package testdata
44

55
func fn1(s []string) {
66
a := "a"
7-
s = append(s, a)
7+
s = append(s, a) // want `missing whitespace above this line \(invalid statement above assign\)`
88

99
x := 1
10-
s = append(s, "s") // want `missing whitespace above this line \(no shared variables above append\)`
10+
s = append(s, "s") // want `missing whitespace above this line \(invalid statement above assign\)`
1111

1212
_ = x
1313
}

pkg/golinters/wsl/testdata/wsl_v5_config.yml

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

33
linters:
44
settings:
5-
wsl_v5:
6-
allow-first-in-block: true
7-
allow-whole-block: false
8-
branch-max-lines: 2
9-
case-max-lines: 0
10-
default: all
5+
wsl_v5:
6+
allow-first-in-block: true
7+
allow-whole-block: false
8+
branch-max-lines: 2
9+
case-max-lines: 0
10+
default: all

0 commit comments

Comments
 (0)