I use this config:
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"scope-case": [0],
"subject-case": [2, "always", "sentence-case"]
}
}
If I write something like this, then the cli throws an error: chore: Update @angular/core.
⧗ input: chore: Update @angular/core
✖ subject must be sentence-case [subject-case]
✖ found 1 problems, 0 warnings
Expected Behavior
The subject should be valid.
Current Behavior
The toCase function in case.js will be called two times:
So there is somewhere a split by the slash, which results in a validation error because core starts with an lower case.
Affected packages
Possible Solution
I think there should be no split in the subject. Maybe there is a connection to #291
I use this config:
If I write something like this, then the cli throws an error:
chore: Update @angular/core.Expected Behavior
The subject should be valid.
Current Behavior
The toCase function in case.js will be called two times:
Update @angularcoreSo there is somewhere a split by the slash, which results in a validation error because
corestarts with an lower case.Affected packages
Possible Solution
I think there should be no split in the subject. Maybe there is a connection to #291