update rubocop config

This commit is contained in:
Thomas Walpole 2019-02-26 14:53:49 -08:00
parent 1b70cec73e
commit 7cfbeda24d
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ Metrics/PerceivedComplexity:
Enabled: false
Metrics/ParameterLists:
Enabled: false
CountKeywordArgs: false
Lint/UnusedMethodArgument:
Exclude:

View File

@ -45,7 +45,8 @@ module Capybara
unless functions.empty?
hints_js << <<~EACH_JS
return arguments[0].map(function(el){
return [#{functions.join(',')}].map(function(fn){ return fn.call(null, el) }); });
return [#{functions.join(',')}].map(function(fn){ return fn.call(null, el) });
});
EACH_JS
hints = es_context.execute_script hints_js, els