Add role-name lint check to warnings
role-name check is new one, which verifies role name regexp according to the ansible guide [1] based on the meta file, but does not have metadata tag on it. [1] https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#roles-directory Change-Id: I2dc887a3932e40f634f3bcb0aec46faf314f1907
This commit is contained in:
parent
d88998cd68
commit
2030d6d1ac
@ -45,5 +45,5 @@ source "${COMMON_TESTS_PATH}/test-ansible-env-prep.sh"
|
|||||||
# Execute ansible-lint. We do not want to test dependent roles located
|
# Execute ansible-lint. We do not want to test dependent roles located
|
||||||
# in $HOME/.ansible/roles since we only care about the role we are currently
|
# in $HOME/.ansible/roles since we only care about the role we are currently
|
||||||
# testing.
|
# testing.
|
||||||
ANSIBLE_LINT_WARNINGS="-w 208 -w 306 -w 502 -w 503 -w metadata"
|
ANSIBLE_LINT_WARNINGS="-w 208 -w 306 -w 502 -w 503 -w 106 -w metadata"
|
||||||
ansible-lint ${ANSIBLE_LINT_PARAMS} ${ANSIBLE_LINT_WARNINGS} --exclude=$HOME/.ansible/roles ${TEST_PLAYBOOK}
|
ansible-lint ${ANSIBLE_LINT_PARAMS} ${ANSIBLE_LINT_WARNINGS} --exclude=$HOME/.ansible/roles ${TEST_PLAYBOOK}
|
||||||
|
Loading…
Reference in New Issue
Block a user