From ae0bf1faad5cebf5650e757cbe23350be7604516 Mon Sep 17 00:00:00 2001 From: Fernando Cladera Date: Tue, 12 Mar 2024 12:52:20 -0400 Subject: [PATCH] Fix CI coding style --- .github/workflows/cpplint.yml | 14 +++++++------- .../kr_mav_controllers/so3_control_tester.hpp | 1 + .../test/so3_control_nodelet_test.cpp | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 3ffbc9f2..22849bb6 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -10,14 +10,14 @@ jobs: with: github_token: ${{ secrets.github_token }} reporter: github-pr-review - flags: --linelength=120 # Optional - filter: "-whitespace/braces \" - ,-whitespace/parens" - #"-readability/braces\ - # ,-whitespace/braces\ + flags: --linelength=120 + filter: | + "-whitespace/braces\" + ,-whitespace/parens\ + ,-whitespace/newline\ + ,-build/c++11" + # -readability/braces\ # ,-whitespace/comments\ # ,-whitespace/indent\ - # ,-whitespace/newline\ # ,-whitespace/operators\ - # ,-whitespace/parens\ # " # Optional diff --git a/kr_mav_controllers/include/kr_mav_controllers/so3_control_tester.hpp b/kr_mav_controllers/include/kr_mav_controllers/so3_control_tester.hpp index 83b52e3f..55d57143 100644 --- a/kr_mav_controllers/include/kr_mav_controllers/so3_control_tester.hpp +++ b/kr_mav_controllers/include/kr_mav_controllers/so3_control_tester.hpp @@ -4,6 +4,7 @@ #include #include #include +#include class SO3ControlTester { diff --git a/kr_mav_controllers/test/so3_control_nodelet_test.cpp b/kr_mav_controllers/test/so3_control_nodelet_test.cpp index 3c56f2b3..1df5f62d 100644 --- a/kr_mav_controllers/test/so3_control_nodelet_test.cpp +++ b/kr_mav_controllers/test/so3_control_nodelet_test.cpp @@ -21,7 +21,7 @@ TEST(SO3ControlNodeletTest, Test1) std::lock_guard lock(tester.mutex); EXPECT_FALSE(tester.so3_command_received_); } - ASSERT_TRUE(tester.is_so3_cmd_publisher_active()); // checking if nodelet is active + ASSERT_TRUE(tester.is_so3_cmd_publisher_active()); // checking if nodelet is active } /*