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

How to exclude subdirectories from ament_lint

asked 2020-02-07 07:43:50 -0500

allezxandre gravatar image

updated 2020-02-07 07:46:06 -0500

I'm using amend_lint in one of my ament_cmake (C++) ROS 2 nodes.

However this node includes a 3rd-party library. When running colcon test on my node, the linters (mostly Uncrustify, CPPlint, and others) also check the files of this 3rd-party library I don't have code ownership on.

Is there any way to have colcon test skip those directories? To be clear, I want to test my node, I just don't want to test all files inside that node directory.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-07 09:05:29 -0500

marguedas gravatar image

There is an open issue about such a feature https://github.com/ament/ament_lint/i... but it doesn't seem to be implemented yet.

edit flag offensive delete link more

Comments

Good spot! Well hopefully there will be a solution soon then

allezxandre gravatar image allezxandre  ( 2020-02-07 11:13:53 -0500 )edit

The ticket has the label "Help wanted" so if you would like this to be implemented I would encourage you to contribute a pull request.

Dirk Thomas gravatar image Dirk Thomas  ( 2020-02-07 11:34:34 -0500 )edit

The ticket hasn't seen any activity in a year and is labeled as "help wanted" so my assumption is that no one will be actively working on it in the foreseeable future

marguedas gravatar image marguedas  ( 2020-02-07 11:35:25 -0500 )edit

I would like to contribute however my knowledge of CMake functions is too weak for such a feature, so I guess I will just have to wait then

allezxandre gravatar image allezxandre  ( 2020-02-07 14:28:26 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-02-07 07:43:50 -0500

Seen: 937 times

Last updated: Feb 07 '20