chore(zuul): lint job now enforces linux line endings

Change-Id: I6e557b690782fc479d361eb7664a62003927676e
This commit is contained in:
Dustin Specker 2021-03-05 15:07:25 -06:00
parent 3ef27b21d3
commit c105d75d2c
9 changed files with 30 additions and 24 deletions

View File

@ -29,3 +29,9 @@
failed_when: result.stdout != ""
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Check for Windows line endings
command: grep --files-with-match --recursive -I --binary --exclude-dir=.git --perl-regexp '\r$' .
register: line_endings_result
failed_when: line_endings_result.rc == 0
args:
chdir: "{{ zuul.project.src_dir }}"