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:
|
||||
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
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ module Capybara
|
|||
|
||||
class << self
|
||||
def all
|
||||
@filter_sets ||= {}
|
||||
@filter_sets ||= {} # rubocop:disable Naming/MemoizedInstanceVariableName
|
||||
end
|
||||
|
||||
def add(name, &block)
|
||||
|
|
|
@ -25,7 +25,7 @@ module Capybara
|
|||
|
||||
class << self
|
||||
def all
|
||||
@selectors ||= {}
|
||||
@selectors ||= {} # rubocop:disable Naming/MemoizedInstanceVariableName
|
||||
end
|
||||
|
||||
def add(name, &block)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue