This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
189 lines (141 loc) · 2.97 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
require:
- ./linters/lint/dangerous_methods.rb
- ./linters/lint/method_sequence.rb
AllCops:
Exclude:
- db/transforms/*
- db/migrate/*.rb
- db/schema.rb
- db/seeds.rb
- node_modules/**/*
- vendor/**/*
Layout/AlignParameters:
Enabled: false
Layout/DotPosition:
EnforcedStyle: trailing
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineOperationIndentation:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Lint/AmbiguousBlockAssociation:
Exclude:
- spec/**/*.rb
Lint/AmbiguousOperator:
Enabled: false
Lint/HandleExceptions:
Enabled: false
Lint/UnneededSplatExpansion:
Enabled: false
Lint/UnreachableCode:
Enabled: false # FIXME: Re-enable once refactorings are complete
Lint/UnusedMethodArgument:
Exclude:
- app/jobs/**/*.rb
- app/mocks/**/*.rb
Lint/SafeNavigationChain:
Enabled: false
Metrics/AbcSize:
Max: 40
Metrics/BlockLength:
Max: 25
Exclude:
- app/*/concerns/**/*.rb
- config/environments/*.rb
- config/routes.rb
- spec/**/*.rb
- lib/tasks/*.rake
Metrics/ClassLength:
Max: 250
Metrics/CyclomaticComplexity:
Max: 5
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Max: 250
Metrics/ParameterLists:
Exclude:
- app/mocks/**/*.rb
Naming/MemoizedInstanceVariableName:
EnforcedStyleForLeadingUnderscores: required
Naming/VariableName:
Exclude:
- app/mocks/**/*.rb
Naming/VariableNumber:
EnforcedStyle: snake_case
Rails:
Enabled: true
Exclude:
- lib/**/*.rb
Rails/ActiveRecordAliases:
Enabled: true
Rails/ApplicationRecord:
Exclude:
- app/models/application_view.rb
Rails/FilePath:
Enabled: false
Rails/Date:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/TimeZone:
Enabled: false
Rails/UniqBeforePluck:
Exclude:
- spec/**/*.rb
Style/AsciiComments:
Enabled: false
Style/AndOr:
EnforcedStyle: conditionals
Style/BlockDelimiters:
EnforcedStyle: semantic
Exclude:
- spec/factories/**/*.rb
FunctionalMethods:
- after
- before
- each
- expect
- find
- let
- let!
- max_by
- min_by
- perform_enqueued_jobs
- subject
Style/ClassAndModuleChildren:
EnforcedStyle: nested
Exclude:
- app/controllers/**/*.rb
- app/controllers/concerns/*/*.rb
- app/models/**/*.rb
- app/models/concerns/*/*.rb
- config/initializers/*.rb
Style/Documentation:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FormatString:
EnforcedStyle: percent
Style/FrozenStringLiteralComment:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/MixinUsage:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/NumericLiterals:
MinDigits: 5
Style/PercentLiteralDelimiters:
PreferredDelimiters:
"%w": "[]"
Style/RegexpLiteral:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/SymbolArray:
EnforcedStyle: brackets