* refactor: parameterize the MISRA checking script
The script contained hardcoded paths, which made it difficult
to use as part of the development workflow.
* ci!: use script relative path to pick source folder
* ci!: default output folder within source tree
* refactor: have cppcheck run the misra script
* refactor: use "rm -f" - remove existence check
* refactor: encapsulate into functions
* ci!: merge git MISRA logic into check_misra.sh
* ci!: count true errors, not style violations
* ci: use common MISRA check script
Co-authored-by: adbancroft <adbancroft@users.noreply.github.com>