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

Method runRule

lint/linter.go:133–142  ·  view source on GitHub ↗
(rule Rule, severity Severity, msg Commit)

Source from the content-addressed store, hash-verified

131}
132
133func (l *Linter) runRule(rule Rule, severity Severity, msg Commit) (*Issue, bool) {
134 issue, isValid := rule.Validate(msg)
135 if isValid {
136 return nil, true
137 }
138
139 issue.ruleName = rule.Name()
140 issue.severity = severity
141 return issue, false
142}
143
144func (l *Linter) parserErrorRule(commitMsg string, err error) []*Issue {
145 var infos []string

Callers 1

LintMethod · 0.95

Calls 2

ValidateMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected