2016-11-21 19:28:45 -05:00
|
|
|
AllCops:
|
2018-01-08 15:23:54 -05:00
|
|
|
DisabledByDefault: false
|
2017-11-13 16:04:47 -05:00
|
|
|
TargetRubyVersion: 2.2.2
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
- 'lib/capybara/spec/**/*'
|
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'
|
2017-11-13 16:04:47 -05:00
|
|
|
Enabled: false
|
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-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-01-09 17:05:50 -05:00
|
|
|
Lint/HandleExceptions:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Lint/Loop:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Lint/EndAlignment:
|
|
|
|
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-01-09 17:05:50 -05:00
|
|
|
Style/RescueStandardError:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
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
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/StringLiterals:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/StringLiteralsInInterpolation:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/RegexpLiteral:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/RescueModifier:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/Alias:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/AndOr:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/Documentation:
|
|
|
|
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
|
|
|
|
|
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/EmptyElse:
|
|
|
|
EnforcedStyle: empty
|
2016-11-21 19:28:45 -05:00
|
|
|
|
|
|
|
Style/RedundantReturn:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/ClassAndModuleChildren:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2018-01-09 17:05:50 -05:00
|
|
|
Style/ModuleFunction:
|
2016-11-21 19:28:45 -05:00
|
|
|
Enabled: false
|
|
|
|
|
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
|