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

Method Apply

rule/leading_blank_rules.go:23–23  ·  view source on GitHub ↗
(_ lint.RuleSetting)

Source from the content-addressed store, hash-verified

21
22func (r *BodyLeadingBlankRule) Name() string { return "body-leading-blank" }
23func (r *BodyLeadingBlankRule) Apply(_ lint.RuleSetting) error { return nil }
24func (r *BodyLeadingBlankRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
25 body := msg.Body()
26 if body == "" {

Calls

no outgoing calls