Skip to content

Commit

Permalink
Address code review #2
Browse files Browse the repository at this point in the history
  • Loading branch information
theohax committed Sep 29, 2021
1 parent e4d8f71 commit b6dd227
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
12 changes: 5 additions & 7 deletions ci/impl/clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,12 @@ _clang_format_perform()
return 2
fi

find "$ROOTPATH/nano" \( -iname "*.h" \
-o \
-iname "*.hpp" \
-o \
-iname "*.cpp" \
\) \
find "$ROOTPATH/nano" -type f \( -iname "*.hpp" \
-o \
-iname "*.cpp" \
\) \
-print0 |
while read -d $'\0' file
while read -d $'\0' file
do
if [[ $1 == "do" ]]; then
"$CLANG_FORMAT" -i "$file"
Expand Down
14 changes: 7 additions & 7 deletions ci/impl/cmake-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ _cmake_format_perform()
return 2
fi

find "$ROOTPATH" \( -iwholename "$ROOTPATH/CMakeLists.txt" \
-o \
-iwholename "$ROOTPATH/coverage/CMakeLists.txt" \
-o \
-iwholename "$ROOTPATH/nano/*/CMakeLists.txt" \
\) \
find "$ROOTPATH" -type f \( -iwholename "$ROOTPATH/CMakeLists.txt" \
-o \
-iwholename "$ROOTPATH/coverage/CMakeLists.txt" \
-o \
-iwholename "$ROOTPATH/nano/*/CMakeLists.txt" \
\) \
-print0 |
while read -d $'\0' file
while read -d $'\0' file
do
if [[ $1 == "do" ]]; then
"$CMAKE_FORMAT" -i "$file"
Expand Down

0 comments on commit b6dd227

Please sign in to comment.