clang-format-action icon indicating copy to clipboard operation
clang-format-action copied to clipboard

Action always fails on folders whose name ends on .h or any other C-like suffix

Open Mrkol opened this issue 11 months ago • 1 comments

Title says it all. Don't ask why we have folders named like that, and no, we physically cannot change the names =)

Mrkol avatar Dec 24 '24 23:12 Mrkol

Just speculating like that, I imagine that adding a test to the find invocation like -type f (limit search to type that are files) would do the trick.

https://github.com/jidicula/clang-format-action/blob/bbe2072f30239fd9ebf4b8cfc666d8a7a64ac951/check.sh#L96-L97

It cannot be before the -prune -o, (the -o is "or"), but can be somewhere in there

I didn't evaluate if there are some undesirable side effects in the current situation though.

echoix avatar Dec 24 '24 23:12 echoix