Ask Your Question
0

How to exclude subdirectories from ament_lint

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

allezxandre gravatar image

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

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 -0600

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 imageallezxandre ( 2020-02-07 11:13:53 -0600 )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 imageDirk Thomas ( 2020-02-07 11:34:34 -0600 )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 imagemarguedas ( 2020-02-07 11:35:25 -0600 )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 imageallezxandre ( 2020-02-07 14:28:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 18 times

Last updated: Feb 07