mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-01-31 13:53:14 +08:00
refactor: add generic Set implementation (#8149)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -30,3 +30,8 @@ func errorsJoin(m dsl.Matcher) {
|
||||
m.Match(`errors.Join($*args)`).
|
||||
Report("use github.com/hashicorp/go-multierror.Append instead of errors.Join.")
|
||||
}
|
||||
|
||||
func mapSet(m dsl.Matcher) {
|
||||
m.Match(`map[$x]struct{}`).
|
||||
Report("use github.com/aquasecurity/trivy/pkg/set.Set instead of map.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user