Skip to content

Commit aef650a

Browse files
authored
Add tab for CMake lint
1 parent e7b3cd9 commit aef650a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/_09_development/_develop_guide/_develop_guide/_develop_new_pkg.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,16 @@ For configuring style tests, this must be added on the ``CMakeList.txt`` of your
242242
.. code-block:: cmake
243243
244244
if(BUILD_TESTING)
245-
246-
find_package(ament_lint_auto REQUIRED)
247-
ament_lint_auto_find_test_dependencies()
248-
245+
find_package(ament_lint_auto REQUIRED)
246+
ament_lint_auto_find_test_dependencies()
249247
endif()
250248
251249
Also, these packages must be added to the ``package.xml``
252250

253251
.. code-block::
254252
255-
<test_depend>ament_lint_auto</test_depend>
256-
<test_depend>ament_lint_common</test_depend>
253+
<test_depend>ament_lint_auto</test_depend>
254+
<test_depend>ament_lint_common</test_depend>
257255
258256
The tests that are performed as part of ament_lint_common can be found `here <https://github.com/ament/ament_lint/blob/humble/ament_lint_common/doc/index.rst>`_.
259257

0 commit comments

Comments
 (0)