Skip to content

Commit a710dd7

Browse files
authored
Filter out benchmarks reports from the code style check
1 parent aededce commit a710dd7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

check-style.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ esac
4444
# Filter out symlinks from `affected_files`. We'll check the real files.
4545
affected_files=$(echo "$affected_files" | xargs -r -n1 file | grep -v 'symbolic link' | cut -d: -f1 | tr '\n' ' ')
4646

47+
# Filter out benchmark report files.
48+
affected_files=$(echo "$affected_files" | grep -vE '.*/reports/.*.txt' | tr '\n' ' ')
49+
4750
# Unset variable would be a sign of programmer error. We are not using '-e' in
4851
# this script as we'd like to handle these cases ourselves where relevant, i.e.,
4952
# allow more than one code check failure per run.

0 commit comments

Comments
 (0)