This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Allowing
-f path/*/glob
to work as expected (find files as the shell would when using that sort of glob). This also provides a more uniform interface as most options dealing with specifying files can deal with it in the expected way (even using the -f option to specify exclusions, like -f !path/*/glob, work).Notable Changes
Just use -path instead of -name as an option to find when -f is used for inclusions (as said before, for exclusions is already used).
Tests and Risks?
Tests are not provided as I didn't see any tests for any other -f use case, but maybe I just missed them? I looked in the
tests/test
file. I'm not familiar enough with shunit to add tests -f myself.There is the risk of surprising some user that is writing some coverage report to some path that includes a literal
*
as part of the path and that have other files that will now match the glob and are not wanted in the codecov report upload.So something like:
-f path/*/glob
in a project producing the following files:Now will only find the file
path/*/glob
and with this change it will findpath/to/glob
too.But this looks like a very unlikely scenario.