From 17a3b195fa8d394ea1e61210679f05197059a2d5 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 24 Apr 2017 11:27:46 -0400 Subject: [PATCH] cppcheck start with errors only --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dd2bb17217..382be819d6 100644 --- a/Makefile +++ b/Makefile @@ -359,8 +359,9 @@ clang-tidy-fix: posix_sitl_default-clang clang-tidy-quiet: posix_sitl_default-clang @cd build_posix_sitl_default-clang && $(SRC_DIR)/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -p . +# TODO: Fix cppcheck errors then try --enable=warning,performance,portability,style,unusedFunction or --enable=all cppcheck: posix_sitl_default - @cppcheck --enable=all -i$(SRC_DIR)/src/examples --std=c++11 --std=c99 --std=posix --project=build_posix_sitl_default/compile_commands.json --xml-version=2 2> cppcheck-result.xml + @cppcheck -i$(SRC_DIR)/src/examples --std=c++11 --std=c99 --std=posix --project=build_posix_sitl_default/compile_commands.json --xml-version=2 2> cppcheck-result.xml @cppcheck-htmlreport --source-encoding=ascii --file=cppcheck-result.xml --report-dir=cppcheck --source-dir=$(SRC_DIR)/src/ # Cleanup