ROS 2 supports various linters, e.g. also cppcheck
. Those can be run on every build an therefore provide a timely and continuous feedback.
Coverity on the other can currently not be triggered automatically. A one time analysis is only of limited value. But if someone would automate the process that would be very helpful.