Skip to content

Commit

Permalink
perf(find): Remove EXCLUDE_REGEX from find command
Browse files Browse the repository at this point in the history
  • Loading branch information
jidicula committed Dec 26, 2023
1 parent 80b9805 commit 61a28cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ src_files=$(find \
-o \
-regextype posix-egrep \
-regex "$INCLUDE_REGEX" \
-not -regex "$EXCLUDE_REGEX" \
-print)

# check formatting in each source file
IFS=$'\n' # Loop below should separate on new lines, not spaces.
for file in $src_files; do
format_diff "${file}"
if ! [[ ${file} =~ $EXCLUDE_REGEX ]]; then
format_diff "${file}"
fi
done

# global exit code is flipped to nonzero if any invocation of `format_diff` has
Expand Down

0 comments on commit 61a28cc

Please sign in to comment.