From 9ac106666d80644b41629298f36d8c3a112083fb Mon Sep 17 00:00:00 2001 From: f-fl0 Date: Thu, 30 Nov 2023 17:16:02 +0900 Subject: [PATCH 1/2] Include hpp files in the list of files to check with roslint --- .github/workflows/cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 6880ce1..6eea65d 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -80,7 +80,7 @@ jobs: files_to_check="${{ inputs.files }}" if [ -z "${files_to_check}" ]; then - files_to_check=$(find . -name "*.cpp" -o -name "*.h") + files_to_check=$(find . -name "*.cpp" -o -name "*.h" -o -name "*.hpp") fi ( From 1da250b19b10a7dd468b1cceddaa291de1a0983d Mon Sep 17 00:00:00 2001 From: f-fl0 Date: Thu, 30 Nov 2023 17:24:00 +0900 Subject: [PATCH 2/2] Add header option for roslint --- .github/workflows/cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 6eea65d..20d638b 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -12,7 +12,7 @@ on: default: true cpp-roslint-opts: type: string - default: --filter=-runtime/references,-build/c++11 + default: --filter=-runtime/references,-build/c++11 --headers=h,hpp files: type: string outputs: