mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
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:
parent
4a3e9fd2bb
commit
909f628d75
51 changed files with 766 additions and 63 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue