Skip to content
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

Fix YamlLint hook. #719

Merged
merged 1 commit into from
Jun 15, 2020
Merged

Fix YamlLint hook. #719

merged 1 commit into from
Jun 15, 2020

Conversation

ajgon
Copy link
Contributor

@ajgon ajgon commented Jun 12, 2020

Previously, when yamllint was failing, the exit code of the tool was
reflecting that. However, recently yamllint introduced --strict
parameter to do that. Without, it always returns success no matter if
lints were successful or failed. Which caused false-positives in
ovecommit, which was thinking that everything is okay.

This fix adds --strict to yamllint invocation, to bring back proper
behavior, and force hook to fail, when the tool fails.

Previously, when yamllint was failing, the exit code of the tool was
reflecting that. However, recently yamllint introduced `--strict`
parameter to do that. Without, it always returns success no matter if
lints were successful or failed. Which caused false-positives in
ovecommit, which was thinking that everything is okay.

This fix adds `--strict` to `yamllint` invocation, to bring back proper
behavior, and force hook to fail, when the tool fails.
@sds sds added the bug label Jun 15, 2020
@sds sds merged commit 0b8a6a6 into sds:master Jun 15, 2020
@sds
Copy link
Owner

sds commented Jun 15, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants