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.

No warning is given if commitlint.config.js does not exist

See original GitHub issue

Expected Behavior

If the commitlint.config.js file does not exist then commitlint does not have rules to check against and does nothing. It should display a warning message, e.g. “Warning: configuration not found, exiting”.

Current Behavior

When the commitlint.config.js file does not exist then commitlint does nothing, but also does not warn the user.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Check if the configuration with ruleset is available, if not then display a warning message, e.g. “Warning: configuration not found, exiting”.

Steps to Reproduce (for bugs)

N/A

Context

It has happened two me twice know that I installed everything and forgot to create the config file and only discovered my omission later. In one case it meant a lot of wrong commit messages 😦

Your Environment

N/A

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nidkilcommented, Dec 13, 2018

Cool. Didn’t see it. Any idea when it will be merged?

0reactions
marioneblcommented, Jan 27, 2019

This has been released in the 7.3.0 range 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commitlint: Write more organized code - LogRocket Blog
Make your life easier as a developer by using commitlint to format, standardize, and organize code and messages.
Read more >
@commitlint/config-angular - npm
The following rules are considered warnings for @commitlint/config-angular and will print warning messages when not met. body-leading-blank.
Read more >
husky - Strange error when attempting to commit. [subject-empty]
Another Solution you can try is. git commit --no-verify -m "Hello World!" ... If the template is not fulfilled, one gets strange errors....
Read more >
How to Write Good Commit Messages with Commitlint
This is not a good practice, as commit messages should be helpful and make ... Adds the conventional commits config to the commitlint...
Read more >
Push rules - GitLab Docs
This push rule does not restrict files already committed to the repository. You must update the configuration of existing projects to use the...
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