From 410d34317e80c7d08d0fdd69e6a014134f083ea9 Mon Sep 17 00:00:00 2001 From: Roman Gorshunov <roman.gorshunov@att.com> Date: Thu, 14 Feb 2019 14:52:09 +0100 Subject: [PATCH] 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 --- zuul.d/playbooks/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: