Skip to content
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

Fix fastlane action template warnings reported by Rubocop #21310

Merged
merged 5 commits into from Jul 4, 2023

Conversation

bartoszkosiorek
Copy link
Contributor

@bartoszkosiorek bartoszkosiorek commented May 29, 2023

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I see several green ci/circleci builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

When the new default action is created, the rubocop is complaing about wrong code style. The purpose of this PR is to fix the most easy to fix warnings, to improve user experience of end users (less warnings to fix).

Steps to introduce:

  1. Go to fastlane directory
  2. Create new custom action
 $ fastlane new_action
  1. setup rubocop
  2. Run rubocop

Description

With this PR, several trivial warnings were fixed: Layout/IndentationWidth, Style/StringLiterals, Style/MethodCallWithArgsParentheses, Layout/LineLength, Style/ParenthesesAroundCondition, Style/AndOr and Style/Not. As a result once developer create default action, it will have less updates to be complient with RuboCop.

@bartoszkosiorek bartoszkosiorek changed the title Fix two fastlane actions warnings reported by Rubocop Fix fastlane action template warnings reported by Rubocop May 29, 2023
Fixes:
* Style/ParenthesesAroundCondition: Don't use parentheses around the condition of an unless.
* Style/AndOr: Use && instead of and.
* Style/Not: Use ! instead of not.
@getaaron
Copy link
Collaborator

getaaron commented Jul 4, 2023

Thanks for the PR, @BartoszKosiorek-TomTom !

@getaaron getaaron merged commit e70b3d1 into fastlane:master Jul 4, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants