Skip to content

Commit 55d2288

Browse files
neildTatiana Bradley
authored and
Tatiana Bradley
committed
internal/report: remove lint check for modules entry in excluded reports
Change-Id: I13bfa06528ec50a022862e4f2eaf5c6f4a7a5005 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/433437 Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Tatiana Bradley <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 6e322a3 commit 55d2288

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/report/lint.go

-3
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,6 @@ func (r *Report) Lint(filename string) []string {
385385
} else if !slices.Contains(ExcludedReasons, r.Excluded) {
386386
addIssue(fmt.Sprintf("excluded (%q) is not in set %v", r.Excluded, ExcludedReasons))
387387
}
388-
if len(r.Modules) != 0 {
389-
addIssue("excluded report should not have modules")
390-
}
391388
if len(r.CVEs) == 0 && len(r.GHSAs) == 0 {
392389
addIssue("excluded report must have at least one associated CVE or GHSA")
393390
}

0 commit comments

Comments
 (0)