-
Notifications
You must be signed in to change notification settings - Fork 208
gitlint: add flags option
#643
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
base: master
Are you sure you want to change the base?
Conversation
--msg-filename last in arg list--msg-filename last in argument list
sandydoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
args are for end users to set. If a hook is designed in such a way that it cannot handle filenames as arguments, ie. without an option like --msg-filename, then we usually expose a settings.flags or, better yet, individual options.
|
I agree that the design of |
Not entirely sure what you mean by that |
If we add |
Ah, I get it now. That's if we add individual As far as API changes, that isn't a big deal in practice. These hook tools rarely change in practice. And if they do, well, we fix it here. |
`gitlint.args` can not be used since pre-commits appends it to the commandline but the `--msg-filename` option has to come last. See cachix#641 for more information.
--msg-filename last in argument listflags option
|
Ok, I added the |
The gitlint hook requires
--msg-filenameto appear last on the command line such that it is in front of the commit message filename. This is not the case when theargsoption is set. To fix this, we append--msg-filenameto theargsoption.Fixes #641.