Ignore bashate E010
The check for 'The "do" should be on same line as for' is not a good rule when the loop condition is too long to fit on a single line, so excludes more readable ways of constructing the script. Ignore it. Also, ironically, wrap some long lines in the tools/run-bashate.sh script since we're editing it anyway. Change-Id: I1f2cf44896a0137fcb954f67005268faa7291d5e
This commit is contained in:
parent
a8a19abf2c
commit
220a3ced6d
@ -1,4 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
ROOT=$(readlink -fn $(dirname $0)/.. )
|
||||
find $ROOT -type f -not -wholename \*.tox/\* -and \( -name \*.sh -or -name \*rc -or -name functions\* \) -print0 | xargs -0 bashate -i E006 -v
|
||||
find $ROOT -type f -not -wholename \*.tox/\* -and \( -name \*.sh \
|
||||
-or -name \*rc -or -name functions\* \) -print0 \
|
||||
| xargs -0 bashate -i E006,E010 -v
|
||||
|
Loading…
Reference in New Issue
Block a user