Skip to content

Commit

Permalink
Check copyright of files where possible: (#123)
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
- See ament/ament_lint#133 and ament/ament_cmake#165
  • Loading branch information
jpsamper2009 authored and nuclearsandwich committed Apr 12, 2019
1 parent 687424f commit a9b044c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,17 @@ 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_LINT_AUTO_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(
TESTNAME copyright_check_tests_only
"test/fviz_case_study"
)
endif()
add_subdirectory(test)
endif()
Expand Down

0 comments on commit a9b044c

Please sign in to comment.