Skip to content
Merged
Prev Previous commit
Next Next commit
tests: fix configuration
  • Loading branch information
ldez committed Jun 28, 2025
commit 17c167b7d51de13885520847c590ce4fd28fb946
4 changes: 2 additions & 2 deletions pkg/golinters/wsl/testdata/wsl_v5_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ package testdata

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

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

_ = x
}
12 changes: 6 additions & 6 deletions pkg/golinters/wsl/testdata/wsl_v5_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ version: "2"

linters:
settings:
wsl_v5:
allow-first-in-block: true
allow-whole-block: false
branch-max-lines: 2
case-max-lines: 0
default: all
wsl_v5:
allow-first-in-block: true
allow-whole-block: false
branch-max-lines: 2
case-max-lines: 0
default: all
Loading