commit 4f7aa0ef85e61cd3f83ec1203c56e74d7ec9021d Author: Dmitriy Rabotyagov Date: Mon Oct 5 19:00:26 2020 +0300 Update integrated ansible-lint rules Change-Id: I6a6022f1aa3fefa0c0cc4441c0b0755ca1b19a93 diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index d01148d..ef77ea6 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -128,13 +128,13 @@ elif [[ "${ACTION}" == "linters" ]]; then VENV_BIN_DIR=$(dirname ${PIP_COMMAND}) ROLE_DIR="/etc/ansible/roles/${SCENARIO}" - ANSIBLE_LINT_EXCLUDES="204,metadata" + ANSIBLE_LINT_WARNINGS="-w 204 -w 208 -w 306 -w metadata" # Check if we have test playbook and running checks if [[ -f "${ROLE_DIR}/examples/playbook.yml" ]]; then - ${VENV_BIN_DIR}/ansible-lint ${ROLE_DIR}/examples/playbook.yml -x ${ANSIBLE_LINT_EXCLUDES} + ${VENV_BIN_DIR}/ansible-lint ${ROLE_DIR}/examples/playbook.yml ${ANSIBLE_LINT_WARNINGS} ${VENV_BIN_DIR}/ansible-playbook --syntax-check --list-tasks ${ROLE_DIR}/examples/playbook.yml else - ${VENV_BIN_DIR}/ansible-lint ${ROLE_DIR} -x ${ANSIBLE_LINT_EXCLUDES} + ${VENV_BIN_DIR}/ansible-lint ${ROLE_DIR} ${ANSIBLE_LINT_WARNINGS} ${VENV_BIN_DIR}/ansible-playbook --syntax-check --list-tasks setup-everything.yml fi