another group of fixes after running on golang source code

This commit is contained in:
golangci 2018-05-08 18:08:28 +03:00
parent d993d3a264
commit 07ddc548dc
8 changed files with 152 additions and 13 deletions

View file

@ -29,3 +29,14 @@ func TestNolint(t *testing.T) {
processAssertSame(t, p, newNolintFileIssue(1, "golint"))
}
func TestNoIssuesInAutogeneratedFile(t *testing.T) {
i := result.Issue{
Pos: token.Position{
Filename: filepath.Join("testdata", "nolint_autogenerated.go"),
Line: 4,
},
}
p := NewNolint(token.NewFileSet())
processAssertEmpty(t, p, i)
}