mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
rubocop update
This commit is contained in:
parent
d1089ef2c7
commit
bed6313d89
4 changed files with 13 additions and 4 deletions
11
.rubocop.yml
11
.rubocop.yml
|
@ -48,13 +48,22 @@ Lint/HandleExceptions:
|
||||||
Lint/Loop:
|
Lint/Loop:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Lint/EndAlignment:
|
Layout/EndAlignment:
|
||||||
EnforcedStyleAlignWith: variable
|
EnforcedStyleAlignWith: variable
|
||||||
|
|
||||||
Naming/PredicateName:
|
Naming/PredicateName:
|
||||||
Exclude:
|
Exclude:
|
||||||
- '**/*/*matchers.rb'
|
- '**/*/*matchers.rb'
|
||||||
|
|
||||||
|
Naming/UncommunicativeMethodParamName:
|
||||||
|
AllowedNames:
|
||||||
|
- 'el'
|
||||||
|
- 'id'
|
||||||
|
- 'c'
|
||||||
|
- 'x'
|
||||||
|
- 'y'
|
||||||
|
- 'on'
|
||||||
|
|
||||||
Style/RescueStandardError:
|
Style/RescueStandardError:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ module Capybara
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def all
|
def all
|
||||||
@filter_sets ||= {}
|
@filter_sets ||= {} # rubocop:disable Naming/MemoizedInstanceVariableName
|
||||||
end
|
end
|
||||||
|
|
||||||
def add(name, &block)
|
def add(name, &block)
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Capybara
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def all
|
def all
|
||||||
@selectors ||= {}
|
@selectors ||= {} # rubocop:disable Naming/MemoizedInstanceVariableName
|
||||||
end
|
end
|
||||||
|
|
||||||
def add(name, &block)
|
def add(name, &block)
|
||||||
|
|
|
@ -219,7 +219,7 @@ private
|
||||||
find_xpath(XPath.ancestor(:select)[1]).first
|
find_xpath(XPath.ancestor(:select)[1]).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_text(value, clear: nil, **)
|
def set_text(value, clear: nil, **_unused)
|
||||||
if value.to_s.empty? && clear.nil?
|
if value.to_s.empty? && clear.nil?
|
||||||
native.clear
|
native.clear
|
||||||
elsif clear == :backspace
|
elsif clear == :backspace
|
||||||
|
|
Loading…
Add table
Reference in a new issue