Skip to content

Commit 89f96b7

Browse files
committed
review
1 parent 353dc75 commit 89f96b7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

pkg/golinters/wsl.go

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func NewWSL(settings *config.WSLSettings) *goanalysis.Linter {
2929
}
3030

3131
a := wsl.NewAnalyzer(conf)
32+
3233
return goanalysis.NewLinter(
3334
a.Name,
3435
a.Doc,

test/run_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,16 @@ func TestLineDirective(t *testing.T) {
266266
targetPath: "linedirective",
267267
expected: "is a misspelling of `language` (misspell)",
268268
},
269+
{
270+
desc: "wsl",
271+
args: []string{
272+
"-Ewsl",
273+
"--disable-all",
274+
},
275+
configPath: "",
276+
targetPath: "linedirective",
277+
expected: "block should not start with a whitespace (wsl)",
278+
},
269279
}
270280

271281
for _, test := range testCases {

0 commit comments

Comments
 (0)