mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
another group of fixes after running on golang source code
This commit is contained in:
parent
d993d3a264
commit
07ddc548dc
8 changed files with 152 additions and 13 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue