project-config/tools/run-bashate.sh
James E. Blair 0e327b9092 Ignore E011 in bashate
Change-Id: Id735a21cda1fc46e40b4f9ea51410d89bbf000a1
2016-01-07 16:52:39 -08:00

10 lines
375 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 -wholename \*.tox/\* -and -not -wholename \*.test/\* \
-and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006,E011