Commit e19052fe authored by Jan Möbius's avatar Jan Möbius
Browse files

Run cppcheck via gitlab

parent 161d6fe5
Pipeline #1668 failed with stage
......@@ -27,3 +27,8 @@ macos-c++98:
script: "CI/ C++98"
- Apple
script: "CI/"
- Linux
# Run cppcheck and output into file
cppcheck --enable=all . -I src -i Doc/ --force --suppress=unusedFunction --quiet vi src/OpenMesh/Tools/Utils/Timer.hh -Umin -Umax -UBMPOSTFIX -DOPENMESHDLLEXPORT="" &> cppcheck.log
# Echo output to command line for simple analysis via gitlab
cat cppcheck.log
COUNT=$(wc -l < cppcheck.log )
if [ $COUNT -gt 1 ]; then
echo "Error Count is $COUNT which is too High! CPPCHECK Run failed";
exit 1;
echo "Error Count is $COUNT ... OK"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment