-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple paths-to-mutate,exclude or test are not correctly parsed #254
Comments
Looks like you're on unix. The correct separator for paths is |
In fact it doesn't work, neither with ":" nor ",". The problem is the matching RE pattern.
now that you mention, my suggestion for that pattern build must also include def get_pattern(char):
return re.compile(rf"^(\w\/\\]+)({char}\s*[\w\/\\]+)*$") |
Hmm. yea ok. I guess the split should include both |
@DanJBower yea, this issue is saying that paths-to-mutate doesn't work for multiple paths. |
Ah okay, thanks for clarifying When I read it yesterday, I thought it was unix specific |
I just added a PR to explain better how the |
If you pass multiple paths to any of the path switches, they're not correctly parsed if the pathname contains a "/".
i.e.: --paths-to-mutate app/model,app/service,app/controller
I've checked the code and the problem relies on the get_pattern method. It can simply be solved by changing the regex there:
The text was updated successfully, but these errors were encountered: