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

Function GetRule

registry/registry.go:30–32  ·  view source on GitHub ↗

GetRule returns the Rule registered under name, and whether it was found.

(name string)

Source from the content-addressed store, hash-verified

28
29// GetRule returns the Rule registered under name, and whether it was found.
30func GetRule(name string) (lint.Rule, bool) {
31 return globalRegistry.GetRule(name)
32}
33
34// GetFormatter returns the Formatter registered under name, and whether it was found.
35func GetFormatter(name string) (lint.Formatter, bool) {

Callers 2

GetEnabledRulesFunction · 0.92
ValidateFunction · 0.92

Calls 1

GetRuleMethod · 0.45

Tested by

no test coverage detected