Don't stop dib-lint on first flake8 failure

It's better to report all of the failures in one shot, so we should
make sure a flake8 failure doesn't immediately end the dib-lint
run, and instead just sets the error flag like the other checks.

Change-Id: Ib13fc71bb12a6565888bdd89f33fc6ada89f8d8c
This commit is contained in:
Ben Nemec 2016-04-15 10:29:48 -05:00
parent 4f6ce09385
commit bdf3aab53a
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ for i in $(find elements -type f \
# Ensure 4 spaces indent are used
if [ "$(file -b --mime-type $i)" = "text/x-python" ]; then
flake8 $i
flake8 $i || error "$i failed flake8"
else
if ! excluded indent ; then
indent_regex='^\( \{4\}\)* \{1,3\}[^ ]'