From 52fbfebc266bff3753dc42821fe9d612cf32d987 Mon Sep 17 00:00:00 2001 From: Jilada Eccleston Date: Thu, 14 Jan 2021 00:08:19 +0900 Subject: [PATCH] ROS2 Linting: localization_launch (#39) * Add linters to localization_launch package * Add new line * Fix indentation --- localization_launch/CMakeLists.txt | 13 +++++++++---- localization_launch/package.xml | 12 +++--------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/localization_launch/CMakeLists.txt b/localization_launch/CMakeLists.txt index ccb239a68..5f76d89e4 100644 --- a/localization_launch/CMakeLists.txt +++ b/localization_launch/CMakeLists.txt @@ -2,15 +2,20 @@ cmake_minimum_required(VERSION 3.5) project(localization_launch) if(NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD 14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Wall -Wextra -Wpedantic -Wno-unused-parameter) + add_compile_options(-Wall -Wextra -Wpedantic -Wno-unused-parameter) endif() find_package(ament_cmake_auto REQUIRED) ament_auto_find_build_dependencies() +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + ament_lint_auto_find_test_dependencies() +endif() + ament_auto_package(INSTALL_TO_SHARE - launch - ) \ No newline at end of file + launch +) diff --git a/localization_launch/package.xml b/localization_launch/package.xml index e4ccb2e7c..3dc295d63 100644 --- a/localization_launch/package.xml +++ b/localization_launch/package.xml @@ -5,16 +5,9 @@ 0.1.0 The localization_launch package - - - Yamato Ando - - - - - Apache 2 + Apache License 2.0 ament_cmake_auto @@ -25,8 +18,9 @@ pointcloud_preprocessor topic_tools + ament_lint_auto + ament_lint_common - ament_cmake