"subject-empty" is over-flagged
See original GitHub issueExpected Behavior
Lint a comment message like “try out commitlint.” Two errors are flagged:
Error: You have commit messages with errors
⧗ input: try out commitlint.
✖ subject may not be empty [subject-empty]
✖ type may not be empty [type-empty]
✖ found 2 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
The “subject-empty” error seems silly: the commit message has a subject, it’s “try out commitlint.” In my opinion, “subject-empty” should only be raised for messages like “fix:”, with a type and nothing else.
Affected packages
- cli
- core
- prompt
- config-angular
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Zestimate no longer working - Home-Assistant ... - IssueHint
Incorrect format specified for type string. 3, 2020-03-04 ; "subject-empty" is over-flagged, 6, 2021-09-15 ; Is there a way to do tuple unpacking?...
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
This also causes issues when trying to disable the
type-empty
rule.subject-empty
will fail if the:
delimiter is not provided.FYI This is still occuring