Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .docker/docker-qgis-clangtidy.sh
Original file line number Diff line number Diff line change
@@ -43,4 +43,4 @@ echo -e "\e[1;34m - launch cmake with option -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
echo -e "\e[1;34m - update build by calling Ninja"
echo -e "\e[1;34m - launch command ./scripts/clang-tidy.sh -p <your_build_dir> <source_file>"

exit $(grep "warning:" clang-tidy.log | wc -l)
exit $(grep -c "warning:" clang-tidy.log)
4 changes: 2 additions & 2 deletions scripts/clang-tidy.sh
Original file line number Diff line number Diff line change
@@ -34,13 +34,13 @@ while getopts "p:am:" o; do
BUILD_DIR=${OPTARG}
;;
a)
if [[ ! -z "$FILE_OPT" ]]; then
if [[ -n "$FILE_OPT" ]]; then
usage
fi
FILE_OPT="ALL"
;;
m)
if [[ ! -z "$FILE_OPT" ]]; then
if [[ -n "$FILE_OPT" ]]; then
usage
fi
FILE_OPT=${OPTARG}

0 comments on commit 77907c2

Please sign in to comment.