rubocop-springest 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,415 @@
1
+ require: rubocop/cop/github
2
+
3
+ AllCops:
4
+ DisabledByDefault: true
5
+
6
+ Bundler/DuplicatedGem:
7
+ Enabled: true
8
+
9
+ Bundler/OrderedGems:
10
+ Enabled: true
11
+
12
+ Layout/BlockEndNewline:
13
+ Enabled: true
14
+
15
+ Layout/EndOfLine:
16
+ Enabled: true
17
+
18
+ Layout/InitialIndentation:
19
+ Enabled: true
20
+
21
+ Layout/SpaceAfterColon:
22
+ Enabled: true
23
+
24
+ Layout/SpaceAfterComma:
25
+ Enabled: true
26
+
27
+ Layout/SpaceAfterMethodName:
28
+ Enabled: true
29
+
30
+ Layout/SpaceAfterNot:
31
+ Enabled: true
32
+
33
+ Layout/SpaceAfterSemicolon:
34
+ Enabled: true
35
+
36
+ Layout/SpaceAroundBlockParameters:
37
+ Enabled: true
38
+
39
+ Layout/SpaceAroundEqualsInParameterDefault:
40
+ Enabled: true
41
+
42
+ Layout/SpaceInsideArrayPercentLiteral:
43
+ Enabled: true
44
+
45
+ Layout/SpaceInsideBrackets:
46
+ Enabled: true
47
+
48
+ Layout/SpaceInsideParens:
49
+ Enabled: true
50
+
51
+ Layout/SpaceInsideRangeLiteral:
52
+ Enabled: true
53
+
54
+ Layout/Tab:
55
+ Enabled: true
56
+
57
+ Layout/TrailingBlankLines:
58
+ Enabled: true
59
+
60
+ Layout/TrailingWhitespace:
61
+ Enabled: true
62
+
63
+ Layout/SpaceBeforeFirstArg:
64
+ Enabled: true
65
+
66
+ Layout/EmptyLineBetweenDefs:
67
+ Enabled: true
68
+ AllowAdjacentOneLineDefs: true
69
+ NumberOfEmptyLines: 1
70
+
71
+ Layout/EmptyLines:
72
+ Enabled: true
73
+
74
+ Layout/EmptyLinesAroundBeginBody:
75
+ Enabled: true
76
+
77
+ Layout/EmptyLinesAroundBlockBody:
78
+ Enabled: true
79
+
80
+ Layout/EmptyLinesAroundClassBody:
81
+ Enabled: true
82
+
83
+ Layout/EmptyLinesAroundMethodBody:
84
+ Enabled: true
85
+
86
+ Layout/EmptyLinesAroundModuleBody:
87
+ Enabled: true
88
+
89
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
90
+ Enabled: true
91
+
92
+ Layout/ExtraSpacing:
93
+ Enabled: true
94
+ AllowForAlignment: false
95
+
96
+ Layout/DotPosition:
97
+ Enabled: true
98
+ EnforcedStyle: trailing
99
+
100
+ Lint/BlockAlignment:
101
+ Enabled: true
102
+
103
+ Lint/CircularArgumentReference:
104
+ Enabled: true
105
+
106
+ Lint/ConditionPosition:
107
+ Enabled: true
108
+
109
+ Lint/Debugger:
110
+ Enabled: true
111
+
112
+ Lint/DefEndAlignment:
113
+ Enabled: true
114
+
115
+ Lint/DeprecatedClassMethods:
116
+ Enabled: true
117
+
118
+ Lint/DuplicateMethods:
119
+ Enabled: true
120
+
121
+ Lint/DuplicatedKey:
122
+ Enabled: true
123
+
124
+ Lint/EachWithObjectArgument:
125
+ Enabled: true
126
+
127
+ Lint/ElseLayout:
128
+ Enabled: true
129
+
130
+ Lint/EmptyEnsure:
131
+ Enabled: true
132
+
133
+ Lint/EmptyInterpolation:
134
+ Enabled: true
135
+
136
+ Lint/EndAlignment:
137
+ Enabled: true
138
+
139
+ Lint/EndInMethod:
140
+ Enabled: true
141
+
142
+ Lint/EnsureReturn:
143
+ Enabled: true
144
+
145
+ Lint/FloatOutOfRange:
146
+ Enabled: true
147
+
148
+ Lint/FormatParameterMismatch:
149
+ Enabled: true
150
+
151
+ Lint/LiteralAsCondition:
152
+ Enabled: true
153
+
154
+ Lint/LiteralInInterpolation:
155
+ Enabled: true
156
+
157
+ Lint/Loop:
158
+ Enabled: true
159
+
160
+ Lint/NextWithoutAccumulator:
161
+ Enabled: true
162
+
163
+ Lint/RandOne:
164
+ Enabled: true
165
+
166
+ Lint/RequireParentheses:
167
+ Enabled: true
168
+
169
+ Lint/RescueException:
170
+ Enabled: true
171
+
172
+ Lint/StringConversionInInterpolation:
173
+ Enabled: true
174
+
175
+ Lint/UnderscorePrefixedVariableName:
176
+ Enabled: true
177
+
178
+ Lint/UnneededDisable:
179
+ Enabled: true
180
+
181
+ Lint/UnneededSplatExpansion:
182
+ Enabled: true
183
+
184
+ Lint/UnreachableCode:
185
+ Enabled: true
186
+
187
+ Lint/UselessComparison:
188
+ Enabled: true
189
+
190
+ Lint/UselessSetterCall:
191
+ Enabled: true
192
+
193
+ Lint/Void:
194
+ Enabled: true
195
+
196
+ Lint/AmbiguousOperator:
197
+ Enabled: true
198
+
199
+ Lint/AmbiguousRegexpLiteral:
200
+ Enabled: true
201
+
202
+ Lint/HandleExceptions:
203
+ Enabled: true
204
+
205
+ Lint/NestedMethodDefinition:
206
+ Enabled: true
207
+
208
+ Lint/NonLocalExitFromIterator:
209
+ Enabled: true
210
+
211
+ Lint/ParenthesesAsGroupedExpression:
212
+ Enabled: true
213
+
214
+ Lint/ShadowingOuterLocalVariable:
215
+ Enabled: true
216
+
217
+ Lint/UnusedBlockArgument:
218
+ Enabled: true
219
+
220
+ Lint/UnusedMethodArgument:
221
+ Enabled: true
222
+
223
+ Lint/UselessAccessModifier:
224
+ Enabled: true
225
+
226
+ Lint/UselessAssignment:
227
+ Enabled: true
228
+
229
+ Lint/UselessElseWithoutRescue:
230
+ Enabled: true
231
+
232
+ Metrics/AbcSize:
233
+ Enabled: false
234
+
235
+ Metrics/BlockLength:
236
+ Enabled: false
237
+
238
+ Metrics/BlockNesting:
239
+ Enabled: true
240
+ Max: 4
241
+
242
+ Metrics/ClassLength:
243
+ Enabled: false
244
+
245
+ Metrics/CyclomaticComplexity:
246
+ Enabled: false
247
+
248
+ Metrics/LineLength:
249
+ Enabled: false
250
+
251
+ Metrics/MethodLength:
252
+ Enabled: false
253
+
254
+ Metrics/ModuleLength:
255
+ Enabled: false
256
+
257
+ Metrics/ParameterLists:
258
+ Enabled: true
259
+
260
+ Metrics/PerceivedComplexity:
261
+ Enabled: false
262
+
263
+ Naming/AsciiIdentifiers:
264
+ Enabled: true
265
+
266
+ Naming/ClassAndModuleCamelCase:
267
+ Enabled: true
268
+
269
+ Naming/FileName:
270
+ Enabled: true
271
+
272
+ Naming/MethodName:
273
+ Enabled: true
274
+
275
+ Performance/CaseWhenSplat:
276
+ Enabled: false
277
+
278
+ Performance/Count:
279
+ Enabled: true
280
+
281
+ Performance/Detect:
282
+ Enabled: true
283
+
284
+ Performance/DoubleStartEndWith:
285
+ Enabled: true
286
+
287
+ Performance/EndWith:
288
+ Enabled: true
289
+
290
+ Performance/FlatMap:
291
+ Enabled: true
292
+
293
+ Performance/HashEachMethods:
294
+ Enabled: true
295
+
296
+ Performance/LstripRstrip:
297
+ Enabled: true
298
+
299
+ Performance/RangeInclude:
300
+ Enabled: false
301
+
302
+ Performance/RedundantMatch:
303
+ Enabled: false
304
+
305
+ Performance/RedundantMerge:
306
+ Enabled: true
307
+ MaxKeyValuePairs: 1
308
+
309
+ Performance/RedundantSortBy:
310
+ Enabled: true
311
+
312
+ Performance/ReverseEach:
313
+ Enabled: true
314
+
315
+ Performance/Sample:
316
+ Enabled: true
317
+
318
+ Performance/Size:
319
+ Enabled: true
320
+
321
+ Performance/StartWith:
322
+ Enabled: true
323
+
324
+ Performance/Count:
325
+ Enabled: true
326
+
327
+ Performance/Detect:
328
+ Enabled: true
329
+
330
+ Performance/FlatMap:
331
+ Enabled: true
332
+ EnabledForFlattenWithoutParams: false
333
+
334
+ Performance/ReverseEach:
335
+ Enabled: true
336
+
337
+ Performance/Sample:
338
+ Enabled: true
339
+
340
+ Performance/Size:
341
+ Enabled: true
342
+
343
+ Performance/StringReplacement:
344
+ Enabled: true
345
+
346
+ Security/Eval:
347
+ Enabled: true
348
+
349
+ Style/ArrayJoin:
350
+ Enabled: true
351
+
352
+ Style/BeginBlock:
353
+ Enabled: true
354
+
355
+ Style/BlockComments:
356
+ Enabled: true
357
+
358
+ Style/CaseEquality:
359
+ Enabled: true
360
+
361
+ Style/CharacterLiteral:
362
+ Enabled: true
363
+
364
+ Style/ClassMethods:
365
+ Enabled: true
366
+
367
+ Style/Copyright:
368
+ Enabled: false
369
+
370
+ Style/DefWithParentheses:
371
+ Enabled: true
372
+
373
+ Style/EndBlock:
374
+ Enabled: true
375
+
376
+ Style/FlipFlop:
377
+ Enabled: true
378
+
379
+ Style/For:
380
+ Enabled: true
381
+
382
+ Style/FrozenStringLiteralComment:
383
+ Enabled: false
384
+
385
+ Style/HashSyntax:
386
+ Enabled: true
387
+ EnforcedStyle: ruby19
388
+
389
+ Style/LambdaCall:
390
+ Enabled: true
391
+
392
+ Style/MethodCallWithoutArgsParentheses:
393
+ Enabled: true
394
+
395
+ Style/MethodDefParentheses:
396
+ Enabled: true
397
+
398
+ Style/MultilineIfThen:
399
+ Enabled: true
400
+
401
+ Style/NilComparison:
402
+ Enabled: true
403
+
404
+ Style/Not:
405
+ Enabled: true
406
+
407
+ Style/OneLineConditional:
408
+ Enabled: true
409
+
410
+ Style/StabbyLambdaParentheses:
411
+ Enabled: true
412
+
413
+ Style/StringLiterals:
414
+ Enabled: true
415
+ EnforcedStyle: double_quotes
data/config/rails.yml ADDED
@@ -0,0 +1,118 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ Rails/FindEach:
5
+ Enabled: false
6
+
7
+ Rails/OutputSafety:
8
+ Enabled: true
9
+
10
+ Rails/PluralizationGrammar:
11
+ Enabled: true
12
+
13
+ Rails/RequestReferer:
14
+ Enabled: true
15
+ EnforcedStyle: referrer
16
+
17
+ Rails/ScopeArgs:
18
+ Enabled: true
19
+
20
+ Rails/UniqBeforePluck:
21
+ Enabled: true
22
+
23
+ GitHub/RailsApplicationRecord:
24
+ Enabled: true
25
+
26
+ GitHub/RailsControllerRenderActionSymbol:
27
+ Enabled: true
28
+ Include:
29
+ - 'app/controllers/**/*.rb'
30
+
31
+ GitHub/RailsControllerRenderLiteral:
32
+ Enabled: true
33
+ StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
34
+ Include:
35
+ - 'app/controllers/**/*.rb'
36
+
37
+ GitHub/RailsControllerRenderPathsExist:
38
+ Enabled: true
39
+ ViewPath:
40
+ - 'app/views'
41
+ Include:
42
+ - 'app/controllers/**/*.rb'
43
+
44
+ GitHub/RailsControllerRenderShorthand:
45
+ Enabled: true
46
+ StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-shorthand.md
47
+ Include:
48
+ - 'app/controllers/**/*.rb'
49
+
50
+ GitHub/RailsRenderInline:
51
+ Enabled: true
52
+ StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-inline.md
53
+ Include:
54
+ - 'app/controllers/**/*.rb'
55
+ - 'app/helpers/**/*.rb'
56
+ - 'app/view_models/**/*.rb'
57
+ - 'app/views/**/*.erb'
58
+
59
+ GitHub/RailsRenderObjectCollection:
60
+ Enabled: false
61
+
62
+ GitHub/RailsViewRenderLiteral:
63
+ Enabled: true
64
+ StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
65
+ Include:
66
+ - 'app/helpers/**/*.rb'
67
+ - 'app/view_models/**/*.rb'
68
+ - 'app/views/**/*.erb'
69
+
70
+ GitHub/RailsViewRenderPathsExist:
71
+ Enabled: true
72
+ ViewPath:
73
+ - 'app/views'
74
+ Include:
75
+ - 'app/helpers/**/*.rb'
76
+ - 'app/view_models/**/*.rb'
77
+ - 'app/views/**/*.erb'
78
+
79
+ GitHub/RailsViewRenderShorthand:
80
+ Enabled: true
81
+ Include:
82
+ - 'app/helpers/**/*.rb'
83
+ - 'app/view_models/**/*.rb'
84
+ - 'app/views/**/*.erb'
85
+
86
+ # Exclude Rails ERB files from incompatible cops
87
+
88
+ Lint/BlockAlignment:
89
+ Exclude:
90
+ - 'app/views/**/*.erb'
91
+
92
+ Style/For:
93
+ Exclude:
94
+ - 'app/views/**/*.erb'
95
+
96
+ Style/OneLineConditional:
97
+ Exclude:
98
+ - 'app/views/**/*.erb'
99
+
100
+ Style/Semicolon:
101
+ Exclude:
102
+ - 'app/views/**/*.erb'
103
+
104
+ Layout/SpaceInsideParens:
105
+ Exclude:
106
+ - 'app/views/**/*.erb'
107
+
108
+ Style/StringLiterals:
109
+ Exclude:
110
+ - 'app/views/**/*.erb'
111
+
112
+ Layout/TrailingBlankLines:
113
+ Exclude:
114
+ - 'app/views/**/*.erb'
115
+
116
+ Layout/TrailingWhitespace:
117
+ Exclude:
118
+ - 'app/views/**/*.erb'