-
Notifications
You must be signed in to change notification settings - Fork 933
header-full-stop? #524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think I have problems understanding this. Might be related to not being a native English speaker. |
@escapedcat I want |
Thx, I think this clears things up. We'll take a look when possible. |
I was looking at adding scopeless, typeless rules to a project and I was surprised that |
Hi @ianwremmel! You are totally right. We actually discussed this in one of our meetup-calls. All rules related to types and subject should also be available for the header right? E.g. |
yea, i think those make sense. I was looking at the code to see if I could throw something together. looks like it should be pretty straightforward, but I don't think I'll have time today. One thing that was a little unclear for some rules: does the absence (e.g. regarding "full stop") of "always" imply "never" or does it imply "optional"? |
oh, also, I wasn't sure where to look to register new rules were I to make them. |
Hi @ianwremmel, sorry for the delay. I've created both Regarding the always/never statement for rules; they are basically inverters of the rule itself. E.g., if you set You can view the structure a bit more in the API documentation, if you would like. This always/never thing might seem a bit weird, but for some rules this is useful. Take the |
thanks for the update! yea, i think the current behavior of always/never is fine, it just seems like it's not entirely clear what the absence of a choice means (especially for rules that accept one but not the other). just something to think about should the docs go through revamp at some point :) |
Thanks @byCedric! |
I'll create a release asap! Let me get to my computer first 😉 |
This has been released in |
I have an problem same as this. I use husky for precommit. Then i write and execute some commit with char "." in the end of the message i have an Error: subject may not end with full stop [subject-full-stop] So, then i delete char "." commit check become ok |
Expected Behavior
To be able to control full stops on my type-less, scope-less commit messages.
Current Behavior
I'm using
commitlint
with:According to the parser, I have an empty subject and what would usually be the subject, is understood by the parser to be the header. The header does not, at the moment, have a full stop setting. I'd love either
header-full-stop
or the parser recognising my subject correctly.Affected packages
Steps to Reproduce (for bugs)
.commitlintrc.yml
Your Environment
commitlint --version
7.2.1
git --version
2.20.0
node --version
11.4.0
The text was updated successfully, but these errors were encountered: