project-config/tools/run-bashate.sh
Andreas Jaeger c0b40b37e0 Silence bashate
The remaining bashate warnings was E042:
 The return value of "local" is always 0; errors in subshells
 used for declaration are thus hidden and will not trigger "set
 -e".

Fix the few cases this triggered so that we don't get confused anymore
about the message.

Remove -v from bashate invocation, we don't need to print out all the
filenames anymore.

Change-Id: I47991a7040c8b9183bc72cce8e5d95b2cec7e6c5
2018-03-26 09:13:55 +02:00

11 lines
416 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 --ignore E006,E011