Skip to content

Commit a504345

Browse files
committed
core: yml update check
1 parent 9b814c9 commit a504345

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Checks: >
33

44
WarningsAsErrors: '*'
55

6-
HeaderFilterRegex: '(^|.*/)include/.*|(^|.*/)source/.*'
6+
HeaderFilterRegex: '(include/.*|source/.*)'
77

88
CheckOptions:
99
# Private member variables

.github/workflows/datastructures-algorithms-ci-cd.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ jobs:
2424

2525
- name: Run clang-tidy
2626
run: |
27-
find include -name '*.h' -o -name '*.hpp' ; find source -name '*.cpp' -o -name '*.cc' -o -name '*.cxx' | \
28-
xargs clang-tidy -p build --warnings-as-errors=*
27+
find include -type f \( -name '*.h' -o -name '*.hpp' \) \
28+
! -path '*/build/*' ! -path '*/_deps/*' ! -path '*/googletest/*' \
29+
-print | \
30+
xargs -r clang-tidy -p build --warnings-as-errors=*
31+
32+
find source -type f \( -name '*.cpp' -o -name '*.cc' -o -name '*.cxx' \) \
33+
! -path '*/build/*' ! -path '*/_deps/*' ! -path '*/googletest/*' \
34+
-print | \
35+
xargs -r clang-tidy -p build --warnings-as-errors=*
2936

3037
- name: Build
3138
run: cmake --build build

0 commit comments

Comments
 (0)