kayobe/tools/run-bashate.sh
Michał Nasiadka ae853182dc CI: Fix bashate ignores
Bashate only accepts one --ignore option, so first was ignored.

Change-Id: I2b7062c4f482faf91c0df40fb79fad75eb326d83
2021-09-20 16:48:10 +02:00

10 lines
363 B
Bash
Executable File

#!/bin/bash
# Ignore E006 -- line length greater than 80 char
ROOT=$(readlink -fn $(dirname $0)/.. )
# NOTE(priteau): ignore E010 because it fails on one-liner bash loops:
# https://bugs.launchpad.net/bash8/+bug/1895102
find $ROOT -not -wholename \*.tox/\* -and -not -wholename \*.test/\* \
-and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006,E010