diff options
| author | Zuul <zuul@review.openstack.org> | 2018-01-17 07:41:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-01-17 07:41:41 +0000 |
| commit | b1796384f77d934b266250997aea42d6dccd2872 (patch) | |
| tree | 45a5fa5023c06d16c6f2dccfc8c82d48890fe9bd /tools/validate-indentation.sh | |
| parent | bfc3facdc816c9a8d23b04c01af0161354934232 (diff) | |
| parent | 3364720f3435a7e5469e0f1ed0bce4c02e70af9d (diff) | |
| download | kolla-b1796384f77d934b266250997aea42d6dccd2872.tar.gz kolla-b1796384f77d934b266250997aea42d6dccd2872.zip | |
Merge "Validate Dockerfile indentation in pep8"
Diffstat (limited to 'tools/validate-indentation.sh')
| -rwxr-xr-x | tools/validate-indentation.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/validate-indentation.sh b/tools/validate-indentation.sh new file mode 100755 index 000000000..de2f20c6f --- /dev/null +++ b/tools/validate-indentation.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +RES=0 + +for dockerfile in "$@"; do + if grep -qE '^\s+[A-Z]+\s' "$dockerfile"; then + echo "ERROR: $dockerfile has indented Dockerfile instruction" >&2 + RES=1 + fi +done + +exit $RES |
