Skip to content

Commit 56e1c18

Browse files
committed
Update datastructures-algorithms-ci-cd.yaml
1 parent 874e1c2 commit 56e1c18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
shell: pwsh
3535
run: |
3636
clang-tidy --version
37-
$sourceFiles = Get-ChildItem -Recurse -Path source -Include *.cpp,*.cc,*.cxx -File
38-
39-
# Process source files normally
40-
foreach ($file in $sourceFiles) {
37+
$files = Get-ChildItem -Recurse -Path source -Include *.cpp,*.cc,*.cxx -File
38+
39+
# These source/.* files would be checked using .clang-tidy maintained at projectroot
40+
foreach ($file in $files) {
4141
Write-Host "Running clang-tidy on source $($file.FullName)"
4242
clang-tidy -p build "$($file.FullName)" --warnings-as-errors=*
4343
}

0 commit comments

Comments
 (0)