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:
parent
4f6ce09385
commit
bdf3aab53a
@ -81,7 +81,7 @@ for i in $(find elements -type f \
|
|||||||
|
|
||||||
# Ensure 4 spaces indent are used
|
# Ensure 4 spaces indent are used
|
||||||
if [ "$(file -b --mime-type $i)" = "text/x-python" ]; then
|
if [ "$(file -b --mime-type $i)" = "text/x-python" ]; then
|
||||||
flake8 $i
|
flake8 $i || error "$i failed flake8"
|
||||||
else
|
else
|
||||||
if ! excluded indent ; then
|
if ! excluded indent ; then
|
||||||
indent_regex='^\( \{4\}\)* \{1,3\}[^ ]'
|
indent_regex='^\( \{4\}\)* \{1,3\}[^ ]'
|
||||||
|
Loading…
Reference in New Issue
Block a user