You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule should locate the body lines properly and not think there is content between body and footer.
Current Behavior
The footer-leading-blank rule counts the body lines excluding the comments and then compares them to the raw input, which in turn contains the comments.
footer-leading-blank complains when comment in body
Example Commit Message
Try it out
This bug seems to differ from #896
Expected Behavior
The rule should locate the body lines properly and not think there is content between body and footer.
Current Behavior
The
footer-leading-blank
rule counts the body lines excluding the comments and then compares them to the raw input, which in turn contains the comments.Affected packages
@commitlint/rules
and all packages using itPossible Solutions
Bug is in
footer-leading-blank.ts
bodyLines
in orrawLines
before slicingSteps to Reproduce (for bugs)
See message or link at the top of the issue
Your Environment
commitlint --version
16.2.3
git --version
2.35.1
node --version
16.14.2
The text was updated successfully, but these errors were encountered: