From aec46fd6b5ad78178aff201d309ccb2dfb79aa86 Mon Sep 17 00:00:00 2001 From: veqcc Date: Fri, 15 Nov 2024 19:19:12 +0900 Subject: [PATCH] fix(clang-tidy): exclude test and example directories from clang-tidy check Signed-off-by: veqcc --- clang-tidy/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tidy/action.yaml b/clang-tidy/action.yaml index 57893b21..f5800b1f 100644 --- a/clang-tidy/action.yaml +++ b/clang-tidy/action.yaml @@ -116,7 +116,7 @@ runs: target_files="${{ inputs.target-files }}" else package_path=$(colcon list --paths-only --packages-select ${{ inputs.target-packages }}) - target_files=$(find $package_path -name "*.cpp" -or -name "*.hpp") + target_files=$(find $package_path -type f \( -name '*.cpp' -o -name '*.hpp' \) -not -path '*/test/*' -not -path '*/examples/*') fi echo "target-files=$target_files" >> $GITHUB_OUTPUT