forked from rspec/rspec-core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
53 lines (43 loc) · 1.26 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
inherit_from: .rubocop_rspec_base.yml
AllCops:
Exclude:
# This code was taken from the backports gem. We don't want to mess with it.
- lib/rspec/core/backport_random.rb
# This should go down over time.
ClassLength:
Max: 330
# This should go down over time.
LineLength:
Max: 130
Lint/HandleExceptions:
Exclude:
- lib/rspec/core/example.rb
- lib/rspec/core/mocking_adapters/mocha.rb
- lib/rspec/core/runner.rb
- lib/rspec/core/test_unit_assertions_adapter.rb
Lint/LiteralInInterpolation:
Enabled: false
# This should go down over time.
MethodLength:
Max: 40
# Exclude the default spec_helper to make it easier to uncomment out
# default settings (for both users and the Cucumber suite).
Style/BlockComments:
Exclude:
- lib/rspec/core/project_initializer/spec/spec_helper.rb
# Not sure what to do with this rule yet.
Style/ClassAndModuleChildren:
Exclude:
- lib/rspec/core/formatters.rb
- lib/rspec/core/notifications.rb
- lib/rspec/core/option_parser.rb
- lib/rspec/core/reporter.rb
# This should go down over time.
Style/CyclomaticComplexity:
Max: 12
Style/RaiseArgs:
Exclude:
- lib/rspec/core/configuration.rb
- lib/rspec/core/hooks.rb
- lib/rspec/core/option_parser.rb
- lib/rspec/core/pending.rb