-
Notifications
You must be signed in to change notification settings - Fork 39
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
Enhance file exclusion by ignoring Package.swift and make it more folder aware #258
Enhance file exclusion by ignoring Package.swift and make it more folder aware #258
Conversation
7ad9f5d
to
9342a49
Compare
Will check later why the acceptance test fails on Update: |
9342a49
to
90315fc
Compare
hey @Nikoloutsos thanks for the PR, I'm reviewing this soon. |
@@ -74,6 +77,7 @@ private extension DiscoverSourceFiles { | |||
root: rootPath | |||
) | |||
) | |||
.map { String($0.dropFirst(2)) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some lines above I am doing .map { "./" + $0 }
. This line removes the ./
.
That way the filepaths returned from the DiscoverSourceFiles step will be the same as it was before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing anything being used in the tests in regards to this project, am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rakaramos Yes it is not used from the tests but we could. I added it because it is the only SPM package inside repo that you can run muter. I can drop it.
@Nikoloutsos will it work if the client project has a file named |
@rakaramos Happy new year 🥳
So yes if somebody is using Package.swift as the name of a file it will be ignored. But IIRC this filename is preserved so it is not a best practice to use it. |
90315fc
to
953fb15
Compare
@rakaramos |
@Nikoloutsos its fine for now, we can revisit this later and do some extra checks to make sure that we are not ignoring something that we should not. |
Hello, this PR implements what is proposed here #250 and #259
/
into consideration. BeforeSpecialFeatureViewModel
was ignored because it cointained the substring "Spec". Now it is not ignored 🥳 . This feature gives the developer more flexibility