Fix the path for included files in umbrella apps #1133
Merged
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.
Hello! I ran into an issue where
Credo.Check.Refactor.PassAsyncInTestCases
would not flag issues when runningmix credo
from the root of an umbrella application, butcd
-ing intoapps/app_web
and running it from there would correctly flag the missingasync
option.We only have a single
.credo.exs
config at the root and I replicated the issue with the barebones config:Before this change, inside the
Credo.Sources.find_in_dir
the value forincluded_patterns
would compile down to:But that would skip everything that was under
my_umbrella_app/apps/**/test
I see this was intentionally changed in ac76775 so maybe I'm wrong to submit this PR and would appreciate feedback! Changing this locally did make the check work from both the root and the individual umbrella app directories though.