Exclude PNG images from whitespace linting job
Image files could contain whitespace after carriage return and newline characters; patch excludes "*.png" files from openstack-helm-lint job. Change-Id: I6aef5f2f34637f018fd56a3bb8121d5829c600a2
This commit is contained in:
parent
ef3adc4d0e
commit
410d34317e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user