ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Is code analyzer supported in ros_buildfarm?

asked 2019-07-26 05:54:38 -0500

akihikotsukuda gravatar image

updated 2019-07-27 00:04:41 -0500


I am interested in the "Make ROS package quality visible" work by the Quality Assurance WG. Is it currently supported to execute code analysis on the ros_buildfarm?

I found some scripts for code analyzer which are noted "deprecated" in the ros-infrastructure repository.

Then I have checked the wiki page of code_quality and the scripts directory in ros_buildfarm but couldn't find the answer.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-07-26 10:22:07 -0500

Dirk Thomas gravatar image

updated 2019-07-26 10:22:54 -0500

In general we don't add code analyzers / linters to the buildfarm alone since it would make it difficult to reproduce the results locally.

Instead in ROS 2 any kind of linters are integrated on a per-package level. So when you run the tests of a package you also run any kind of linter available (e.g. clang-format, clang-tidy, cppcheck, cpplint, flake8, uncrustify, xmllint). The generally used ones are in this repo: All of these produce xUnit compliant result file to be picked up by Jenkins when running the tests in the buildfarm.

For ROS 1 there is no such infrastructure for linters and you would need to integrate each linter manually into each package.

edit flag offensive delete link more


I understood the current policy for ROS 1 infrastructure. Thank you!

akihikotsukuda gravatar image akihikotsukuda  ( 2019-07-28 08:50:02 -0500 )edit

Question Tools



Asked: 2019-07-26 05:54:38 -0500

Seen: 158 times

Last updated: Jul 27 '19