aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSamYaple <sam@yaple.net>2016-01-13 16:44:11 +0000
committerSamYaple <sam@yaple.net>2016-01-13 17:33:28 +0000
commitb863a46805c03ec755e7e69f1964d6231ed56ec5 (patch)
tree04ca779d19f406fce986e39447aeb83ec63c7730 /tools
parent8c4a2ee781c77508854c84bbd75b1310026c9c7f (diff)
downloadkolla-b863a46805c03ec755e7e69f1964d6231ed56ec5.tar.gz
kolla-b863a46805c03ec755e7e69f1964d6231ed56ec5.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-bashate.sh7
1 files changed, 7 insertions, 0 deletions
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