-
Notifications
You must be signed in to change notification settings - Fork 14
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
Respect config settings when creating pre-commit hook #39
Comments
@JHabdas I wanted to let you know that @stevegrunwell is AFK for the next week, so he may be a bit delayed in his responses. |
@bswatson thanks for the heads up. 👌 i'll just keep riffing on my fork and see where I can get |
@JHabdas Mind clarifying which package's The pre-commit hook is not meant to be run interactively or accept varying options, as it's run automatically when a user attempts to commit to the repository. Am I missing something here? |
-c is the shorthand notation for --config as is currently used in the enforcer CLI IIRC. Hope that helps. |
https://github.com/stevegrunwell/wp-enforcer/blob/develop/bin/hooks/pre-commit#L9
This line is hard-coded and does not respect the
-c
flag of the CLI.The above needs to be updated to accept an arg when
-c
is set in the CLI.The text was updated successfully, but these errors were encountered: