Limit linters to current working directory

Change-Id: If11f3f63c3f58e2c8e8aebd070542a4c87c78661
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-26 15:12:49 -04:00
parent 46a5a14723
commit 60b71bf641
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -29,8 +29,8 @@ commands =
# PEP8 Lint Check
flake8
# Ansible Lint Check
bash -c "find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
ansible-lint"
bash -c "find . -not -path '*/\.*' -type f -regex '.*.y[a]?ml' -print0 | \
xargs -t -n1 -0 ansible-lint"
# Ansible Syntax Check
bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \
ansible-playbook --syntax-check -i tests/inventory \