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

Refactor/ruby rake tasks tidy #7551

Merged
merged 7 commits into from
Sep 11, 2019

Conversation

luke-hill
Copy link
Contributor

Refactor a load of ruby rake task code after chatting with Simon on IRC

Plan is to merge this then start simplifying the files afterwards

@luke-hill
Copy link
Contributor Author

cc/ @p0deje / @shs96c

rake-tasks/ci.rb Outdated
body = infile.read
end

for i in 0..5
(0..5).each do |_i|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can safely omit |_i|.

@@ -70,17 +74,17 @@ def generate_cpp_definitions(dest_file)

def ie_generate_type_mapping(args)
types_mapping_file = args[:src]
generated_file = "#{args[:out]}"
generated_file = (args[:out]).to_s
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you can avoid wrapping in ().

@p0deje p0deje merged commit 3f0dd43 into SeleniumHQ:master Sep 11, 2019
@p0deje
Copy link
Member

p0deje commented Sep 11, 2019

Thanks @luke-hill !

jimevans pushed a commit to jimevans/selenium that referenced this pull request Sep 13, 2019
* Autofixed 95% of the cop issues
* Additional auto-fixes from rubocop
* Final partial completed fixes of rubocop auto-correct
* Undo YodaCondition in rake-tasks/checks.rb - Making further simplication easier
* Fix up some string interpolation improvements and compress some lines down where appropriate
* String interpolation fixes
* CR: More tidy-up: Remove un-required syntax
@luke-hill luke-hill deleted the refactor/ruby_rake_tasks_tidy branch September 19, 2019 15:15
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.

2 participants