diff --git a/zuul.d/playbooks/lint.yml b/zuul.d/playbooks/lint.yml index 13d73303e..19d0d41bf 100644 --- a/zuul.d/playbooks/lint.yml +++ b/zuul.d/playbooks/lint.yml @@ -16,7 +16,7 @@ - hosts: all[0] tasks: - name: Prevent trailing whitespaces - shell: find . -not -path "*/\.*" -not -path "*/doc/build/*" -not -name "*.tgz" -type f -exec egrep -l " +$" {} \; + shell: find . \! \( -path "*/\.*" -o -path "*/doc/build/*" -o -name "*.tgz" -o -name "*.png" \) -type f -exec egrep -l " +$" {} \; register: _found_whitespaces failed_when: _found_whitespaces.stdout != "" args: