project-config/tools/run-bashate.sh
David Moreau-Simard 5224917c11
Exclude playbooks/legacy from bashate linter
playbooks/legacy will contain a bunch of automatically migrated
bash things that we don't necessarily expect will be up to bashate
standards. Let's not run bashate on those.

Change-Id: Ibd3cc91ab370d42f6d80b03e5a6c91410621dc5d
2017-09-20 23:19:10 -04:00

11 lines
419 B
Bash
Executable File

#!/bin/bash
# E011 is intentionally ignored because it does not make sense; it is
# perfectly reasonable to put 'then' on a separate line when natural
# line breaks occur in long conditionals.
ROOT=$(readlink -fn $(dirname $0)/.. )
find $ROOT -not -path '*playbooks/legacy/*' -and -not -wholename \*.tox/\* \
-and -not -wholename \*.test/\* \
-and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006,E011