@@ -87,8 +87,8 @@ func TestSeverity_multiple(t *testing.T) {
87
87
{Path : "e_test.go" , Text : "testonly" , Linter : "testlinter" },
88
88
{Path : "e.go" , Text : "nontestonly" , Linter : "testlinter" },
89
89
{Path : "e_test.go" , Text : "nontestonly" , Linter : "testlinter" },
90
- {Path : filepath .Join ("testdata" , " exclude_rules.go" ), Line : 3 , Linter : "lll" },
91
- {Path : filepath .Join ("testdata" , " severity_rules.go" ), Line : 3 , Linter : "invalidgo" },
90
+ {Path : filepath .FromSlash ("testdata/severity/ exclude_rules.go" ), Line : 3 , Linter : "lll" },
91
+ {Path : filepath .FromSlash ("testdata/severity/ severity_rules.go" ), Line : 3 , Linter : "invalidgo" },
92
92
{Path : "someotherlinter.go" , Text : "someotherlinter" , Linter : "someotherlinter" },
93
93
{Path : "somenotmatchlinter.go" , Text : "somenotmatchlinter" , Linter : "somenotmatchlinter" },
94
94
{Path : "empty.go" , Text : "empty" , Linter : "empty" },
@@ -118,8 +118,8 @@ func TestSeverity_multiple(t *testing.T) {
118
118
{Path : "e_test.go" , Text : "testonly" , Linter : "testlinter" , Severity : "info" },
119
119
{Path : "e.go" , Text : "nontestonly" , Linter : "testlinter" , Severity : "info" }, // matched
120
120
{Path : "e_test.go" , Text : "nontestonly" , Linter : "testlinter" , Severity : "error" }, // not matched
121
- {Path : filepath .Join ("testdata" , " exclude_rules.go" ), Line : 3 , Linter : "lll" , Severity : "error" },
122
- {Path : filepath .Join ("testdata" , " severity_rules.go" ), Line : 3 , Linter : "invalidgo" , Severity : "info" },
121
+ {Path : filepath .FromSlash ("testdata/severity/ exclude_rules.go" ), Line : 3 , Linter : "lll" , Severity : "error" },
122
+ {Path : filepath .FromSlash ("testdata/severity/ severity_rules.go" ), Line : 3 , Linter : "invalidgo" , Severity : "info" },
123
123
{Path : "someotherlinter.go" , Text : "someotherlinter" , Linter : "someotherlinter" , Severity : "info" },
124
124
{Path : "somenotmatchlinter.go" , Text : "somenotmatchlinter" , Linter : "somenotmatchlinter" , Severity : "error" },
125
125
{Path : "empty.go" , Text : "empty" , Linter : "empty" , Severity : "error" },
0 commit comments