rubocop-inhouse 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73733e7650f001e804b425b0c713380c6a00045215def6f4a3d8e8af3bfeda46
4
- data.tar.gz: 1e7ecaa2ff345038dc9713f01a7dc509181096332219f3f8521c8c652a735f4f
3
+ metadata.gz: 645fd4c7cf0e24a70bf978cd60e845c34935d7f3d2db4e34114c61c62a6b5309
4
+ data.tar.gz: 85a80197ea84144cc403567f617af97a5631f7c14891da8fe3c57604706dfec0
5
5
  SHA512:
6
- metadata.gz: ce930442a64cc3047d13d21235d26dd850b513b0e1a4456e5e1127f67c79229c3179db44b535c56e55c0cc50ea4178358b18f1a0d601251540c8e4eebf711ea9
7
- data.tar.gz: ca3fabcf7f11a72e6fbe3db227186301a0f50a88578d64906313bfbe7697013b87dbc0c3576a4f0f9d844e9a8b9512031f1493bb03aa762b334dbd0cf38c79c2
6
+ metadata.gz: 38366c7877dcbb7577c31cf97e069430419b30769545cac453849022fee1cf68743569a94ee78a00be3595d856c54a8a12bab4352a73be02be742672f9c2163a
7
+ data.tar.gz: d9b87bf3182f6c3fa3fac67def2a4dee1f49d4f7dce739b82cd1cfdda6a09b22ddd6fcf0e375abc10a8895cb23a6cf2bf7c4ad16adf2ccc804b8818299f432e7
data/config/capybara.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  Capybara/ClickLinkOrButtonStyle:
2
2
  Enabled: true
3
+ EnforcedStyle: strict
3
4
 
4
5
  Capybara/CurrentPathExpectation:
5
6
  Enabled: true
data/config/default.yml CHANGED
@@ -5,6 +5,10 @@ require:
5
5
  - rubocop-rake
6
6
 
7
7
  inherit_from:
8
+ - ./layout.yml
9
+ - ./lint.yml
10
+ - ./style.yml
11
+ - ./metrics.yml
8
12
  - ./rspec.yml
9
13
  - ./performance.yml
10
14
 
@@ -12,7 +16,10 @@ AllCops:
12
16
  NewCops: enable
13
17
  Exclude:
14
18
  - "**/bin/*"
19
+ - "**/db/migrate/*"
20
+ - "**/db/schema.rb"
15
21
 
22
+ # ==== GEMSPEC ====
16
23
  Gemspec/DeprecatedAttributeAssignment:
17
24
  Enabled: true
18
25
 
@@ -22,535 +29,15 @@ Gemspec/DevelopmentDependencies:
22
29
  Gemspec/RequireMFA:
23
30
  Enabled: true
24
31
 
25
- # ==== LAYOUT ====
26
- Layout/BlockAlignment:
27
- EnforcedStyleAlignWith: start_of_block
28
-
29
- Layout/ClassStructure:
30
- ExpectedOrder:
31
- - module_inclusion
32
- - constants
33
- - association
34
- - public_attribute_macros
35
- - public_delegate
36
- - macros
37
- - initializer
38
- - public_class_methods
39
- - public_methods
40
- - protected_attribute_macros
41
- - protected_methods
42
- - private_attribute_macros
43
- - private_delegate
44
- - private_methods
45
-
46
- Layout/EndAlignment:
47
- EnforcedStyleAlignWith: variable
48
-
49
- Layout/FirstArgumentIndentation:
50
- EnforcedStyle: consistent
51
-
52
- Layout/FirstArrayElementIndentation:
53
- EnforcedStyle: consistent
54
-
55
- Layout/FirstArrayElementLineBreak:
56
- Enabled: true
57
-
58
- Layout/FirstHashElementIndentation:
59
- EnforcedStyle: consistent
60
-
61
- Layout/FirstHashElementLineBreak:
62
- Enabled: true
63
-
64
- Layout/FirstMethodArgumentLineBreak:
65
- Enabled: true
66
-
67
- Layout/FirstMethodParameterLineBreak:
68
- Enabled: true
69
-
70
- Layout/LineContinuationSpacing:
71
- Enabled: true
72
-
73
- Layout/LineContinuationLeadingSpace:
74
- Enabled: true
75
- EnforcedStyle: trailing
76
-
77
- Layout/LineEndStringConcatenationIndentation:
78
- Enabled: true
79
-
80
- Layout/LineLength:
81
- Max: 80
82
- Exclude:
83
- - '**/spec/**/*'
84
- - '**/db/schema.rb'
85
-
86
- Layout/MultilineArrayBraceLayout:
87
- EnforcedStyle: new_line
88
-
89
- Layout/MultilineArrayLineBreaks:
90
- Enabled: true
91
-
92
- Layout/MultilineOperationIndentation:
93
- EnforcedStyle: indented
94
-
95
- Layout/MultilineAssignmentLayout:
96
- Enabled: true
97
- EnforcedStyle: same_line
98
-
99
- Layout/MultilineHashBraceLayout:
100
- EnforcedStyle: new_line
101
-
102
- Layout/MultilineHashKeyLineBreaks:
103
- Enabled: true
104
-
105
- Layout/MultilineMethodArgumentLineBreaks:
106
- Enabled: true
107
- AllowMultilineFinalElement: true
108
-
109
- Layout/MultilineMethodCallBraceLayout:
110
- EnforcedStyle: new_line
111
-
112
- Layout/MultilineMethodCallIndentation:
113
- EnforcedStyle: indented
114
-
115
- Layout/SpaceAroundMethodCallOperator:
116
- Enabled: true
117
-
118
- Layout/MultilineMethodDefinitionBraceLayout:
119
- EnforcedStyle: new_line
120
-
121
- Layout/MultilineMethodParameterLineBreaks:
122
- Enabled: true
123
-
124
- Layout/ParameterAlignment:
125
- EnforcedStyle: with_fixed_indentation
126
-
127
- Layout/SingleLineBlockChain:
128
- Enabled: true
129
-
130
- Layout/SpaceBeforeBrackets:
131
- Enabled: true
132
-
133
- Layout/SpaceInLambdaLiteral:
134
- EnforcedStyle: require_no_space
135
-
136
- # ==== LINTING ====
137
- Lint/AmbiguousAssignment:
138
- Enabled: true
139
-
140
- Lint/AmbiguousBlockAssociation:
141
- Exclude:
142
- - '**/spec/**/*'
143
-
144
- Lint/AmbiguousOperatorPrecedence:
145
- Enabled: true
146
-
147
- Lint/AmbiguousRange:
148
- Enabled: true
149
-
150
- Lint/AssignmentInCondition:
151
- Enabled: false
152
-
153
- Lint/BinaryOperatorWithIdenticalOperands:
154
- Enabled: true
155
-
156
- Lint/ConstantOverwrittenInRescue:
157
- Enabled: true
158
-
159
- Lint/DeprecatedConstants:
160
- Enabled: true
161
-
162
- Lint/DuplicateBranch:
163
- Enabled: true
164
-
165
- Lint/DuplicateMagicComment:
166
- Enabled: true
167
-
168
- Lint/DuplicateMatchPattern:
169
- Enabled: true
170
-
171
- Lint/DuplicateRegexpCharacterClassElement:
172
- Enabled: true
173
-
174
- Lint/EmptyBlock:
175
- Enabled: true
176
-
177
- Lint/EmptyClass:
178
- Enabled: true
179
-
180
- Lint/EmptyInPattern:
181
- Enabled: true
182
-
183
- Lint/IncompatibleIoSelectWithFiberScheduler:
184
- Enabled: true
185
-
186
- Lint/LambdaWithoutLiteralBlock:
187
- Enabled: true
188
-
189
- Lint/MixedCaseRange:
190
- Enabled: true
191
-
192
- Lint/NoReturnInBeginEndBlocks:
193
- Enabled: true
194
-
195
- Lint/NonAtomicFileOperation:
196
- Enabled: true
197
-
198
- Lint/NumberConversion:
199
- Enabled: true
200
-
201
- Lint/NumberedParameterAssignment:
202
- Enabled: true
203
-
204
- Lint/OrAssignmentToConstant:
205
- Enabled: true
206
-
207
- Lint/RedundantDirGlobSort:
208
- Enabled: true
209
-
210
- Lint/RedundantRegexpQuantifiers:
211
- Enabled: true
212
-
213
- Lint/RefinementImportMethods:
214
- Enabled: true
215
-
216
- Lint/RequireRangeParentheses:
217
- Enabled: true
218
-
219
- Lint/RequireRelativeSelfPath:
220
- Enabled: true
221
-
222
- Lint/ShadowingOuterLocalVariable:
223
- Enabled: false
224
-
225
- Lint/SymbolConversion:
226
- Enabled: true
227
-
228
- Lint/ToEnumArguments:
229
- Enabled: true
230
-
231
- Lint/TripleQuotes:
232
- Enabled: true
233
-
234
- Lint/UnexpectedBlockArity:
235
- Enabled: true
236
-
237
- Lint/UnmodifiedReduceAccumulator:
238
- Enabled: true
239
-
240
- Lint/UnusedBlockArgument:
241
- IgnoreEmptyBlocks: false
242
-
243
- Lint/UnusedMethodArgument:
244
- IgnoreEmptyMethods: false
245
-
246
- Lint/UselessRescue:
247
- Enabled: true
248
-
249
- Lint/UselessRuby2Keywords:
250
- Enabled: true
251
-
252
- # ==== METRICS ====
253
- Metrics/AbcSize:
254
- Max: 20
255
-
256
- Metrics/BlockLength:
257
- CountComments: false
258
- Max: 25
259
- Exclude:
260
- - '**/db/schema.rb'
261
- - '**/spec/**/*'
262
- - '**/*.rake'
263
- - '**/factories/**/*'
264
- - '**/config/routes.rb'
265
-
266
- Metrics/CollectionLiteralLength:
267
- Enabled: true
268
-
269
- Metrics/ClassLength:
270
- CountAsOne: ['array', 'hash']
271
- Max: 100
272
- Exclude:
273
- - '**/app/controllers/**/*'
274
-
275
- Metrics/CyclomaticComplexity:
276
- Max: 10
277
-
278
- Metrics/MethodLength:
279
- CountAsOne: ['array', 'hash']
280
- Max: 20
281
-
282
- Metrics/ModuleLength:
283
- CountAsOne: ['array', 'hash']
284
- Max: 100
285
- Exclude:
286
- - '**/spec/**/*'
287
-
288
- Metrics/ParameterLists:
289
- Max: 2
290
- CountKeywordArgs: false
291
-
292
- Metrics/PerceivedComplexity:
293
- Max: 8
294
-
295
- # ==== NAMING ====
32
+ # ==== NAMING ====
296
33
  Naming/BlockForwarding:
297
34
  Enabled: true
298
35
  EnforcedStyle: explicit
299
36
 
300
- # ==== SECURITY ====
37
+ # ==== SECURITY ====
301
38
  Security/CompoundHash:
302
39
  Enabled: true
303
40
 
304
41
  Security/IoMethods:
305
42
  Enabled: true
306
43
 
307
- # ==== STYE ====
308
- Style/ArgumentsForwarding:
309
- Enabled: true
310
-
311
- Style/ArrayCoercion:
312
- Enabled: true
313
-
314
- Style/ArrayIntersect:
315
- Enabled: true
316
-
317
- Style/AutoResourceCleanup:
318
- Enabled: true
319
-
320
- Style/CollectionCompact:
321
- Enabled: true
322
-
323
- Style/CollectionMethods:
324
- Enabled: true
325
-
326
- Style/ComparableClamp:
327
- Enabled: true
328
-
329
- Style/ConstantVisibility:
330
- Enabled: true
331
-
332
- Style/ConcatArrayLiterals:
333
- Enabled: true
334
-
335
- Style/DataInheritance:
336
- Enabled: true
337
-
338
- Style/DirEmpty:
339
- Enabled: true
340
-
341
- Style/Documentation:
342
- Enabled: false
343
-
344
- Style/DocumentDynamicEvalDefinition:
345
- Enabled: true
346
-
347
- Style/EmptyHeredoc:
348
- Enabled: true
349
-
350
- Style/EnvHome:
351
- Enabled: true
352
-
353
- Style/ExactRegexpMatch:
354
- Enabled: true
355
-
356
- Style/EndlessMethod:
357
- Enabled: true
358
- EnforcedStyle: disallow
359
-
360
- Style/FileEmpty:
361
- Enabled: true
362
-
363
- Style/FileWrite:
364
- Enabled: true
365
-
366
- Style/FrozenStringLiteralComment:
367
- Enabled: true
368
- Exclude:
369
- - "**/db/schema.rb"
370
-
371
- Style/FetchEnvVar:
372
- Enabled: true
373
-
374
- Style/FileRead:
375
- Enabled: true
376
-
377
- Style/HashConversion:
378
- Enabled: true
379
-
380
- Style/HashExcept:
381
- Enabled: true
382
-
383
- Style/IfWithBooleanLiteralBranches:
384
- Enabled: true
385
-
386
- Style/ImplicitRuntimeError:
387
- Enabled: true
388
-
389
- Style/InPatternThen:
390
- Enabled: true
391
-
392
- Style/InvertibleUnlessCondition:
393
- Enabled: true
394
-
395
- Style/InlineComment:
396
- Enabled: true
397
-
398
- Style/IpAddresses:
399
- Enabled: true
400
-
401
- Style/Lambda:
402
- EnforcedStyle: literal
403
-
404
- Style/MagicCommentFormat:
405
- Enabled: true
406
-
407
- Style/MultilineInPatternThen:
408
- Enabled: true
409
-
410
- Style/MapCompactWithConditionalBlock:
411
- Enabled: true
412
-
413
- Style/MapToHash:
414
- Enabled: true
415
-
416
- Style/MapToSet:
417
- Enabled: true
418
-
419
- Style/MethodCallWithArgsParentheses:
420
- Enabled: false
421
-
422
- Style/MethodCalledOnDoEndBlock:
423
- Enabled: true
424
-
425
- Style/MinMaxComparison:
426
- Enabled: true
427
-
428
- Style/MultilineMethodSignature:
429
- Enabled: true
430
-
431
- Style/NegatedIfElseCondition:
432
- Enabled: true
433
-
434
- Style/NestedFileDirname:
435
- Enabled: true
436
-
437
- Style/NilLambda:
438
- Enabled: true
439
-
440
- Style/NumberedParameters:
441
- Enabled: true
442
- EnforcedStyle: disallow
443
-
444
- Style/NumberedParametersLimit:
445
- Enabled: true
446
-
447
- Style/NumericLiterals:
448
- Enabled: true
449
- Exclude:
450
- - '**/db/migrate/*'
451
- - '**/db/schema.rb'
452
-
453
- Style/ObjectThen:
454
- Enabled: true
455
- EnforcedStyle: then
456
-
457
- Style/OpenStructUse:
458
- Enabled: true
459
-
460
- Style/OperatorMethodCall:
461
- Enabled: true
462
-
463
- Style/OptionHash:
464
- Enabled: true
465
-
466
- Style/QuotedSymbols:
467
- Enabled: true
468
-
469
- Style/RedundantArrayConstructor:
470
- Enabled: true
471
-
472
- Style/RedundantCurrentDirectoryInPath:
473
- Enabled: true
474
-
475
- Style/RedundantFilterChain:
476
- Enabled: true
477
-
478
- Style/RedundantHeredocDelimiterQuotes:
479
- Enabled: true
480
-
481
- Style/RedundantLineContinuation:
482
- Enabled: true
483
-
484
- Style/RedundantRegexpArgument:
485
- Enabled: true
486
-
487
- Style/RedundantRegexpConstructor:
488
- Enabled: true
489
-
490
- Style/RedundantSelfAssignmentBranch:
491
- Enabled: true
492
-
493
- Style/RedundantArgument:
494
- Enabled: true
495
-
496
- Style/RedundantConstantBase:
497
- Enabled: true
498
-
499
- Style/RedundantDoubleSplatHashBraces:
500
- Enabled: true
501
-
502
- Style/RedundantEach:
503
- Enabled: true
504
-
505
- Style/RedundantInitialize:
506
- Enabled: true
507
-
508
- Style/RedundantStringEscape:
509
- Enabled: true
510
-
511
- Style/ReturnNilInPredicateMethodDefinition:
512
- Enabled: true
513
-
514
- Style/SelectByRegexp:
515
- Enabled: true
516
-
517
- Style/SingleLineDoEndBlock:
518
- Enabled: true
519
-
520
- Style/StaticClass:
521
- Enabled: true
522
-
523
- Style/StringChars:
524
- Enabled: true
525
-
526
- Style/StringHashKeys:
527
- Enabled: true
528
- Exclude:
529
- - "config/routes.rb"
530
-
531
- Style/SwapValues:
532
- Enabled: true
533
-
534
- Style/StringLiterals:
535
- EnforcedStyle: double_quotes
536
-
537
- Style/StringLiteralsInInterpolation:
538
- EnforcedStyle: double_quotes
539
-
540
- Style/TopLevelMethodDefinition:
541
- Enabled: true
542
-
543
- Style/TrailingCommaInBlockArgs:
544
- Enabled: true
545
-
546
- Style/YAMLFileRead:
547
- Enabled: true
548
-
549
- Style/UnlessLogicalOperators:
550
- Enabled: true
551
-
552
- Style/WordArray:
553
- Enabled: true
554
- Exclude:
555
- - '**/db/migrate/*'
556
- - '**/db/schema.rb'
data/config/layout.yml ADDED
@@ -0,0 +1,130 @@
1
+ Layout/BlockAlignment:
2
+ EnforcedStyleAlignWith: start_of_block
3
+ Exclude:
4
+ - "**/*.erb"
5
+
6
+ Layout/ClassStructure:
7
+ ExpectedOrder:
8
+ - module_inclusion
9
+ - constants
10
+ - association
11
+ - public_attribute_macros
12
+ - public_delegate
13
+ - macros
14
+ - initializer
15
+ - public_class_methods
16
+ - public_methods
17
+ - protected_attribute_macros
18
+ - protected_methods
19
+ - private_attribute_macros
20
+ - private_delegate
21
+ - private_methods
22
+
23
+ Layout/EndAlignment:
24
+ EnforcedStyleAlignWith: variable
25
+
26
+ Layout/FirstArgumentIndentation:
27
+ EnforcedStyle: consistent
28
+
29
+ Layout/FirstArrayElementIndentation:
30
+ EnforcedStyle: consistent
31
+
32
+ Layout/FirstArrayElementLineBreak:
33
+ Enabled: true
34
+
35
+ Layout/FirstHashElementIndentation:
36
+ EnforcedStyle: consistent
37
+
38
+ Layout/FirstHashElementLineBreak:
39
+ Enabled: true
40
+
41
+ Layout/FirstMethodArgumentLineBreak:
42
+ Enabled: true
43
+
44
+ Layout/FirstMethodParameterLineBreak:
45
+ Enabled: true
46
+
47
+ Layout/IndentationWidth:
48
+ Exclude:
49
+ - "**/*.erb"
50
+
51
+ Layout/InitialIndentation:
52
+ Exclude:
53
+ - "**/*.erb"
54
+
55
+ Layout/LineContinuationSpacing:
56
+ Enabled: true
57
+
58
+ Layout/LineContinuationLeadingSpace:
59
+ Enabled: true
60
+ EnforcedStyle: trailing
61
+
62
+ Layout/LineEndStringConcatenationIndentation:
63
+ Enabled: true
64
+
65
+ Layout/LineLength:
66
+ Max: 80
67
+ Exclude:
68
+ - '**/spec/**/*'
69
+
70
+ Layout/MultilineArrayBraceLayout:
71
+ EnforcedStyle: new_line
72
+
73
+ Layout/MultilineArrayLineBreaks:
74
+ Enabled: true
75
+
76
+ Layout/MultilineOperationIndentation:
77
+ EnforcedStyle: indented
78
+
79
+ Layout/MultilineAssignmentLayout:
80
+ Enabled: true
81
+ EnforcedStyle: same_line
82
+
83
+ Layout/MultilineHashBraceLayout:
84
+ EnforcedStyle: new_line
85
+
86
+ Layout/MultilineHashKeyLineBreaks:
87
+ Enabled: true
88
+
89
+ Layout/MultilineMethodArgumentLineBreaks:
90
+ Enabled: true
91
+ AllowMultilineFinalElement: true
92
+
93
+ Layout/MultilineMethodCallBraceLayout:
94
+ Enabled: true
95
+
96
+ Layout/MultilineMethodCallIndentation:
97
+ EnforcedStyle: indented
98
+
99
+ Layout/SpaceAroundMethodCallOperator:
100
+ Enabled: true
101
+
102
+ Layout/SpaceInsideParens:
103
+ Exclude:
104
+ - "**/*.erb"
105
+
106
+ Layout/MultilineMethodDefinitionBraceLayout:
107
+ EnforcedStyle: new_line
108
+
109
+ Layout/MultilineMethodParameterLineBreaks:
110
+ Enabled: true
111
+
112
+ Layout/ParameterAlignment:
113
+ EnforcedStyle: with_fixed_indentation
114
+
115
+ Layout/SingleLineBlockChain:
116
+ Enabled: true
117
+
118
+ Layout/SpaceBeforeBrackets:
119
+ Enabled: true
120
+
121
+ Layout/SpaceInLambdaLiteral:
122
+ EnforcedStyle: require_no_space
123
+
124
+ Layout/TrailingEmptyLines:
125
+ Exclude:
126
+ - "**/*.erb"
127
+
128
+ Layout/TrailingWhitespace:
129
+ Exclude:
130
+ - "**/*.erb"
data/config/lint.yml ADDED
@@ -0,0 +1,115 @@
1
+ Lint/AmbiguousAssignment:
2
+ Enabled: true
3
+
4
+ Lint/AmbiguousBlockAssociation:
5
+ Exclude:
6
+ - "**/spec/**/*"
7
+
8
+ Lint/AmbiguousOperatorPrecedence:
9
+ Enabled: true
10
+
11
+ Lint/AmbiguousRange:
12
+ Enabled: true
13
+
14
+ Lint/AssignmentInCondition:
15
+ Enabled: false
16
+
17
+ Lint/BinaryOperatorWithIdenticalOperands:
18
+ Enabled: true
19
+
20
+ Lint/ConstantOverwrittenInRescue:
21
+ Enabled: true
22
+
23
+ Lint/DeprecatedConstants:
24
+ Enabled: true
25
+
26
+ Lint/DuplicateBranch:
27
+ Enabled: true
28
+
29
+ Lint/DuplicateMagicComment:
30
+ Enabled: true
31
+
32
+ Lint/DuplicateMatchPattern:
33
+ Enabled: true
34
+
35
+ Lint/DuplicateRegexpCharacterClassElement:
36
+ Enabled: true
37
+
38
+ Lint/EmptyBlock:
39
+ Enabled: true
40
+
41
+ Lint/EmptyClass:
42
+ Enabled: true
43
+
44
+ Lint/EmptyInPattern:
45
+ Enabled: true
46
+
47
+ Lint/IncompatibleIoSelectWithFiberScheduler:
48
+ Enabled: true
49
+
50
+ Lint/LambdaWithoutLiteralBlock:
51
+ Enabled: true
52
+
53
+ Lint/MixedCaseRange:
54
+ Enabled: true
55
+
56
+ Lint/NoReturnInBeginEndBlocks:
57
+ Enabled: true
58
+
59
+ Lint/NonAtomicFileOperation:
60
+ Enabled: true
61
+
62
+ Lint/NumberConversion:
63
+ Enabled: true
64
+
65
+ Lint/NumberedParameterAssignment:
66
+ Enabled: true
67
+
68
+ Lint/OrAssignmentToConstant:
69
+ Enabled: true
70
+
71
+ Lint/RedundantDirGlobSort:
72
+ Enabled: true
73
+
74
+ Lint/RedundantRegexpQuantifiers:
75
+ Enabled: true
76
+
77
+ Lint/RefinementImportMethods:
78
+ Enabled: true
79
+
80
+ Lint/RequireRangeParentheses:
81
+ Enabled: true
82
+
83
+ Lint/RequireRelativeSelfPath:
84
+ Enabled: true
85
+
86
+ Lint/ShadowingOuterLocalVariable:
87
+ Enabled: false
88
+
89
+ Lint/SymbolConversion:
90
+ Enabled: true
91
+
92
+ Lint/ToEnumArguments:
93
+ Enabled: true
94
+
95
+ Lint/TripleQuotes:
96
+ Enabled: true
97
+
98
+ Lint/UnexpectedBlockArity:
99
+ Enabled: true
100
+
101
+ Lint/UnmodifiedReduceAccumulator:
102
+ Enabled: true
103
+
104
+ Lint/UnusedBlockArgument:
105
+ IgnoreEmptyBlocks: false
106
+
107
+ Lint/UnusedMethodArgument:
108
+ IgnoreEmptyMethods: false
109
+
110
+ Lint/UselessRescue:
111
+ Enabled: true
112
+
113
+ Lint/UselessRuby2Keywords:
114
+ Enabled: true
115
+
@@ -0,0 +1,46 @@
1
+ Metrics/AbcSize:
2
+ Max: 20
3
+ CountRepeatedAttributes: false
4
+ # Excluding controllers here because respond_to blocks and others make this
5
+ # higher than they otherwise should be
6
+ Exclude:
7
+ - "**/app/controllers/**/*"
8
+
9
+ Metrics/BlockLength:
10
+ CountComments: false
11
+ Max: 25
12
+ Exclude:
13
+ - "**/spec/**/*"
14
+ - "**/*.rake"
15
+ - "**/factories/**/*"
16
+ - "**/config/**/*"
17
+
18
+ Metrics/CollectionLiteralLength:
19
+ Enabled: true
20
+
21
+ Metrics/ClassLength:
22
+ CountAsOne: ["array", "hash"]
23
+ Max: 100
24
+ Exclude:
25
+ - "**/app/controllers/**/*"
26
+
27
+ Metrics/CyclomaticComplexity:
28
+ Max: 10
29
+
30
+ Metrics/MethodLength:
31
+ CountAsOne: ["array", "hash", "method_call"]
32
+ Max: 20
33
+
34
+ Metrics/ModuleLength:
35
+ CountAsOne: ["array", "hash"]
36
+ Max: 100
37
+ Exclude:
38
+ - "**/spec/**/*"
39
+
40
+ Metrics/ParameterLists:
41
+ Max: 2
42
+ CountKeywordArgs: false
43
+
44
+ Metrics/PerceivedComplexity:
45
+ Max: 8
46
+
data/config/rails.yml CHANGED
@@ -8,30 +8,6 @@ inherit_from:
8
8
  - ./capybara.yml
9
9
  - ./factory_bot.yml
10
10
 
11
- Layout/BlockAlignment:
12
- Exclude:
13
- - "**/*.erb"
14
-
15
- Layout/IndentationWidth:
16
- Exclude:
17
- - "**/*.erb"
18
-
19
- Layout/InitialIndentation:
20
- Exclude:
21
- - "**/*.erb"
22
-
23
- Layout/SpaceInsideParens:
24
- Exclude:
25
- - "**/*.erb"
26
-
27
- Layout/TrailingEmptyLines:
28
- Exclude:
29
- - "**/*.erb"
30
-
31
- Layout/TrailingWhitespace:
32
- Exclude:
33
- - "**/*.erb"
34
-
35
11
  Rails/ActionControllerTestCase:
36
12
  Enabled: false
37
13
 
@@ -227,5 +203,3 @@ Rails/WhereExists:
227
203
 
228
204
  Rails/WhereNot:
229
205
  Enabled: true
230
-
231
-
data/config/style.yml ADDED
@@ -0,0 +1,243 @@
1
+ Style/ArgumentsForwarding:
2
+ Enabled: true
3
+
4
+ Style/ArrayCoercion:
5
+ Enabled: true
6
+
7
+ Style/ArrayIntersect:
8
+ Enabled: true
9
+
10
+ Style/AutoResourceCleanup:
11
+ Enabled: true
12
+
13
+ Style/CollectionCompact:
14
+ Enabled: true
15
+
16
+ Style/CollectionMethods:
17
+ Enabled: true
18
+
19
+ Style/ComparableClamp:
20
+ Enabled: true
21
+
22
+ Style/ConstantVisibility:
23
+ Enabled: true
24
+
25
+ Style/ConcatArrayLiterals:
26
+ Enabled: true
27
+
28
+ Style/DataInheritance:
29
+ Enabled: true
30
+
31
+ Style/DirEmpty:
32
+ Enabled: true
33
+
34
+ Style/Documentation:
35
+ Enabled: false
36
+
37
+ Style/DocumentDynamicEvalDefinition:
38
+ Enabled: true
39
+
40
+ Style/EmptyHeredoc:
41
+ Enabled: true
42
+
43
+ Style/EnvHome:
44
+ Enabled: true
45
+
46
+ Style/ExactRegexpMatch:
47
+ Enabled: true
48
+
49
+ Style/EndlessMethod:
50
+ Enabled: true
51
+ EnforcedStyle: disallow
52
+
53
+ Style/FileEmpty:
54
+ Enabled: true
55
+
56
+ Style/FileWrite:
57
+ Enabled: true
58
+
59
+ Style/FrozenStringLiteralComment:
60
+ Enabled: true
61
+
62
+ Style/FetchEnvVar:
63
+ Enabled: true
64
+
65
+ Style/FileRead:
66
+ Enabled: true
67
+
68
+ Style/HashConversion:
69
+ Enabled: true
70
+
71
+ Style/HashExcept:
72
+ Enabled: true
73
+
74
+ Style/IfWithBooleanLiteralBranches:
75
+ Enabled: true
76
+
77
+ Style/ImplicitRuntimeError:
78
+ Enabled: true
79
+
80
+ Style/InPatternThen:
81
+ Enabled: true
82
+
83
+ Style/InvertibleUnlessCondition:
84
+ Enabled: true
85
+
86
+ Style/InlineComment:
87
+ Enabled: true
88
+
89
+ Style/IpAddresses:
90
+ Enabled: true
91
+
92
+ Style/Lambda:
93
+ EnforcedStyle: literal
94
+
95
+ Style/MagicCommentFormat:
96
+ Enabled: true
97
+
98
+ Style/MultilineInPatternThen:
99
+ Enabled: true
100
+
101
+ Style/MapCompactWithConditionalBlock:
102
+ Enabled: true
103
+
104
+ Style/MapToHash:
105
+ Enabled: true
106
+
107
+ Style/MapToSet:
108
+ Enabled: true
109
+
110
+ Style/MethodCallWithArgsParentheses:
111
+ Enabled: false
112
+
113
+ Style/MethodCalledOnDoEndBlock:
114
+ Enabled: true
115
+
116
+ Style/MinMaxComparison:
117
+ Enabled: true
118
+
119
+ Style/MultilineMethodSignature:
120
+ Enabled: true
121
+
122
+ Style/NegatedIfElseCondition:
123
+ Enabled: true
124
+
125
+ Style/NestedFileDirname:
126
+ Enabled: true
127
+
128
+ Style/NilLambda:
129
+ Enabled: true
130
+
131
+ Style/NumberedParameters:
132
+ Enabled: true
133
+ EnforcedStyle: disallow
134
+
135
+ Style/NumberedParametersLimit:
136
+ Enabled: true
137
+
138
+ Style/NumericLiterals:
139
+ Enabled: true
140
+ Exclude:
141
+ - '**/db/migrate/*'
142
+
143
+ Style/ObjectThen:
144
+ Enabled: true
145
+ EnforcedStyle: then
146
+
147
+ Style/OpenStructUse:
148
+ Enabled: true
149
+
150
+ Style/OperatorMethodCall:
151
+ Enabled: true
152
+
153
+ Style/OptionHash:
154
+ Enabled: true
155
+
156
+ Style/QuotedSymbols:
157
+ Enabled: true
158
+
159
+ Style/RedundantArrayConstructor:
160
+ Enabled: true
161
+
162
+ Style/RedundantCurrentDirectoryInPath:
163
+ Enabled: true
164
+
165
+ Style/RedundantFilterChain:
166
+ Enabled: true
167
+
168
+ Style/RedundantHeredocDelimiterQuotes:
169
+ Enabled: true
170
+
171
+ Style/RedundantLineContinuation:
172
+ Enabled: true
173
+
174
+ Style/RedundantRegexpArgument:
175
+ Enabled: true
176
+
177
+ Style/RedundantRegexpConstructor:
178
+ Enabled: true
179
+
180
+ Style/RedundantSelfAssignmentBranch:
181
+ Enabled: true
182
+
183
+ Style/RedundantArgument:
184
+ Enabled: true
185
+
186
+ Style/RedundantConstantBase:
187
+ Enabled: true
188
+
189
+ Style/RedundantDoubleSplatHashBraces:
190
+ Enabled: true
191
+
192
+ Style/RedundantEach:
193
+ Enabled: true
194
+
195
+ Style/RedundantInitialize:
196
+ Enabled: true
197
+
198
+ Style/RedundantStringEscape:
199
+ Enabled: true
200
+
201
+ Style/ReturnNilInPredicateMethodDefinition:
202
+ Enabled: true
203
+
204
+ Style/SelectByRegexp:
205
+ Enabled: true
206
+
207
+ Style/SingleLineDoEndBlock:
208
+ Enabled: true
209
+
210
+ Style/StaticClass:
211
+ Enabled: true
212
+
213
+ Style/StringChars:
214
+ Enabled: true
215
+
216
+ Style/StringHashKeys:
217
+ Enabled: true
218
+ Exclude:
219
+ - "config/routes.rb"
220
+
221
+ Style/SwapValues:
222
+ Enabled: true
223
+
224
+ Style/StringLiterals:
225
+ EnforcedStyle: double_quotes
226
+
227
+ Style/StringLiteralsInInterpolation:
228
+ EnforcedStyle: double_quotes
229
+
230
+ Style/TopLevelMethodDefinition:
231
+ Enabled: true
232
+
233
+ Style/TrailingCommaInBlockArgs:
234
+ Enabled: true
235
+
236
+ Style/YAMLFileRead:
237
+ Enabled: true
238
+
239
+ Style/UnlessLogicalOperators:
240
+ Enabled: true
241
+
242
+ Style/WordArray:
243
+ Enabled: true
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Rubocop
4
4
  module Inhouse
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  public_constant :VERSION
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-inhouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nolan J Tait
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-31 00:00:00.000000000 Z
11
+ date: 2024-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-capybara
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.6'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.6'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '2.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '2.2'
97
97
  description: This is the rubocop configuration we use at inhouse.work for all our
@@ -108,9 +108,13 @@ files:
108
108
  - config/capybara.yml
109
109
  - config/default.yml
110
110
  - config/factory_bot.yml
111
+ - config/layout.yml
112
+ - config/lint.yml
113
+ - config/metrics.yml
111
114
  - config/performance.yml
112
115
  - config/rails.yml
113
116
  - config/rspec.yml
117
+ - config/style.yml
114
118
  - lib/rubocop-inhouse-rails.rb
115
119
  - lib/rubocop-inhouse.rb
116
120
  - lib/rubocop/inhouse.rb
@@ -138,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
142
  - !ruby/object:Gem::Version
139
143
  version: '0'
140
144
  requirements: []
141
- rubygems_version: 3.4.10
145
+ rubygems_version: 3.5.3
142
146
  signing_key:
143
147
  specification_version: 4
144
148
  summary: Rubocop configuration for InHouse projects