
Consolidating all the linting to a single job rather than having a one-off just to lint for trailing whitespaces. As most of this projects are python, this should already be covered by PEP8, but will be scanning for yamls with trailing whitespaces. Change-Id: Iee33a69ff234d21c08217faa33a19e11dfef0ad9 Signed-off-by: Tin Lam <tin@irrational.io>
14 lines
235 B
Bash
Executable File
14 lines
235 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -xe
|
|
RES=$(find . \
|
|
-not -path "*/\.*" \
|
|
-not -path "*/doc/build/*" \
|
|
-not -path "*/doc/source/images/*" \
|
|
-not -name "*.tgz" \
|
|
-type f -exec egrep -l " +$" {} \;)
|
|
|
|
if [[ -n $RES ]]; then
|
|
exit 1;
|
|
fi
|