Skip to content

Commit b968ed6

Browse files
committed
Run linter
1 parent f4d0738 commit b968ed6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*.dll
88
*.so
99
*.dylib
10+
inamedparam
1011

1112
# Test binary, built with `go test -c`
1213
*.test

inamedparam.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
5454
continue
5555
}
5656

57-
// TODO: add test case to reproduce this. Help wanted.
57+
// Improvement: add test case to reproduce this. Help wanted.
5858
if len(method.Names) == 0 {
5959
continue
6060
}

inamedparam_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ func TestAnalyzerSkipSingleParam(t *testing.T) {
1919
testdata := testutil.WithModules(t, analysistest.TestData(), nil)
2020

2121
analyzer := inamedparam.Analyzer
22-
analyzer.Flags.Set("skip-single-param", "true")
22+
23+
err := analyzer.Flags.Set("skip-single-param", "true")
24+
if err != nil {
25+
t.Fatalf("failed to set skip-single-param flag: %v", err)
26+
}
2327

2428
analysistest.Run(t, testdata, analyzer, "params")
2529
}

0 commit comments

Comments
 (0)