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

Method Apply

rule/fullstop_rules.go:30–32  ·  view source on GitHub ↗
(s lint.RuleSetting)

Source from the content-addressed store, hash-verified

28
29func (r *HeaderFullStopRule) Name() string { return "header-full-stop" }
30func (r *HeaderFullStopRule) Apply(s lint.RuleSetting) error {
31 return applyFullStopArg(&r.Char, r.Name(), s)
32}
33
34func (r *HeaderFullStopRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
35 if !strings.HasSuffix(msg.Header(), r.Char) {

Calls 2

NameMethod · 0.95
applyFullStopArgFunction · 0.85