From b863a46805c03ec755e7e69f1964d6231ed56ec5 Mon Sep 17 00:00:00 2001 From: SamYaple Date: Wed, 13 Jan 2016 16:44:11 +0000 Subject: Standardize bashate and add linters The linters gate combindes pep8 and bashate (and then any other linters we want). This changes bashate to be a sript rather than doing a script inline. This matches the way other projects (and project-config themselves) uses bashate [1]. Once a change upstream merges we can remove the redundant pep8 and bashate gates. [1] https://github.com/openstack-infra/project-config/blob/master/tox.ini#L11 https://github.com/openstack-infra/project-config/blob/master/tools/run-bashate.sh Related-Id: I2afa7931bf3e18798b95a8af33ccf5ef761c4ad5 TrivialFix Change-Id: I2ea2c1156e1b4de008f19e333e2740795dc406de --- tools/run-bashate.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tools/run-bashate.sh (limited to 'tools') diff --git a/tools/run-bashate.sh b/tools/run-bashate.sh new file mode 100755 index 000000000..897228c81 --- /dev/null +++ b/tools/run-bashate.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Ignore E006 -- line length greater than 80 char + +ROOT=$(readlink -fn $(dirname $0)/.. ) +find $ROOT -not -wholename \*.tox/\* -and -not -wholename \*.test/\* \ + -and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006 -- cgit v1.2.3