1. First step
set rules
{
"body-max-line-length": [2, "always", 100],
"footer-max-line-length": [2, "always", 150],
}
2. Second step
In commit have a footer greater than 100 characters and less than 150 characters
Current Behavior
The commitlint fails with body-max-line-length
Expected Behavior
It shouldn't fail with body-max-line-length as footer-max-line-length is respected
Steps to Reproduce
Current Behavior
The commitlint fails with
body-max-line-length
Expected Behavior
It shouldn't fail with
body-max-line-length
asfooter-max-line-length
is respectedAffected packages
Possible Solution
No response
Context
Am facing this issue when using the commitlint-pre-commit-hook plugin for pre-commit.
Have current suppressed the checks with the following config
commitlint --version
@commitlint/cli@19.3.0
git --version
v2.39.3
node --version
v12.22.12