-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[action] Added format
option to swiftlint
action
#14643
Conversation
format
option to swiftlint
actionformat
option to swiftlint
action
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.
Good job!
I pointed a few. Please check it out
optional: true) | ||
optional: true), | ||
FastlaneCore::ConfigItem.new(key: :format, | ||
description: "Format code when mode is :autocorrect", |
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.
indent
👀
optional: true), | ||
FastlaneCore::ConfigItem.new(key: :format, | ||
description: "Format code when mode is :autocorrect", | ||
default_value: false, |
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.
You can specify type: Boolean,
.
fastlane has Boolean
type.
expect(result).to eq("swiftlint lint") | ||
end | ||
|
||
it "omits the switch if swiftlint version is too low" do |
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.
too earlier? (I'm not a native speaker)
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.
It's not right, but I basically copied and pasted. I'm gonna change this.
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the ℹ️ Googlers: Go here for more info. |
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.
@bguidolim This is 💯! Thanks for the contribution ❤️
Congratulations! 🎉 This was released as part of fastlane 2.122.0 🚀 |
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
This PR adds the option
format
toswiftlint
action.Description
The option is only available for mode
autocorrect
, it formats the code besides the changes regarding the rules. If the mode is set tolint
, then the option has no effect.