-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
54 lines (44 loc) · 890 Bytes
/
.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
inherit_from: .rubocop_todo.yml
require:
- rubocop-factory_bot
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
AllCops:
NewCops: enable
Exclude:
- 'db/schema.rb'
Metrics/ClassLength:
Description: 'Avoid classes longer than 100 lines of code.'
Max: 100
Enabled: true
Metrics/MethodLength:
Max: 50
Enabled: true
Metrics/ModuleLength:
Description: 'Avoid modules longer than 100 lines of code.'
Max: 100
Enabled: true
Metrics/ParameterLists:
Description: 'Pass no more than four parameters into a method.'
Max: 4
Enabled: true
Metrics/BlockLength:
CountComments: false
Max: 5
AllowedMethods:
- context
- describe
- it
- shared_examples
- shared_examples_for
- namespace
- draw
- configure
- group
RSpec/NestedGroups:
Max: 4
RSpec/ExampleLength:
Max: 20
RSpec/MultipleMemoizedHelpers:
Max: 10