forked from watir/watir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
105 lines (83 loc) · 2.19 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-rake
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
Exclude:
- 'lib/watir/elements/html_elements.rb'
- 'lib/watir/elements/svg_elements.rb'
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Metrics/AbcSize:
Max: 22
Exclude:
- 'lib/watir/locators/element/selector_builder.rb'
- 'lib/watir/locators/element/selector_builder/*.rb'
- 'lib/watir/generator/base/generator.rb'
- 'spec/locator_spec_helper.rb'
Metrics/BlockLength:
Exclude:
- 'support/doctest_helper.rb'
- 'watir.gemspec'
- 'Rakefile'
Metrics/ClassLength:
Max: 93
Exclude:
- 'lib/watir/capabilities.rb'
- 'lib/watir/locators/element/matcher.rb'
- 'lib/watir/locators/element/selector_builder.rb'
- 'lib/watir/locators/element/selector_builder/xpath.rb'
- 'lib/watir/browser.rb'
- 'lib/watir/window.rb'
- 'lib/watir/elements/element.rb'
- 'lib/watir/elements/select.rb'
- 'lib/watir/generator/base/spec_extractor.rb'
- 'lib/watir/element_collection.rb'
- 'spec/**/*_spec.rb'
Metrics/CyclomaticComplexity:
Max: 9
Exclude:
- 'lib/watir/locators/element/selector_builder.rb'
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 18
Exclude:
- 'lib/watir/locators/element/selector_builder.rb'
- 'lib/watir/locators/element/selector_builder/regexp_disassembler.rb'
Metrics/ModuleLength:
Exclude:
- 'spec/**/*'
Metrics/PerceivedComplexity:
Max: 10
RSpec/AnyInstance:
Enabled: false
RSpec/BeforeAfterAll:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Exclude:
- 'spec/watirspec/capabilities_spec.rb'
RSpec/NoExpectationExample:
Exclude:
- 'spec/watirspec/cookies_spec.rb'
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/CommentedKeyword:
Enabled: false
# truthy is not true
Style/DoubleNegation:
Enabled: false
Style/GlobalVars:
AllowedVariables:
- $browser
# Need to add new keys into hash during iteration
Style/HashEachMethods:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false