fix: skip go.mod report inside autogenerated_exclude processor (#4663)
This commit is contained in:
parent
8fb9856ea9
commit
2b2fc8c966
@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"go/parser"
|
||||
"go/token"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
@ -57,6 +58,10 @@ func (p *AutogeneratedExclude) shouldPassIssue(issue *result.Issue) (bool, error
|
||||
return true, nil
|
||||
}
|
||||
|
||||
if filepath.Base(issue.FilePath()) == "go.mod" {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// The file is already known.
|
||||
fs := p.fileSummaryCache[issue.FilePath()]
|
||||
if fs != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user