BodyLeadingBlankRule checks that when a body is present, it begins with a blank line (i.e. the raw commit message has an empty line between header and body). Per the Conventional Commits spec the parser already trims the leading blank, but we can detect its presence via the full commit Message(): th
| 18 | // can detect its presence via the full commit Message(): the body section should start |
| 19 | // after two newlines (header + blank line + body). |
| 20 | type BodyLeadingBlankRule struct{} |
| 21 | |
| 22 | func (r *BodyLeadingBlankRule) Name() string { return "body-leading-blank" } |
| 23 | func (r *BodyLeadingBlankRule) Apply(_ lint.RuleSetting) error { return nil } |
nothing calls this directly
no outgoing calls
no test coverage detected