From 4263a572b1ce36e4da7809949e5d1256b21b46de Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 10 Sep 2024 19:21:37 +0200 Subject: [PATCH] [CI] Check for performance issues in cppcheck --- extras/cppcheck/cppcheck.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extras/cppcheck/cppcheck.sh b/extras/cppcheck/cppcheck.sh index d5906e18..fe48a40c 100755 --- a/extras/cppcheck/cppcheck.sh +++ b/extras/cppcheck/cppcheck.sh @@ -8,8 +8,9 @@ echo "Cppcheck finished with exit code $?" error=$(grep ": error:" $file | wc -l) warning=$(grep ": warning:" $file | wc -l) style=$(grep ": style:" $file | wc -l) -echo "found $error erros, $warning warnings and $style style issues" -if [ $error -gt "0" ] || [ $warning -gt "0" ] || [ $style -gt "0" ] +performance=$(grep ": performance:" $file | wc -l) +echo "found $error erros, $warning warnings, $style style and $performance performance issues" +if [ $error -gt "0" ] || [ $warning -gt "0" ] || [ $style -gt "0" ] || [ $performance -gt "0" ] then cat $file exitcode=1