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

Rubocop: Fix more Style cops #1791

Merged
merged 15 commits into from
Mar 24, 2023
Merged

Conversation

bastelfreak
Copy link
Member

No description provided.

@bastelfreak bastelfreak self-assigned this Mar 24, 2023
@codecov
Copy link

codecov bot commented Mar 24, 2023

Codecov Report

Patch coverage: 72.43% and project coverage change: +0.30 🎉

Comparison is base (e2c2269) 74.35% compared to head (b1522e5) 74.65%.

❗ Current head b1522e5 differs from pull request most recent head 709c227. Consider uploading reports for the commit 709c227 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1791      +/-   ##
==========================================
+ Coverage   74.35%   74.65%   +0.30%     
==========================================
  Files          82       81       -1     
  Lines        4605     4494     -111     
==========================================
- Hits         3424     3355      -69     
+ Misses       1181     1139      -42     
Impacted Files Coverage Δ
lib/beaker/dsl/helpers/hocon_helpers.rb 40.90% <0.00%> (+1.77%) ⬆️
lib/beaker/host/mac/exec.rb 65.00% <0.00%> (ø)
lib/beaker/host/unix.rb 92.85% <ø> (ø)
lib/beaker/host/windows/exec.rb 56.25% <0.00%> (+0.86%) ⬆️
lib/beaker/network_manager.rb 45.94% <0.00%> (+0.61%) ⬆️
lib/beaker/options/options_hash.rb 78.57% <0.00%> (+5.23%) ⬆️
lib/beaker/tasks/quick_start.rb 0.00% <0.00%> (ø)
lib/beaker/tasks/rake_task.rb 0.00% <0.00%> (ø)
lib/beaker/test_suite.rb 87.50% <ø> (ø)
lib/beaker/dsl/helpers/host_helpers.rb 53.47% <16.66%> (+0.31%) ⬆️
... and 35 more

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Sponsor Member

@rwaffen rwaffen left a comment

Choose a reason for hiding this comment

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

LGTM

spec/beaker/dsl/structure_spec.rb Show resolved Hide resolved
@bastelfreak bastelfreak merged commit e051f59 into voxpupuli:master Mar 24, 2023
@bastelfreak bastelfreak deleted the rubocop branch March 24, 2023 10:27
@@ -129,7 +129,7 @@ module Shared
myhosts = host_handler.run_block_on(hosts, nil, { :run_in_parallel => true }) do |host|
# kind of hacky workaround to remove logger which contains a singleton method injected by rspec

host.instance_eval("remove_instance_variable(:@logger)")
host.instance_eval("remove_instance_variable(:@logger)", __FILE__, __LINE__)
Copy link
Member

Choose a reason for hiding this comment

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

I think this could be way simpler:

Suggested change
host.instance_eval("remove_instance_variable(:@logger)", __FILE__, __LINE__)
host.send(:remove_instance_variable, :@logger)

#1793

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants