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

Method GetSeverity

lint/config.go:70–76  ·  view source on GitHub ↗

GetSeverity returns Severity for given ruleName

(ruleName string)

Source from the content-addressed store, hash-verified

68
69// GetSeverity returns Severity for given ruleName
70func (c *Config) GetSeverity(ruleName string) Severity {
71 s, ok := c.Severity.Rules[ruleName]
72 if ok {
73 return s
74 }
75 return c.Severity.Default
76}

Callers 1

LintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected