-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.rubocop.yml
56 lines (43 loc) · 1 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
inherit_from:
- .rubocop_rspec_base.yml
AllCops:
NewCops: enable
TargetRubyVersion: 2.0
SuggestExtensions: false
Exclude:
- bin/**/*
- tmp/**/*
- bundle/**/*
Gemspec/DeprecatedAttributeAssignment:
Enabled: false
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/LineLength:
Max: 120
# Over time we'd like to get this down, but this is what we're at now.
Metrics/AbcSize:
Max: 28
# Over time we'd like to get this down, but this is what we're at now.
Metrics/BlockLength:
Max: 86
Exclude:
- spec/**/*
Metrics/ModuleLength:
Max: 140
# Over time we'd like to get this down, but this is what we're at now.
Metrics/PerceivedComplexity:
Max: 10
Naming/FileName:
Exclude:
- lib/rspec-activemodel-mocks.rb
Style/ClassAndModuleChildren:
Exclude:
- lib/rspec/active_model/mocks/mocks.rb
# Still support older Rubies
Style/ExpandPathArguments:
Enabled: false
Style/NumericLiterals:
Exclude:
- templates/sample/db/*
Style/OptionalBooleanParameter:
Enabled: false