-
Notifications
You must be signed in to change notification settings - Fork 101
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
Commit message with a hash sign at the start is not detected #499
Comments
Interesting find, TIL that git doesn’t ignore the commentChar when using This indeed warrants a new option, I’m thinking Also, while we might be able to auto-set this option (i.e. Are you interested in contributing code for this? 2 parts to this:
Everything will require tests and docs. |
If I understand correctly, the option should default to
I'm not sure, if I'm going to have time for this soon, but yes. |
You're right!
Ok, let me know! |
I have looked into this a little bit and I don't think I can figure this out on my own:
I'm still open to coding this, but it won't be an easy thing for me, meaning that it'll take me a while to figure this out (and I probably won't be able to progress without some guidance). |
Thanks for having a look! Sounds like it would be a fairly long back-and-forth on this (totally understandable given you usually don't code in Python), in which case I prefer to keep this as-is because I'm limited on available time myself. I'll probably implement this at some point, just can't commit to a timeline :-) |
Hi,
gitlint is not able to detect a commit message that starts with a hash sign. A commit message can begin with a hash sign (for example, by using the
-m
option forgit commit
). A usecase for this might be tagging an issue number.Can I configure gitlint to not ignore the hashes? I understand that ignoring the hashes is useful for integration with code (commit message) editors (because git commit ignores them if you use the editor), but if I'm linting on our CI pipeline, I'd like to keep the hash signs.
Thanks.
The text was updated successfully, but these errors were encountered: