MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / GetRule

Method GetRule

lint/config.go:65–67  ·  view source on GitHub ↗

GetRule returns RuleConfig for given rule name

(ruleName string)

Source from the content-addressed store, hash-verified

63
64// GetRule returns RuleConfig for given rule name
65func (c *Config) GetRule(ruleName string) RuleSetting {
66 return c.Settings[ruleName]
67}
68
69// GetSeverity returns Severity for given ruleName
70func (c *Config) GetSeverity(ruleName string) Severity {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected