Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .circleci/utils/tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# some settings
tidied_files_path=".circleci/utils/tidied_files.txt"

# Ignore pb.c / pb.h generated files
IGNORE_REGEX="pb\.[ch]"


# For pretty printing
if test -t 1; then
Expand Down Expand Up @@ -72,7 +75,7 @@ do
absolute_filepath=$(realpath "$line")

# Append the absolute filepath.
if echo "$absolute_filepath" | grep -q -E '(\.cpp)|(\.h)'; then
if echo "$absolute_filepath" | grep -q -E '(\.cpp)|(\.h)' | grep -v -E "${IGNORE_REGEX}" ; then
echo "$absolute_filepath"
modified_filepaths+=("$absolute_filepath")
fi
Expand Down