-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
62 lines (60 loc) · 1.22 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
require: rubocop-rspec
AllCops:
Exclude:
- 'bin/**/*'
- 'config/**/*'
- '**/*.ru'
- 'db/schema.rb'
SuggestExtensions: false
# Avoid methods longer than 30 lines of code
MethodLength:
Max: 30
Metrics/BlockLength:
ExcludedMethods: ['controllers', 'describe', 'context']
Metrics/LineLength:
Max: 200
IgnoredPatterns: ['(When|Given|Then)', '(get|post|put)']
Naming/PredicateName:
Enabled: false
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Style/Documentation:
Exclude: ['**/*']
RSpec/AnyInstance:
Enabled: false
RSpec/ExampleWording:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/HookArgument:
EnforcedStyle: each
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/MultipleExpectations:
Max: 3
EndOfLine:
Enabled: false
RSpec/NestedGroups:
Max: 6
RSpec/ExampleLength:
Max: 19
Style/HashSyntax:
EnforcedStyle: no_mixed_keys
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
RSpec/DescribedClass:
Enabled: false
RSpec/InstanceVariable:
Enabled: false
Style/ClassVars:
Enabled: false
Layout/EndOfLine:
Enabled: false
RSpec/ContextWording:
Enabled: false
RPesc/Metrics/ParameterLists:
Max: 6
RSpec/MultipleMemoizedHelpers:
Max: 13
RSpec/MultipleExpectations:
Max: 5