We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 353dc75 commit 89f96b7Copy full SHA for 89f96b7
pkg/golinters/wsl.go
@@ -29,6 +29,7 @@ func NewWSL(settings *config.WSLSettings) *goanalysis.Linter {
29
}
30
31
a := wsl.NewAnalyzer(conf)
32
+
33
return goanalysis.NewLinter(
34
a.Name,
35
a.Doc,
test/run_test.go
@@ -266,6 +266,16 @@ func TestLineDirective(t *testing.T) {
266
targetPath: "linedirective",
267
expected: "is a misspelling of `language` (misspell)",
268
},
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
279
280
281
for _, test := range testCases {
0 commit comments