Skip to content

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