question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"subject-empty" is over-flagged

See original GitHub issue

Expected 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:open
  • Created 2 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
tdaycommented, Jan 21, 2022

This also causes issues when trying to disable the type-empty rule. subject-empty will fail if the : delimiter is not provided.

0reactions
sammcjcommented, Aug 24, 2022

FYI This is still occuring

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found