summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/clang_tidy.sh
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-09-10 13:33:28 +0200
committerFedja Beader <fedja@protonmail.ch>2023-09-10 13:33:28 +0200
commit3f68449293de30d84e39fef761ca5a4734f99c32 (patch)
treeb42fdeb4d513d47e2a1602f1b57876c7dc25317c /tools/ci/jobs/clang_tidy.sh
parent1999cc4ec6a8d14730edb3c98dbf72011fce9ba6 (diff)
downloadplus-3f68449293de30d84e39fef761ca5a4734f99c32.tar.gz
plus-3f68449293de30d84e39fef761ca5a4734f99c32.tar.bz2
plus-3f68449293de30d84e39fef761ca5a4734f99c32.tar.xz
plus-3f68449293de30d84e39fef761ca5a4734f99c32.zip
Reduce number of grep invocations + prettify + wrap param expansion in quotes
Diffstat (limited to 'tools/ci/jobs/clang_tidy.sh')
-rwxr-xr-xtools/ci/jobs/clang_tidy.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/ci/jobs/clang_tidy.sh b/tools/ci/jobs/clang_tidy.sh
index 0c50d90fa..9e83cbcdf 100755
--- a/tools/ci/jobs/clang_tidy.sh
+++ b/tools/ci/jobs/clang_tidy.sh
@@ -18,11 +18,12 @@ check_error $?
cd ..
grep "warning:" logs/clang_tidy.txt \
-| grep -v "/src/unittests/doctest.h" \
-| grep -v "/src/unittests/catch.hpp" \
-| grep -v "/src/sdl2gfx/" \
-| grep -v "/src/debug/" \
->${ERRFILE}
+ | grep -v \
+ -e "/src/unittests/doctest.h" \
+ -e "/src/unittests/catch.hpp" \
+ -e "/src/sdl2gfx/" \
+ -e "/src/debug/" \
+ ">${ERRFILE}"
run_check_warnings