2018-04-27 14:01:47 -04:00
|
|
|
require:
|
|
|
|
- rubocop-rspec
|
|
|
|
|
2016-11-21 19:28:45 -05:00
|
|
|
AllCops:
|
2018-01-08 15:23:54 -05:00
|
|
|
DisabledByDefault: false
|
2018-07-10 17:18:39 -04:00
|
|
|
TargetRubyVersion: 2.3
|
2017-11-13 16:04:47 -05:00
|
|
|
Exclude:
|
2018-01-08 15:23:54 -05:00
|
|
|
- 'capybara.gemspec'
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
#################### Lint ################################
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Metrics/LineLength:
|
|
|
|
Description: 'Limit lines to 80 characters.'
|
|
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
2018-10-12 19:21:53 -04:00
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
- 'lib/capybara/spec/**/*'
|
|
|
|
IgnoredPatterns:
|
|
|
|
- '\s*# '
|
|
|
|
- '\s*(raise|warn) '
|
|
|
|
Max: 120
|
2017-11-13 16:04:47 -05:00
|
|
|
Enabled: false
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-02-28 19:11:41 -05:00
|
|
|
Metrics/BlockLength:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
- 'lib/capybara/spec/**/*'
|
|
|
|
|
2016-11-21 19:28:45 -05:00
|
|
|
Metrics/AbcSize:
|
2018-01-11 19:45:50 -05:00
|
|
|
Enabled: false
|
2016-11-21 19:28:45 -05:00
|
|
|
|
|
|
|
Metrics/ClassLength:
|
2018-01-11 19:45:50 -05:00
|
|
|
CountComments: false
|
|
|
|
Enabled: false
|
2016-11-21 19:28:45 -05:00
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
2018-01-11 19:45:50 -05:00
|
|
|
Enabled: false
|
2016-11-21 19:28:45 -05:00
|
|
|
|
|
|
|
Metrics/MethodLength:
|
2018-01-11 19:45:50 -05:00
|
|
|
CountComments: false
|
|
|
|
Enabled: false
|
2016-11-21 19:28:45 -05:00
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
2018-01-11 19:45:50 -05:00
|
|
|
Enabled: false
|
|
|
|
CountComments: false
|
2016-11-21 19:28:45 -05:00
|
|
|
|
|
|
|
Metrics/PerceivedComplexity:
|
2018-01-11 19:45:50 -05:00
|
|
|
Enabled: false
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-05-16 23:04:24 -04:00
|
|
|
Metrics/ParameterLists:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Lint/UnusedMethodArgument:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/capybara/driver/base.rb'
|
|
|
|
- 'lib/capybara/driver/node.rb'
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-03-16 12:46:35 -04:00
|
|
|
Layout/EndAlignment:
|
2018-01-09 17:05:50 -05:00
|
|
|
EnforcedStyleAlignWith: variable
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Naming/PredicateName:
|
|
|
|
Exclude:
|
|
|
|
- '**/*/*matchers.rb'
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-03-16 12:46:35 -04:00
|
|
|
Naming/UncommunicativeMethodParamName:
|
|
|
|
AllowedNames:
|
|
|
|
- 'el'
|
|
|
|
- 'id'
|
|
|
|
- 'c'
|
|
|
|
- 'x'
|
|
|
|
- 'y'
|
|
|
|
- 'on'
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/ParallelAssignment:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/SingleLineMethods:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/Alias:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/Documentation:
|
2018-05-14 17:30:34 -04:00
|
|
|
Exclude:
|
|
|
|
- 'lib/capybara/spec/**/*'
|
|
|
|
- 'spec/**/*'
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/ClassVars:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/EmptyElse:
|
|
|
|
EnforcedStyle: empty
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/ClassAndModuleChildren:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-02-28 19:11:41 -05:00
|
|
|
Style/NumericLiterals:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/capybara/spec/**/*'
|
|
|
|
- 'spec/**/*'
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Layout/EmptyLineBetweenDefs:
|
|
|
|
AllowAdjacentOneLineDefs: true
|
2016-11-21 19:28:45 -05:00
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
EnforcedStyle: outdent
|
2018-01-08 18:30:09 -05:00
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Layout/CaseIndentation:
|
|
|
|
EnforcedStyle: end
|
2018-02-28 19:11:41 -05:00
|
|
|
|
|
|
|
Layout/IndentArray:
|
|
|
|
EnforcedStyle: consistent
|
|
|
|
|
|
|
|
Security/YAMLLoad:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/capybara/spec/**/*'
|
|
|
|
- 'spec/**/*'
|
2018-04-27 14:01:47 -04:00
|
|
|
|
|
|
|
RSpec/ExampleWording:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/InstanceVariable:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/MultipleExpectations:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/ContextWording:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/DescribedClass:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/NestedGroups:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/DescribeClass:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/AnyInstance:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/FilePath:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/PredicateMatcher:
|
|
|
|
Enabled: false
|
2018-06-19 16:57:42 -04:00
|
|
|
|
|
|
|
Capybara/FeatureMethods:
|
|
|
|
Enabled: false
|