support skipping linting
See original GitHub issuewith the transition from validate-commit-msg
to commitlint
, one missing feature that i notice is the ability specify that a commit should skip linting by including a keyword in the message. i initially asked if this would be added in the thread about the transition, but was righty directed here to open an issue.
in the case of validate-commit-msg
, the keyword was simply starting the commit message with WIP
, which has worked well for us when a commit is a step toward one of the categories, but does not complete the effort.
would it be possible to support similar functionality in commitlint
to save us from needing to configure some sort of wrapper in all of our projects?
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (14 by maintainers)
Top Results From Across the Web
Lint Code: What Is Linting + When To Use Lint Tools - Perforce
Linting is important to reduce errors and improve the overall quality of your code. Using lint tools can help you accelerate development and ......
Read more >A Complete Guide to Linting Go Programs - freshman.tech
This article demonstrates a comprehensive linting setup for Go projects, and discusses the best way to introduce it into an existing ...
Read more >Linting Python in Visual Studio Code
Linting highlights syntactical and stylistic problems in your Python source code, which often helps you identify and correct subtle programming errors or ...
Read more >Improve your code with lint checks - Android Developers
Android Studio provides a code scanning tool called lint that can help you to identify and correct problems with the structural quality of...
Read more >Configuration - golangci-lint
There is a .golangci.reference.yml file with all supported options, their description, ... Which dirs to skip: issues from them won't be reported.
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 Sure, I will create one in my lunch break! Approximately in 1 or 2 hours. Thanks for responding this quickly.
TL;DR
fixup!
andsquash!
semanticsfixup!
andsquash!
semanticsThe long story
commitlint currently skips commits according to git semantics - meaning that
merge
,fixup
andsquash
commits are ignored automatically. The relevant test cases can be found here.If i understand your use case for this correctly prefixing the
WIP
commits withfixup!
instead could be the idiomatic way to ignore commits. E.g.:WIP: This is something I id
=>fixup! This is something I did
WIP: Some more work
=>squash! Some more work
What are your thoughts on this?
Beginning commit messages with
WIP
feels different to me as git itself does not attach additional semantics to it. If we add this functionality I’d tend to go with some regex option matching commits that should be ignored, e.g.