From c33c2eb514fc80107cd02663596c2773588944f8 Mon Sep 17 00:00:00 2001 From: Ramon Wijnands Date: Tue, 22 Feb 2022 10:57:53 +0100 Subject: [PATCH 1/3] Enable roslint --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 731d37c7..9d38e6ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,7 @@ include_directories(include) # Roslint cpp set(ROSLINT_CPP_OPTS "--filter=-legal/copyright") roslint_cpp() +roslint_add_test() install( TARGETS From c7e973af7753d2ca49c227c13aa57948adf5f444 Mon Sep 17 00:00:00 2001 From: Ramon Wijnands Date: Tue, 22 Feb 2022 11:22:21 +0100 Subject: [PATCH 2/3] Disable whitespace/braces check This check was in conflict with the ROS2 clang-format style so I've disabled it. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d38e6ef..1acba745 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,7 @@ include_directories(include) # Configure roslint for nodes # Roslint cpp -set(ROSLINT_CPP_OPTS "--filter=-legal/copyright") +set(ROSLINT_CPP_OPTS "--filter=-legal/copyright,-whitespace/braces") roslint_cpp() roslint_add_test() From 32f9d89c771718304660863e78fc77ee2c4dd716 Mon Sep 17 00:00:00 2001 From: Ramon Wijnands Date: Tue, 22 Feb 2022 11:24:36 +0100 Subject: [PATCH 3/3] Fix roslint --- src/controller.cpp | 1 + src/path_tracking_pid_local_planner.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controller.cpp b/src/controller.cpp index 50d591b8..1038d96c 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include diff --git a/src/path_tracking_pid_local_planner.cpp b/src/path_tracking_pid_local_planner.cpp index d2749bc1..8e080b00 100644 --- a/src/path_tracking_pid_local_planner.cpp +++ b/src/path_tracking_pid_local_planner.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include