Source

gazebo / tools / code_check.sh

Full commit
#!/bin/sh

echo "*:src/common/STLLoader.cc:92" > /tmp/gazebo_cpp_check.suppress
echo "*:src/common/STLLoader.cc:103" >> /tmp/gazebo_cpp_check.suppress
echo "*:src/common/STLLoader.cc:118" >> /tmp/gazebo_cpp_check.suppress
echo "*:src/common/STLLoader.cc:138" >> /tmp/gazebo_cpp_check.suppress

#cppcheck
#find . -name "*.cc" -print0 | xargs -0 cppcheck --enable=style --enable=performance --enable=portability --enable=missingInclude --enable=information -j 10 -q --suppressions-list=/tmp/gazebo_cpp_check.suppress
find . -name "*.cc" -print0 | xargs -0 cppcheck --enable=all -q --suppressions-list=/tmp/gazebo_cpp_check.suppress

# cpplint
find ./src ./test ./plugins ./interfaces ./tools -print0 -name "*.cc" -o -name "*.hh" -o -name "*.c" -o -name "*.h" | xargs -0 python tools/cpplint.py