zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.62k stars 6.5k forks source link

MISRA C - Enforce MISRA -C in Zephyr's CI #10031

Open ceolin opened 6 years ago

ceolin commented 6 years ago

In order to avoid further regressions we have to enforce MISRA-C guidelines in our CI infra.

Some static analysis tools can do this, e.g coverity and cppcheck[1].

Several rules can be checked without the need of a static analysis tool just using compiler options and coccinelle scripts, these options should be enabled as much as possible.

[1] - http://cppcheck.sourceforge.net/misra.php

part of #9552

simhein commented 1 year ago

@nashif, @ceolin I think we can close this issue because I track the same task in #58903 and the safety WG project. What do you think?