1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/.rubocop.yml

289 lines
4.6 KiB
YAML
Raw Normal View History

require:
- rubocop-rspec
- rubocop-performance
- rubocop-minitest
- rubocop-rake
2016-11-21 16:28:45 -08:00
AllCops:
2020-09-05 12:24:43 -07:00
NewCops: enable
2018-01-08 12:23:54 -08:00
DisabledByDefault: false
2019-12-22 11:02:00 -08:00
TargetRubyVersion: 2.5
2017-11-13 13:04:47 -08:00
Exclude:
2019-03-27 14:32:42 -07:00
- 'vendor/**/*'
- 'gemfiles/vendor/**/*'
2016-11-21 16:28:45 -08:00
2018-01-09 14:05:50 -08:00
#################### Lint ################################
2016-11-21 16:28:45 -08:00
2019-12-22 09:01:44 -08:00
Layout/LineLength:
2018-01-09 14:05:50 -08:00
Description: 'Limit lines to 80 characters.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
2018-10-12 16:21:53 -07:00
Exclude:
- 'spec/**/*'
- 'lib/capybara/spec/**/*'
IgnoredPatterns:
2019-04-29 11:11:01 -07:00
- '\s+# _?rubocop'
2018-11-12 10:34:15 -08:00
- '^\s*#'
- '^\s*(raise|warn|Capybara::Helpers.warn) '
2018-10-12 16:21:53 -07:00
Max: 120
2016-11-21 16:28:45 -08:00
2018-02-28 16:11:41 -08:00
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'lib/capybara/spec/**/*'
- 'capybara.gemspec'
IgnoredMethods:
2019-05-08 16:03:57 -07:00
- Capybara.add_selector
- Capybara::Selector::FilterSet.add
2018-02-28 16:11:41 -08:00
2016-11-21 16:28:45 -08:00
Metrics/AbcSize:
2018-01-11 16:45:50 -08:00
Enabled: false
2016-11-21 16:28:45 -08:00
Metrics/ClassLength:
2018-01-11 16:45:50 -08:00
CountComments: false
Enabled: false
2016-11-21 16:28:45 -08:00
Metrics/CyclomaticComplexity:
2018-01-11 16:45:50 -08:00
Enabled: false
2016-11-21 16:28:45 -08:00
Metrics/MethodLength:
2018-01-11 16:45:50 -08:00
CountComments: false
Enabled: false
2016-11-21 16:28:45 -08:00
Metrics/ModuleLength:
2018-01-11 16:45:50 -08:00
Enabled: false
CountComments: false
2016-11-21 16:28:45 -08:00
Metrics/PerceivedComplexity:
2018-01-11 16:45:50 -08:00
Enabled: false
2016-11-21 16:28:45 -08:00
2018-05-16 20:04:24 -07:00
Metrics/ParameterLists:
2019-05-08 16:03:57 -07:00
CountKeywordArgs: false
2018-05-16 20:04:24 -07:00
2018-01-09 14:05:50 -08:00
Lint/UnusedMethodArgument:
Exclude:
- 'lib/capybara/driver/base.rb'
- 'lib/capybara/driver/node.rb'
2016-11-21 16:28:45 -08:00
2020-10-10 13:18:39 -07:00
Lint/RedundantSafeNavigation:
Enabled: false
2020-04-02 18:05:16 -07:00
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
2020-07-03 15:26:54 -07:00
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
2020-07-13 23:23:08 -07:00
Lint/DuplicateElsifCondition:
Enabled: true
2018-03-16 09:46:35 -07:00
Layout/EndAlignment:
2018-01-09 14:05:50 -08:00
EnforcedStyleAlignWith: variable
2016-11-21 16:28:45 -08:00
2020-10-31 10:39:21 -07:00
Lint/EmptyBlock:
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*.rb'
2020-11-26 12:16:11 -08:00
Lint/DuplicateBranch:
Enabled: false
2018-01-09 14:05:50 -08:00
Naming/PredicateName:
Exclude:
- '**/*/*matchers.rb'
2016-11-21 16:28:45 -08:00
2019-11-28 12:19:37 -08:00
Naming/MethodParameterName:
2018-03-16 09:46:35 -07:00
AllowedNames:
- 'el'
- 'id'
- 'c'
- 'x'
- 'y'
- 'on'
2018-01-09 14:05:50 -08:00
Style/ParallelAssignment:
2016-11-21 16:28:45 -08:00
Enabled: false
2018-01-09 14:05:50 -08:00
Style/SingleLineMethods:
2016-11-21 16:28:45 -08:00
Enabled: false
Style/Alias:
Enabled: false
Style/Documentation:
2018-05-14 14:30:34 -07:00
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*'
2016-11-21 16:28:45 -08:00
Enabled: false
2020-10-31 10:39:21 -07:00
Style/DocumentDynamicEvalDefinition:
Enabled: false
2016-11-21 16:28:45 -08:00
Style/DoubleNegation:
Enabled: false
2018-01-09 14:05:50 -08:00
Style/EmptyElse:
EnforcedStyle: empty
2016-11-21 16:28:45 -08:00
2018-01-09 14:05:50 -08:00
Style/ClassAndModuleChildren:
2016-11-21 16:28:45 -08:00
Enabled: false
2018-02-28 16:11:41 -08:00
Style/NumericLiterals:
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*'
Style/SpecialGlobalVars:
Exclude:
- 'capybara.gemspec'
Style/IfUnlessModifier:
Exclude:
- 'spec/**/*'
2020-02-19 19:13:08 -08:00
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
2020-07-03 15:26:54 -07:00
Style/ExponentialNotation:
Enabled: true
Style/SlicingWithRange:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/RedundantFetchBlock:
Enabled: true
2020-07-06 22:34:20 -07:00
Style/AccessorGrouping:
Enabled: false
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Style/BisectedAttrAccessor:
Enabled: false
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Style/RedundantAssignment:
Enabled: true
2020-07-13 23:23:08 -07:00
Style/ArrayCoercion:
Enabled: true
Style/CaseLikeIf:
Enabled: true
Style/HashAsLastArrayItem:
Enabled: true
Style/HashLikeCase:
Enabled: true
Style/RedundantFileExtensionInRequire:
Enabled: true
2020-10-10 13:18:39 -07:00
2018-01-09 14:05:50 -08:00
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
2016-11-21 16:28:45 -08:00
2018-01-09 14:05:50 -08:00
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
2018-01-09 14:05:50 -08:00
Layout/CaseIndentation:
EnforcedStyle: end
2018-02-28 16:11:41 -08:00
2019-11-28 12:19:37 -08:00
Layout/FirstArrayElementIndentation:
2018-02-28 16:11:41 -08:00
EnforcedStyle: consistent
2019-05-30 15:07:27 -07:00
Layout/IndentationWidth:
IgnoredPatterns: ['^\s*module']
2020-07-03 15:26:54 -07:00
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
2018-02-28 16:11:41 -08:00
Security/YAMLLoad:
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*'
2020-07-06 22:34:20 -07:00
Performance/AncestorsInclude:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Performance/BigDecimalWithNumericArgument:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Performance/RedundantSortBlock:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Performance/RedundantStringChars:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Performance/ReverseFirst:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Performance/SortReverse:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Performance/Squeeze:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-07-06 22:34:20 -07:00
Performance/StringInclude:
Enabled: true
2020-10-10 13:18:39 -07:00
2020-11-16 11:23:02 -08:00
Performance/MethodObjectAsBlock:
Enabled: false
Performance/BlockGivenWithExplicitBlock:
Enabled: false
2020-07-06 22:34:20 -07:00
RSpec/ExampleWording:
Enabled: false
RSpec/InstanceVariable:
AssignmentOnly: true
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/PredicateMatcher:
2020-07-03 15:26:54 -07:00
Exclude:
- 'spec/basic_node_spec.rb'
2020-02-17 11:49:12 -08:00
2020-10-31 10:39:21 -07:00
RSpec/Capybara:
Enabled: false
RSpec/Capybara/FeatureMethods:
Enabled: false
RSpec/Capybara/VisibilityMatcher:
2018-06-19 13:57:42 -07:00
Enabled: false