Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.10
rubygem-rubocop
rubygem-rubocop-fix-opts.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-rubocop-fix-opts.patch of Package rubygem-rubocop
From cfba61b85a42f7c569af2d865c223c21d57e7bc1 Mon Sep 17 00:00:00 2001 From: Jonas Arvidsson <jonas054@gmail.com> Date: Tue, 3 Sep 2019 19:40:06 +0200 Subject: [PATCH] Fix new warnings from Ruby A new warning that's been added in ruby-head says: The last argument is used as the keyword parameter This warning is emitted when a method parameter is declared with a double asterisk, e.g., ``` def some_method(arg, **opts) ``` but a call does not use double asterisk, e.g., ``` x = some_method(my_arg, my_opts) ``` --- lib/rubocop/config_loader_resolver.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rubocop/config_loader_resolver.rb b/lib/rubocop/config_loader_resolver.rb index d4226319d..ff2bd5493 100644 --- a/lib/rubocop/config_loader_resolver.rb +++ b/lib/rubocop/config_loader_resolver.rb @@ -73,7 +73,7 @@ module RuboCop opts = { inherit_mode: config['inherit_mode'] || {}, unset_nil: unset_nil } - Config.new(merge(default_configuration, config, opts), config_file) + Config.new(merge(default_configuration, config, **opts), config_file) end # Return a recursive merge of two hashes. That is, a normal hash merge, @@ -92,7 +92,7 @@ module RuboCop elsif should_union?(base_hash, key, opts[:inherit_mode]) result[key] = base_hash[key] | derived_hash[key] elsif opts[:debug] - warn_on_duplicate_setting(base_hash, derived_hash, key, opts) + warn_on_duplicate_setting(base_hash, derived_hash, key, **opts) end end result -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor