Browse Source

Ignore binary files when whitespace linting

Update the whitespace linter script to avoid tripping on png files,
using git-grep option:
    -I
        Don’t match the pattern in binary files.

Change-Id: Ifcd60354086cc606dbd3e71981484201b00c619c
changes/17/753217/1
Phil Sphicas 1 year ago
parent
commit
4ed7005329
  1. 2
      tools/gate/whitespace-linter.sh

2
tools/gate/whitespace-linter.sh

@ -2,7 +2,7 @@
set -x
RES=$(git grep -E -l " +$")
RES=$(git grep -E -l -I " +$")
if [[ -n $RES ]]; then
exit 1

Loading…
Cancel
Save