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:
Roman Gorshunov 2019-02-14 14:52:09 +01:00
parent ef3adc4d0e
commit 410d34317e
1 changed files with 1 additions and 1 deletions

View File

@ -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: