teamcapybara--capybara/.rubocop.yml

187 lines
3.1 KiB
YAML
Raw Normal View History

require:
- rubocop-rspec
- rubocop-performance
- rubocop-minitest
- rubocop-rake
2021-03-27 19:23:04 +00:00
2016-11-22 00:28:45 +00:00
AllCops:
2020-09-05 19:24:43 +00:00
NewCops: enable
2018-01-08 20:23:54 +00:00
DisabledByDefault: false
2022-04-30 17:26:55 +00:00
TargetRubyVersion: 2.7
2017-11-13 21:04:47 +00:00
Exclude:
2019-03-27 21:32:42 +00:00
- 'vendor/**/*'
- 'gemfiles/vendor/**/*'
2016-11-22 00:28:45 +00:00
2018-01-09 22:05:50 +00:00
#################### Lint ################################
2016-11-22 00:28:45 +00:00
2019-12-22 17:01:44 +00:00
Layout/LineLength:
2021-03-27 19:23:04 +00:00
Description: 'Limit lines to 120 characters.'
2018-01-09 22:05:50 +00:00
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
2018-10-12 23:21:53 +00:00
Exclude:
- 'spec/**/*'
- 'lib/capybara/spec/**/*'
2022-04-30 17:26:55 +00:00
AllowedPatterns:
2019-04-29 18:11:01 +00:00
- '\s+# _?rubocop'
2018-11-12 18:34:15 +00:00
- '^\s*#'
- '^\s*(raise|warn|Capybara::Helpers.warn) '
2018-10-12 23:21:53 +00:00
Max: 120
2016-11-22 00:28:45 +00:00
2018-03-01 00:11:41 +00:00
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'lib/capybara/spec/**/*'
- 'capybara.gemspec'
AllowedMethods:
2019-05-08 23:03:57 +00:00
- Capybara.add_selector
- Capybara::Selector::FilterSet.add
2018-03-01 00:11:41 +00:00
2016-11-22 00:28:45 +00:00
Metrics/AbcSize:
2018-01-12 00:45:50 +00:00
Enabled: false
2016-11-22 00:28:45 +00:00
Metrics/ClassLength:
2018-01-12 00:45:50 +00:00
CountComments: false
Enabled: false
2016-11-22 00:28:45 +00:00
Metrics/CyclomaticComplexity:
2018-01-12 00:45:50 +00:00
Enabled: false
2016-11-22 00:28:45 +00:00
Metrics/MethodLength:
2018-01-12 00:45:50 +00:00
CountComments: false
Enabled: false
2016-11-22 00:28:45 +00:00
Metrics/ModuleLength:
2018-01-12 00:45:50 +00:00
Enabled: false
CountComments: false
2016-11-22 00:28:45 +00:00
Metrics/PerceivedComplexity:
2018-01-12 00:45:50 +00:00
Enabled: false
2016-11-22 00:28:45 +00:00
2018-05-17 03:04:24 +00:00
Metrics/ParameterLists:
2019-05-08 23:03:57 +00:00
CountKeywordArgs: false
2018-05-17 03:04:24 +00:00
2018-01-09 22:05:50 +00:00
Lint/UnusedMethodArgument:
Exclude:
- 'lib/capybara/driver/base.rb'
- 'lib/capybara/driver/node.rb'
2016-11-22 00:28:45 +00:00
2018-03-16 16:46:35 +00:00
Layout/EndAlignment:
2018-01-09 22:05:50 +00:00
EnforcedStyleAlignWith: variable
2016-11-22 00:28:45 +00:00
2020-10-31 17:39:21 +00:00
Lint/EmptyBlock:
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*.rb'
2020-11-26 20:16:11 +00:00
2018-01-09 22:05:50 +00:00
Naming/PredicateName:
Exclude:
- '**/*/*matchers.rb'
2016-11-22 00:28:45 +00:00
2019-11-28 20:19:37 +00:00
Naming/MethodParameterName:
2018-03-16 16:46:35 +00:00
AllowedNames:
- 'el'
- 'id'
- 'c'
- 'x'
- 'y'
- 'on'
2018-01-09 22:05:50 +00:00
Style/ParallelAssignment:
2016-11-22 00:28:45 +00:00
Enabled: false
2018-01-09 22:05:50 +00:00
Style/SingleLineMethods:
2016-11-22 00:28:45 +00:00
Enabled: false
Style/Alias:
Enabled: false
Style/Documentation:
2018-05-14 21:30:34 +00:00
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*'
2016-11-22 00:28:45 +00:00
Enabled: false
2020-10-31 17:39:21 +00:00
Style/DocumentDynamicEvalDefinition:
Enabled: false
2018-01-09 22:05:50 +00:00
Style/EmptyElse:
EnforcedStyle: empty
2016-11-22 00:28:45 +00:00
2018-01-09 22:05:50 +00:00
Style/ClassAndModuleChildren:
2016-11-22 00:28:45 +00:00
Enabled: false
2018-03-01 00:11:41 +00:00
Style/NumericLiterals:
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*'
Style/SpecialGlobalVars:
Exclude:
- 'capybara.gemspec'
Style/IfUnlessModifier:
Exclude:
- 'spec/**/*'
2020-07-07 05:34:20 +00:00
Style/AccessorGrouping:
Enabled: false
2020-10-10 20:18:39 +00:00
2018-01-09 22:05:50 +00:00
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
2016-11-22 00:28:45 +00:00
2018-01-09 22:05:50 +00:00
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
2018-01-09 22:05:50 +00:00
Layout/CaseIndentation:
EnforcedStyle: end
2018-03-01 00:11:41 +00:00
2019-11-28 20:19:37 +00:00
Layout/FirstArrayElementIndentation:
2018-03-01 00:11:41 +00:00
EnforcedStyle: consistent
2019-05-30 22:07:27 +00:00
Layout/IndentationWidth:
2022-04-30 17:26:55 +00:00
AllowedPatterns: ['^\s*module']
2019-05-30 22:07:27 +00:00
2018-03-01 00:11:41 +00:00
Security/YAMLLoad:
Exclude:
- 'lib/capybara/spec/**/*'
- 'spec/**/*'
2020-11-16 19:23:02 +00:00
Performance/MethodObjectAsBlock:
Enabled: false
2021-03-27 19:23:04 +00: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/NoExpectationExample:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/PredicateMatcher:
2020-07-03 22:26:54 +00:00
Exclude:
- 'spec/basic_node_spec.rb'
2020-02-17 19:49:12 +00:00
2020-10-31 17:39:21 +00:00
RSpec/Capybara/FeatureMethods:
Enabled: false
2022-11-04 05:05:30 +00:00
RSpec/Capybara/NegationMatcher:
Enabled: false