If you include the slash symbol (/) in the scope of a commit message, subject-empty and type-empty rules start throwing errors.
Current Behavior
For the commit message feat(components/Component): subject, I am currently getting the following output:
> commitlint -e
⧗ input: feat(components/Component): subject
✖ message may not be empty [subject-empty]
✖ type may not be empty [type-empty]
✖ found 2 problems, 0 warnings
Expected Behavior
The commit message feat(components/Component): subject should pass.
Affected packages
Not sure.
Possible Solution
Not sure.
Steps to Reproduce (for bugs)
- Stage any changes.
- Commit the changes with the message that has a slash in the scope – e.g.
feat(components/Component): subject
- Run
commitlint -e
commitlint.config.js
module.exports = {
extends: ['@anvilabs/commitlint-config'],
};
Context
Can't use scopes with slashes in them.
Your Environment
| Executable |
Version |
commitlint --version |
6.0.2 |
git --version |
2.16.1 |
node --version |
9.4.0 |
If you include the slash symbol (
/) in the scope of a commit message,subject-emptyandtype-emptyrules start throwing errors.Current Behavior
For the commit message
feat(components/Component): subject, I am currently getting the following output:Expected Behavior
The commit message
feat(components/Component): subjectshould pass.Affected packages
Not sure.
Possible Solution
Not sure.
Steps to Reproduce (for bugs)
feat(components/Component): subjectcommitlint -ecommitlint.config.js
Context
Can't use scopes with slashes in them.
Your Environment
commitlint --versiongit --versionnode --version