Add linter for nolint

Linter can check that nolint statements are properly formatted and also that all
nolint statements are used.
This commit is contained in:
Andrew Shannon Brown 2020-04-26 19:30:14 -07:00
commit 909f628d75
51 changed files with 766 additions and 63 deletions

View file

@ -73,7 +73,7 @@ func NewGosec() *goanalysis.Linter {
continue
}
res = append(res, goanalysis.NewIssue(&result.Issue{ //nolint:scopelint
res = append(res, goanalysis.NewIssue(&result.Issue{
Pos: token.Position{
Filename: i.File,
Line: line,