Commit 6d76801
committed
Fix clang-tidy linter to handle empty file arrays correctly
When all changed C++ files are excluded by the exclude_files_pattern,
the linter was attempting to run clang-tidy with an empty string argument,
causing a process error.
Changes:
- Add a second check after filtering to ensure no empty strings remain in the array
- Exit cleanly if no files are found after filtering
- This prevents passing empty strings to the linter command
Fixes the failing lint job when only excluded files are changed.1 parent 6336f7f commit 6d76801
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
0 commit comments