From c37767910317fd9b5f38469ba9b84a0bbf5816dd Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 15 Jun 2022 13:17:24 +0200 Subject: [PATCH] [fix] test.yamllint: return non-zero exit code on warnings SearXNG's YAML files should be free of any warnings. This will stop the test when there are warnings like:: [warning] truthy value should be one of [false, true] (truthy) Signed-off-by: Markus Heiser --- manage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage b/manage index 088fdef7..e9e5e7ca 100755 --- a/manage +++ b/manage @@ -661,7 +661,8 @@ format.python() { test.yamllint() { build_msg TEST "[yamllint] \$YAMLLINT_FILES" - pyenv.cmd yamllint --format parsable "${YAMLLINT_FILES[@]}" + pyenv.cmd yamllint --strict --format parsable "${YAMLLINT_FILES[@]}" + dump_return $? } test.pylint() {