-
-
Notifications
You must be signed in to change notification settings - Fork 8k
/
.rubocop.yml
146 lines (118 loc) · 3.13 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
require:
- rubocop-performance
- rubocop-rspec
AllCops:
TargetRubyVersion: 3.0
NewCops: enable
Exclude:
- !ruby/regexp /lib\/selenium\/devtools\/v\d+/
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
Layout/LineLength:
AllowedPatterns:
- '^\s*#'
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Metrics/AbcSize:
Max: 30
Exclude:
- 'lib/selenium/webdriver/common/driver_finder.rb'
- 'lib/selenium/webdriver/common/options.rb'
- 'lib/selenium/webdriver/remote/capabilities.rb'
- 'lib/selenium/webdriver/remote/http/curb.rb'
- 'lib/selenium/webdriver/support/color.rb'
Metrics/BlockLength:
Max: 18
Exclude:
- 'spec/**/*.rb'
- 'selenium-*.gemspec'
Metrics/ClassLength:
CountComments: false
Max: 160
Exclude:
- 'lib/selenium/webdriver/common/driver.rb'
- 'lib/selenium/webdriver/remote/bridge.rb'
- 'lib/selenium/webdriver/remote/capabilities.rb'
- 'spec/integration/selenium/webdriver/spec_support/test_environment.rb'
- 'spec/**/*.rb'
Metrics/CyclomaticComplexity:
Max: 9
Exclude:
- 'lib/selenium/webdriver/support/color.rb'
- 'lib/selenium/webdriver/common/logger.rb'
Metrics/MethodLength:
CountComments: false
Max: 22
Exclude:
- 'lib/selenium/server.rb'
- 'lib/selenium/webdriver/common/options.rb'
- 'lib/selenium/webdriver/common/driver.rb'
- 'lib/selenium/webdriver/common/driver_finder.rb'
- 'lib/selenium/webdriver/remote/http/default.rb'
Metrics/ModuleLength:
CountComments: false
Max: 110
Exclude:
- 'lib/selenium/webdriver/common/platform.rb'
- 'spec/**/*'
Metrics/PerceivedComplexity:
Max: 9
Exclude:
- 'lib/selenium/webdriver/common/options.rb'
- 'lib/selenium/webdriver/common/local_driver.rb'
- 'lib/selenium/webdriver/common/logger.rb'
Naming/FileName:
Exclude:
- 'lib/selenium-webdriver.rb'
Naming/MethodParameterName:
AllowedNames:
- x
- y
- ex
- by
- id
- io
RSpec/AnyInstance:
Enabled: false
RSpec/BeforeAfterAll:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/InstanceVariable:
Exclude:
- 'spec/unit/selenium/webdriver/socket_poller_spec.rb'
- 'spec/integration/selenium/webdriver/chrome/print_pdf_spec.rb'
RSpec/MultipleExpectations:
Enabled: false
RSpec/NoExpectationExample:
Exclude:
- 'spec/integration/selenium/webdriver/guard_spec.rb'
- 'spec/integration/selenium/webdriver/takes_screenshot_spec.rb'
RSpec/MultipleMemoizedHelpers:
Max: 6
Exclude:
- 'spec/unit/selenium/webdriver/common/interactions/*_spec.rb'
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/CommentedKeyword:
Enabled: false
# __dir__ should be avoided when used with Bazel.
Style/Dir:
Exclude:
- 'selenium-devtools.gemspec'
- 'selenium-webdriver.gemspec'
# Consider documenting all top-level classes and modules
Style/Documentation:
Enabled: false
Style/HashEachMethods:
Enabled: true
# Port Integers do not need underscores
Style/NumericLiterals:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Lint/Debugger:
Enabled: true
DebuggerMethods:
Capybara:
- save_screenshot: ~