Index: build/build.sh =================================================================== diff -u -rb9696efaa87f4ef75d67261d891001667de3901e -rb0624816aafba0cfabdac9884072b9d84273fb63 --- build/build.sh (.../build.sh) (revision b9696efaa87f4ef75d67261d891001667de3901e) +++ build/build.sh (.../build.sh) (revision b0624816aafba0cfabdac9884072b9d84273fb63) @@ -40,6 +40,20 @@ echo } +#cppcheck runner for static code analysis +function cppcheck() { + cppcheck application -v \ + -Iapplication/sources \ + -Iapplication/sources/gui \ + -Iapplication/sources/storage \ + -Iapplication/sources/configuration \ + -Iapplication/sources/canbus \ + --enable=all \ + --check-config \ + 1> cppcheck.log \ + 2> cppcheck.err +} + #check if the out folders already exists if [[ -e $out_path ]]; then rm -frd $out_path @@ -62,6 +76,9 @@ mkdir $out_path cd $out_path +# run the cppcheck +cppcheck + # disabled gcc_64 build for now # since need to figure out how to install Qt without GUI on server # #build for gcc