(msg lint.Commit)
| 84 | } |
| 85 | |
| 86 | func (r *DescriptionCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 87 | if casing.Check(msg.Description(), r.Case) { |
| 88 | return nil, true |
| 89 | } |
| 90 | return caseIssue("description", r.Case), false |
| 91 | } |
| 92 | |
| 93 | // BodyCaseRule validates that the commit body as a whole matches a given case |
| 94 | // format. An empty body always passes. |