Add static analysis tool like cppcheck and perform MISRA checks. Also consider adding uncrustify to repo to format code. Static analysis and MISRA checks should automatically be performed whenever new code is pushed, and checks must all be passing before merging.
Consider the following when adding cppcheck:
cppcheck build folder
add platform config file for ESP32
misra rule text
TODO:
[x] cppcheck settings file for suppressions
[x] cppcheck non zero exit code
NOTE: This issue is now only for Cppcheck. MISRA checks and uncrustify will be added separately in other issues.
Add static analysis tool like cppcheck and perform MISRA checks. Also consider adding uncrustify to repo to format code. Static analysis and MISRA checks should automatically be performed whenever new code is pushed, and checks must all be passing before merging.
Consider the following when adding cppcheck:
TODO:
NOTE: This issue is now only for Cppcheck. MISRA checks and uncrustify will be added separately in other issues.