rubocop update

This commit is contained in:
Thomas Walpole 2018-03-16 09:46:35 -07:00
parent d1089ef2c7
commit bed6313d89
4 changed files with 13 additions and 4 deletions

View File

@ -48,13 +48,22 @@ Lint/HandleExceptions:
Lint/Loop:
Enabled: false
Lint/EndAlignment:
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Naming/PredicateName:
Exclude:
- '**/*/*matchers.rb'
Naming/UncommunicativeMethodParamName:
AllowedNames:
- 'el'
- 'id'
- 'c'
- 'x'
- 'y'
- 'on'
Style/RescueStandardError:
Enabled: false

View File

@ -46,7 +46,7 @@ module Capybara
class << self
def all
@filter_sets ||= {}
@filter_sets ||= {} # rubocop:disable Naming/MemoizedInstanceVariableName
end
def add(name, &block)

View File

@ -25,7 +25,7 @@ module Capybara
class << self
def all
@selectors ||= {}
@selectors ||= {} # rubocop:disable Naming/MemoizedInstanceVariableName
end
def add(name, &block)

View File

@ -219,7 +219,7 @@ private
find_xpath(XPath.ancestor(:select)[1]).first
end
def set_text(value, clear: nil, **)
def set_text(value, clear: nil, **_unused)
if value.to_s.empty? && clear.nil?
native.clear
elsif clear == :backspace