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

Method Apply

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

Source from the content-addressed store, hash-verified

16
17func (r *BodyLeadingBlankRule) Name() string { return "body-leading-blank" }
18func (r *BodyLeadingBlankRule) Apply(_ lint.RuleSetting) error { return nil }
19func (r *BodyLeadingBlankRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
20 if msg.Body() == "" || msg.BodyBlankLines() > 0 {
21 return nil, true

Calls

no outgoing calls