False positives when using the slash symbol ("/") in scope
See original GitHub issueIf 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 |
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
7 Common errors in the usage of symbols in scientific writing
In this article, we have highlighted some common errors in the usage of symbols that we have come across in physical science and...
Read more >APL syntax and symbols - Wikipedia
The programming language APL is distinctive in being symbolic rather than lexical: its ... boolean 0s delete items using the dyadic / slash...
Read more >The Basics — The Swift Programming Language (Swift 5.7)
Swift also makes extensive use of variables whose values can't be changed. ... Wrap the name in parentheses and escape it with a...
Read more >Improving agile requirements: the Quality User Story ...
Symbols cause the vast majority of false positives in our set of user stories. We want to resolve these without introducing new false...
Read more >Java Flashcards - Quizlet
The method with the declaration public static int aMethod() has a method type of ____. int. Identify the false statement.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marionebl It’s happening again and it’s different. Example repo is here.
Looks like there’s an extra new-line before my commit message:
without slash:
version:
cli-test:
Fixed via
6.1.0
. Let me know if you still run into problems!