-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.rubocop_factory_bot.yml
53 lines (40 loc) · 1.23 KB
/
.rubocop_factory_bot.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
---
# Last updated to 2.26.1
require:
- 'rubocop-factory_bot'
FactoryBot/AssociationStyle:
Enabled: true
EnforcedStyle: 'explicit'
FactoryBot/AttributeDefinedStatically:
Enabled: true
FactoryBot/ConsistentParenthesesStyle:
Enabled: true
ExplicitOnly: false
FactoryBot/CreateList:
Enabled: true
ExplicitOnly: false
FactoryBot/ExcessiveCreateList:
Enabled: true
FactoryBot/FactoryAssociationWithStrategy:
Enabled: true
Include:
- '**/*_spec.rb'
- '**/spec/**/*'
- '**/test/**/*'
- '**/features/support/factories/**/*.rb'
FactoryBot/FactoryClassName:
Enabled: true
FactoryBot/FactoryNameStyle:
Enabled: true
ExplicitOnly: false
FactoryBot/IdSequence:
Enabled: true
FactoryBot/RedundantFactoryOption:
Enabled: true
Include:
- '**/*_spec.rb'
- '**/spec/**/*'
- '**/test/**/*'
- '**/features/support/factories/**/*.rb'
FactoryBot/SyntaxMethods:
Enabled: true