Skip to content

Commit

Permalink
chore(shell): exclude players code in format script
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy-Liuxf authored Jun 20, 2023
1 parent 5755b2b commit 81e4807
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions dependency/shell/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,25 @@ cd ../..

for i in {1..3}
do
find . -iname "*.c" \
-or -iname "*.h" \
-or -iname "*.C" \
-or -iname "*.H" \
-or -iname "*.cpp" \
-or -iname "*.hpp" \
-or -iname "*.cc" \
-or -iname "*.hh" \
-or -iname "*.c++" \
-or -iname "*.h++" \
-or -iname "*.cxx" \
-or -iname "*.hxx" \
-or -iname "*.i" \
-or -iname "*.ixx" \
-or -iname "*.ipp" \
-or -iname "*.i++" \
| xargs clang-format -i
find . \
-not -path "./players/*" -and \( \
-iname "*.c" \
-or -iname "*.h" \
-or -iname "*.C" \
-or -iname "*.H" \
-or -iname "*.cpp" \
-or -iname "*.hpp" \
-or -iname "*.cc" \
-or -iname "*.hh" \
-or -iname "*.c++" \
-or -iname "*.h++" \
-or -iname "*.cxx" \
-or -iname "*.hxx" \
-or -iname "*.i" \
-or -iname "*.ixx" \
-or -iname "*.ipp" \
-or -iname "*.i++" \
\) | xargs clang-format -i
done

pushd logic && dotnet format && popd
Expand Down

0 comments on commit 81e4807

Please sign in to comment.