Closed FlorianReimold closed 1 year ago
exclude
is handled using fnmatch
:
for pattern in exclude:
files = [f for f in files if not fnmatch.fnmatch(f, pattern)]
where files
is a list of relative paths of changed files in the PR. So you should just have to drop the leading /
Ah, thanks, I changed it accordingly!
I have the following line in my GH Action:
https://github.com/eclipse-ecal/ecal/blob/8725500f16f3b70fa3f084d5d98a71b3cfaf6fae/.github/workflows/clang-tidy-review.yml#L35
The last list item is supposed to exclude all files and all subfolders from the
/testing/
folder. It however does not work and still scans files fromtesting
. Any suggestions on what I did wrong?