Skip to content

Commit

Permalink
Check copyright of files where possible:
Browse files Browse the repository at this point in the history
- This serves as an example for the EXCLUDE option of
ament_lint_auto_find_test_dependencies, allowing to
exclude the default ament_copyright configuration and
running with a custom configuration

Signed-off-by: Juan Pablo Samper <jp.samper@apex.ai>
  • Loading branch information
Juan Pablo Samper committed Apr 9, 2019
1 parent 687424f commit 1a6aa25
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ if(BUILD_TESTING)
find_package(ament_lint_auto QUIET)
if(ament_lint_auto_FOUND)
# TODO(mikaelarguedas) add copyright test once the linter accepts /** block comments
set(ament_cmake_copyright_FOUND TRUE)
list(APPEND AMENT_AUTO_LINT_EXCLUDE
ament_cmake_copyright
)
ament_lint_auto_find_test_dependencies()

# Files in test/fviz_case_study do have compatible copyrights
find_package(ament_cmake_copyright)
ament_copyright("test/fviz_case_study")
endif()
add_subdirectory(test)
endif()
Expand Down

0 comments on commit 1a6aa25

Please sign in to comment.