[CI] Check for performance issues in cppcheck
This commit is contained in:
parent
9fb427d041
commit
4263a572b1
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue