-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
cannot lint multiple files when using --path command option #3923
cannot lint multiple files when using --path command option #3923
Conversation
Looks basically good to me. However, I wonder what the point of the |
@SimplyDanny , Thanks for getting back to me!
i'm sorry that i was wrong. If i specify more than one file, i'll avoid using the path option. |
My intention was not to decline your PR. Actually, I think it is valid and should be merged. My comment above was rather a question about the benefit of the However, this is a separate discussion and should not influence your change. It just brought this question up. Sorry for the confusion, @coffmark! |
Your message encouraged me, Thanks! |
Generated by 🚫 Danger |
Would you please rebase to fix the conflicts, @coffmark? I guess, this would also fix the failed test. |
There went something wrong with the rebase. There are now too many changed files reverting some previously made changes. I suggest to rebase onto the current master branch interactively removing all the commits on your branch except for the one you created yourself. |
05d6fc4
to
62ba153
Compare
Special thanks for your advice, @SimplyDanny. Test code in azure pipeline seems to be failing due to increased Swift version. (Link) Could you please confirm this, #3944 ? |
62ba153
to
3a61cc9
Compare
Hello, i'm @coffmark. thank you for all your maintenance & update.
motivation
swiftlint lint --fix --format --path {first-file-path} {second-file-path}
This command only executes {first-file-path}, i expect execute {first-file-path} and {second-file-path}
swiftlint lint --fix --format {first-file-path} {second-file-path}
This command executes {first-file-path} & {second-file-path}, this is as expected.
It only doesn't work if
--path
command option is present.solution
when execute
swiftlint lint --fix --format --path {first-file-path} {second-file-path}
Now,
allpaths
only getspath
, sopaths
are ignored.The solution is to add
paths
andpath
toallpaths
**Looking forward to hearing back from you!