Skip to content

Commit

Permalink
Check in tst instead of include
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 committed Dec 13, 2023
1 parent d2fd7fa commit a3349b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/check-format.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [ $# -ge 1 ] && [[ $1 == "docker" ]]; then
docker run -v $(pwd):/home --rm --workdir /home danger89/cmake:5.0 \
bash -c 'find src/ include/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format --dry-run -Werror -style=file -fallback-style=LLVM'
bash -c 'find src/ tst/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format --dry-run -Werror -style=file -fallback-style=LLVM'
else
find src/ include/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format --dry-run -Werror -style=file -fallback-style=LLVM -assume-filename=../.clang-format
find src/ tst/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format --dry-run -Werror -style=file -fallback-style=LLVM -assume-filename=../.clang-format
fi
4 changes: 2 additions & 2 deletions scripts/fix-format.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [ $# -ge 1 ] && [[ $1 == "docker" ]]; then
docker run -v $(pwd):/home --rm --workdir /home danger89/cmake:5.0 \
bash -c 'find src/ include/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format -i -style=file -fallback-style=LLVM'
bash -c 'find src/ tst/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format -i -style=file -fallback-style=LLVM'
else
find src/ include/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format -i -style=file -fallback-style=LLVM -assume-filename=../.clang-format
find src/ tst/ -iname *.cc -o -iname *.h -o -iname *.h.in | xargs clang-format -i -style=file -fallback-style=LLVM -assume-filename=../.clang-format
fi

0 comments on commit a3349b2

Please sign in to comment.