Skip to content

Commit 806503b

Browse files
Copilotjwinarske
andcommitted
Exclude third_party headers from clang-tidy analysis
Co-authored-by: jwinarske <12262875+jwinarske@users.noreply.github.com>
1 parent b941c07 commit 806503b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,14 @@ jobs:
134134
mkdir -p .clang-tidy-cache
135135
136136
# Find all C++ source files and run clang-tidy
137+
# Exclude third_party directory from analysis
137138
find src -type f \( -name "*.cpp" -o -name "*.cc" \) | \
138139
while read file; do
139140
echo "Analyzing $file..."
140141
clang-tidy "$file" \
141142
-p build \
142143
--warnings-as-errors='*' \
143-
--header-filter='.*' || exit 1
144+
--header-filter='^(?!.*third_party).*$' || exit 1
144145
done
145146
shell: bash
146147

0 commit comments

Comments
 (0)