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

Method runRule

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

Source from the content-addressed store, hash-verified

91}
92
93func (l *Linter) runRule(rule Rule, severity Severity, msg Commit) (*Issue, bool) {
94 issue, isValid := rule.Validate(msg)
95 if isValid {
96 return nil, true
97 }
98
99 issue.ruleName = rule.Name()
100 issue.severity = severity
101 return issue, false
102}
103
104func (l *Linter) parserErrorRule(commitMsg string, err error) []*Issue {
105 issue := NewIssue(err.Error())

Callers 1

LintMethod · 0.95

Calls 2

ValidateMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected