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

Method GetRule

registry/registry.go:158–164  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

156}
157
158func (reg *registry) GetRule(name string) (lint.Rule, bool) {
159 reg.mut.Lock()
160 defer reg.mut.Unlock()
161
162 cRule, ok := reg.allRules[name]
163 return cRule, ok
164}
165
166func (reg *registry) GetFormatter(name string) (lint.Formatter, bool) {
167 reg.mut.Lock()

Callers 1

GetRuleFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected