Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
scheunemann committed Nov 25, 2022
1 parent 6d515db commit 79012c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
12 changes: 5 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/RslidarPacket.msg"
DEPENDENCIES builtin_interfaces std_msgs
)
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
# the following line skips the linter which checks for copyrights
# uncomment the line when a copyright and license is not present in all source files
#set(ament_cmake_copyright_FOUND TRUE)
# the following line skips cpplint (only works in a git repo)
# uncomment the line when this package is not in a git repo
#set(ament_cmake_cpplint_FOUND TRUE)
# skip copyright and license
set(ament_cmake_copyright_FOUND TRUE)
# skip copyright note per file
set(ament_cmake_cpplint_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
endif()

Expand Down
14 changes: 7 additions & 7 deletions ros1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ find_package(catkin REQUIRED COMPONENTS
std_msgs
sensor_msgs
message_generation
)
)

add_message_files(FILES
RslidarPacket.msg
)
)

generate_messages(DEPENDENCIES
generate_messages(DEPENDENCIES
std_msgs
sensor_msgs
)
)

catkin_package(CATKIN_DEPENDS
std_msgs
catkin_package(CATKIN_DEPENDS
std_msgs
sensor_msgs
message_runtime
)
)
2 changes: 1 addition & 1 deletion ros2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/RslidarPacket.msg"
DEPENDENCIES builtin_interfaces std_msgs
)
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down

0 comments on commit 79012c7

Please sign in to comment.