How to exclude subdirectories from ament_lint
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.