From 554a9339447b986969ac50a67a7968a15e59e6f3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 26 Aug 2022 15:27:45 +0200 Subject: [PATCH] validate: yamllint: use "parsable" output Before: 10030:81 error line too long (89 > 80 characters) (line-length) After: api/swagger.yaml:10030:81: [error] line too long (89 > 80 characters) (line-length) Signed-off-by: Sebastiaan van Stijn (cherry picked from commit f679d8c821bef2c9c0082bfe9c3a2a07bddf05f8) Signed-off-by: Sebastiaan van Stijn --- hack/validate/swagger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/validate/swagger b/hack/validate/swagger index 92ba2c3904..840ca0b146 100755 --- a/hack/validate/swagger +++ b/hack/validate/swagger @@ -8,7 +8,7 @@ files=($(validate_diff --diff-filter=ACMR --name-only -- 'api/swagger.yaml' || t unset IFS if [ -n "${TEST_FORCE_VALIDATE:-}" ] || [ ${#files[@]} -gt 0 ]; then - LANG=C.UTF-8 yamllint -c "${SCRIPTDIR}"/yamllint.yaml api/swagger.yaml + LANG=C.UTF-8 yamllint -f parsable -c "${SCRIPTDIR}"/yamllint.yaml api/swagger.yaml if out=$(swagger validate api/swagger.yaml); then echo "Congratulations! ${out}" else