MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / EffectiveIgnorePatterns

Method EffectiveIgnorePatterns

lint/config.go:54–62  ·  view source on GitHub ↗

EffectiveIgnorePatterns returns the combined list of patterns the linter should use. If DisableDefaultIgnores is true, only user-defined patterns are returned.

()

Source from the content-addressed store, hash-verified

52// EffectiveIgnorePatterns returns the combined list of patterns the linter should use.
53// If DisableDefaultIgnores is true, only user-defined patterns are returned.
54func (c *Config) EffectiveIgnorePatterns() []string {
55 if c.DisableDefaultIgnores {
56 return c.IgnorePatterns
57 }
58 combined := make([]string, 0, len(c.DefaultIgnorePatterns)+len(c.IgnorePatterns))
59 combined = append(combined, c.DefaultIgnorePatterns...)
60 combined = append(combined, c.IgnorePatterns...)
61 return combined
62}
63
64// GetRule returns RuleConfig for given rule name
65func (c *Config) GetRule(ruleName string) RuleSetting {

Callers 4

NewFunction · 0.80
ValidateFunction · 0.80

Calls

no outgoing calls