Limit linters to current working directory

Change-Id: Ia50f351327ba90be8b8d846318cfa014560067c0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-26 15:24:04 -04:00
parent 7ff7731c89
commit e4a7b6c70d
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,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 \