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

Revision history [back]

click to hide/show revision 1
initial version

I see one problem. It looks like your build directory is in the same folder as your CMakeLists.txt. The linters lint any files in that directory. Building inside the package is considered in-tree and is not recommended by ROS; that's why in the tutorials they make you create a "workspace" and put a src/ directory inside of it. Then, the build folder does not get linted by any of the packages.

That said, ament_cmake_flake8 was an issue I fixed, and it's merged into (rolling), but not humble or galactic.