github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/internal/linter/config/ignores.go (about)

     1  package config
     2  
     3  // Ignores represents list about files ignoring the specific rule.
     4  type Ignores []Ignore
     5  
     6  func (is Ignores) shouldSkipRule(
     7  	ruleID string,
     8  	displayPath string,
     9  ) bool {
    10  	for _, ignore := range is {
    11  		if ignore.shouldSkipRule(ruleID, displayPath) {
    12  			return true
    13  		}
    14  	}
    15  	return false
    16  }