Skip to content

Commit

Permalink
fix(clang-tidy): exclude test and example directories from clang-tidy…
Browse files Browse the repository at this point in the history
… check (#325)

Signed-off-by: veqcc <[email protected]>
  • Loading branch information
veqcc authored Nov 15, 2024
1 parent f135730 commit 6fc6126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tidy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fc6126

Please sign in to comment.