Skip to content

Commit 68d906c

Browse files
author
shenxianpeng
committed
Update runchecks.sh
1 parent fbf9945 commit 68d906c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
node_modules
1+
cppcheck-report.txt
2+
clang-format-report.txt
3+
clang-tidy-report.txt

runchecks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ done
2626
echo "Files downloaded!"
2727
echo "Performing checkup:"
2828
clang-tidy --version
29-
clang-tidy *.c *.h *.cpp *.hpp *.C *.cc *.CPP *.c++ *.cp *.cxx -checks=boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-cplusplus-*,clang-analyzer-*,cppcoreguidelines-* > clang-tidy-report.txt
3029

3130
# clang-format --style=llvm -i *.c *.h *.cpp *.hpp *.C *.cc *.CPP *.c++ *.cp *.cxx > clang-format-report.txt
3231
for i in "${URLS[@]}"
3332
do
3433
filename=`basename $i`
34+
clang-tidy $filename -checks=boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-cplusplus-*,clang-analyzer-*,cppcoreguidelines-* >> clang-tidy-report.txt
3535
clang-format --dry-run -Werror $filename || echo "File: $filename not formatted!" >> clang-format-report.txt
3636
done
3737

38-
cppcheck --enable=all --std=c++11 --language=c++ --output-file=cppcheck-report.txt *
38+
cppcheck --enable=all --std=c++11 --language=c++ --output-file=cppcheck-report.txt *.c *.h *.cpp *.hpp *.C *.cc *.CPP *.c++ *.cp *.cxx
3939

4040
PAYLOAD_TIDY=`cat clang-tidy-report.txt`
4141
PAYLOAD_FORMAT=`cat clang-format-report.txt`

0 commit comments

Comments
 (0)