Skip to content
Snippets Groups Projects
Verified Commit 743908c7 authored by Konstantinos Kanavouras's avatar Konstantinos Kanavouras
Browse files

Move removal of cppcheck .dump files after the completion of the script, to prevent file cluttering

parent 87e22779
No related branches found
No related tags found
1 merge request!40Fix the build
Pipeline #75030413 passed
......@@ -15,11 +15,6 @@ echo -e "\u001b[34;1mGetting prerequisites...\u001b[0m"
curl https://raw.githubusercontent.com/danmar/cppcheck/master/addons/misra.py > ci/misra.py
curl https://raw.githubusercontent.com/danmar/cppcheck/master/addons/cppcheckdata.py > ci/cppcheckdata.py
# clean up old files
echo -e "\u001b[34;1mRemoving old files...\u001b[0m"
echo > ci/report.msr # clear the report file
find inc/ src/ -type f -name "*.dump" | xargs rm
# generate dump files (XML representations of AST etc.) for all headers, source files etc.
echo -e "\u001b[34;1mGenerating dump files...\u001b[0m"
find inc/ src/ -type f \( -iname "*.cpp" -or -iname "*.hpp" \) | xargs cppcheck --dump
......@@ -36,3 +31,8 @@ sed -i -r 's/(.*Script.*)|(.*Checking.*)|(.*MISRA.*)|(.*Undefined: .*)|(.* \(-\)
echo -e "\u001b[34;1mSummarizing results...\u001b[0m"
python3 ci/summarizer.py --report ci/report.msr --suppress 3.1 5.1 5.2 5.3 12.3 13.4 14.4 15.5 16.3 18.4 18.8
# clean up old files
echo -e "\u001b[34;1mRemoving dump files...\u001b[0m"
echo > ci/report.msr # clear the report file
find inc/ src/ -type f -name "*.dump" | xargs rm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment