-
Notifications
You must be signed in to change notification settings - Fork 3
/
.ducalis.yml
142 lines (109 loc) · 2.06 KB
/
.ducalis.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
AllCops:
DisabledByDefault: true
TargetRubyVersion: ~
Exclude:
- 'db/**/*'
- 'node_modules/**/*'
- 'vendor/bundle/**/*'
Ducalis/BlackListSuffix:
Enabled: true
BlackList:
- Analyzer
- Client
- Handler
- Loader
- Manager
- Object
- Organizer
- Processor
- Renderer
- Service
- Sorter
Ducalis/EnforceNamespace:
Enabled: true
ServicePath: 'app/services'
Ducalis/PreferableMethods:
Enabled: true
Ducalis/Recursion:
Enabled: true
Ducalis/ComplexRegex:
Enabled: true
MaxComplexity: 3
Ducalis/CaseMapping:
Enabled: true
Ducalis/FacadePattern:
Enabled: true
MaxInstanceVariables: 4
Ducalis/CallbacksActiverecord:
Enabled: true
Ducalis/DataAccessObjects:
Enabled: true
Ducalis/PossibleTap:
Enabled: false
Ducalis/PublicSend:
Enabled: true
Ducalis/FetchExpression:
Enabled: true
Ducalis/ProtectedScopeCop:
Enabled: true
Exclude:
- 'spec/**/*.rb'
- 'app/workers/**/*.rb'
- 'app/mailers/**/*.rb'
Ducalis/RegexCop:
Enabled: true
Exclude:
- 'spec/**/*.rb'
Ducalis/StringsInActiverecords:
Enabled: true
Ducalis/TooLongWorkers:
Enabled: true
Max: 25
Ducalis/OnlyDefs:
Enabled: true
Ducalis/UselessOnly:
Enabled: true
Ducalis/RestOnlyCop:
Enabled: true
Ducalis/KeywordDefaults:
Enabled: true
Ducalis/MultipleTimes:
Enabled: true
Ducalis/OptionsArgument:
Enabled: true
Ducalis/RubocopDisable:
Enabled: true
Ducalis/UncommentedGem:
Enabled: true
Include:
- '**/Gemfile'
- '**/gems.rb'
Ducalis/ParamsPassing:
Enabled: true
Exclude:
- 'spec/**/*.rb'
Ducalis/ControllersExcept:
Enabled: true
Ducalis/PrivateInstanceAssign:
Enabled: true
Ducalis/EvlisOverusing:
Enabled: true
Ducalis/StandardMethods:
Enabled: true
Ducalis/RaiseWithoutErrorClass:
Enabled: true
Ducalis/UnlockedGem:
Enabled: true
Ducalis/ModuleLikeClass:
Enabled: true
AllowedIncludes:
- Sidekiq::Worker
- Singleton
- ActiveModel::Model
- Virtus.model
Ducalis/DescriptiveBlockNames:
Enabled: true
MinimalLenght: 3
WhiteList:
- to
- id