No warning is given if commitlint.config.js does not exist
See original GitHub issueExpected 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:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top 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 >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
Cool. Didn’t see it. Any idea when it will be merged?
This has been released in the 7.3.0 range 🎉