Skip to content

Commit 30c1d5c

Browse files
committed
add some lint tools
1 parent 9084042 commit 30c1d5c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

example_external/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@ install(
4949

5050
ament_export_targets(export_generate_parameter_library_example_external HAS_LIBRARY_TARGET)
5151
ament_export_dependencies(rclcpp rclcpp_components generate_parameter_library_example)
52+
53+
if(BUILD_TESTING)
54+
find_package(ament_lint_auto REQUIRED)
55+
ament_lint_auto_find_test_dependencies()
56+
endif()
57+
5258
ament_package()

example_external/package.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
<buildtool_export_depend>ament_cmake_core</buildtool_export_depend>
2020

2121
<test_depend>ament_lint_auto</test_depend>
22-
<test_depend>ament_lint_common</test_depend>
22+
<test_depend>ament_cmake_lint_cmake</test_depend>
23+
<test_depend>ament_cmake_cpplint</test_depend>
24+
<test_depend>ament_cmake_cppcheck</test_depend>
25+
<test_depend>ament_cmake_xmllint</test_depend>
26+
<test_depend>ament_cmake_copyright</test_depend>
2327

2428
<export>
2529
<build_type>ament_cmake</build_type>

0 commit comments

Comments
 (0)