You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ignore.go
    path of file: ./repos/grype/grype/match
    
    the code of the file until where you have to start completion: package match

import (
	"github.com/bmatcuk/doublestar/v2"
)

// An IgnoredMatch is a vulnerability M
    
func shouldIgnore(match Match, rule IgnoreRule) bool {
	// VEX rules are handled by the vex processor
	if rule.VexStatus != "" {
		return false
	}

	ignoreConditions := getIgnoreConditionsForRule(rule)
	if len(ignoreConditions) == 0 {
		// this rule specifies no criteria, so it doesn't apply to the Match
		return false
	}

	for _, condition := range ignoreConditions {
		if !condition(match) {
			// as soon as one rule criterion doesn't apply, we know this rule doesn't apply to the Match
			return false
		}
	}

	// all criteria specified in the rule apply to this Match
	return true
}