rubocop-github 0.19.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/config/default.yml CHANGED
@@ -1,3 +1,6 @@
1
+ inherit_from:
2
+ - ./default_pending.yml
3
+
1
4
  require:
2
5
  - rubocop-github
3
6
  - rubocop-performance
@@ -41,6 +44,9 @@ Gemspec/RequiredRubyVersion:
41
44
  Gemspec/RubyVersionGlobalsUsage:
42
45
  Enabled: false
43
46
 
47
+ GitHub/AvoidObjectSendWithDynamicMethod:
48
+ Enabled: true
49
+
44
50
  GitHub/InsecureHashAlgorithm:
45
51
  Enabled: true
46
52
 
@@ -66,7 +72,9 @@ Layout/BlockEndNewline:
66
72
  Enabled: true
67
73
 
68
74
  Layout/CaseIndentation:
69
- Enabled: false
75
+ Enabled: true
76
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#indent-when-as-start-of-case
77
+ EnforcedStyle: end
70
78
 
71
79
  Layout/ClassStructure:
72
80
  Enabled: false
@@ -180,16 +188,16 @@ Layout/HeredocIndentation:
180
188
  Enabled: false
181
189
 
182
190
  Layout/IndentationConsistency:
183
- Enabled: false
191
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#indentation
184
192
 
185
193
  Layout/IndentationStyle:
186
- Enabled: true
187
194
  EnforcedStyle: spaces
188
195
  IndentationWidth: 2
196
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#default-indentation
189
197
 
190
198
  Layout/IndentationWidth:
191
- Enabled: true
192
199
  Width: 2
200
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#default-indentation
193
201
 
194
202
  Layout/InitialIndentation:
195
203
  Enabled: true
@@ -211,6 +219,7 @@ Layout/LineEndStringConcatenationIndentation:
211
219
 
212
220
  Layout/LineLength:
213
221
  Enabled: false
222
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#line-length
214
223
 
215
224
  Layout/MultilineArrayBraceLayout:
216
225
  Enabled: false
@@ -258,10 +267,10 @@ Layout/SingleLineBlockChain:
258
267
  Enabled: false
259
268
 
260
269
  Layout/SpaceAfterColon:
261
- Enabled: true
270
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
262
271
 
263
272
  Layout/SpaceAfterComma:
264
- Enabled: true
273
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
265
274
 
266
275
  Layout/SpaceAfterMethodName:
267
276
  Enabled: true
@@ -270,22 +279,25 @@ Layout/SpaceAfterNot:
270
279
  Enabled: true
271
280
 
272
281
  Layout/SpaceAfterSemicolon:
273
- Enabled: true
282
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
274
283
 
275
284
  Layout/SpaceAroundBlockParameters:
276
285
  Enabled: true
277
286
 
278
287
  Layout/SpaceAroundEqualsInParameterDefault:
279
- Enabled: true
288
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-around-equals
280
289
 
281
290
  Layout/SpaceAroundKeyword:
282
- Enabled: false
291
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
283
292
 
284
293
  Layout/SpaceAroundMethodCallOperator:
285
294
  Enabled: false
286
295
 
287
296
  Layout/SpaceAroundOperators:
288
- Enabled: false
297
+ Enabled: true
298
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
299
+ Exclude:
300
+ - "**/*.erb"
289
301
 
290
302
  Layout/SpaceBeforeBlockBraces:
291
303
  Enabled: true
@@ -309,8 +321,8 @@ Layout/SpaceInLambdaLiteral:
309
321
  Enabled: false
310
322
 
311
323
  Layout/SpaceInsideArrayLiteralBrackets:
312
- Enabled: true
313
324
  EnforcedStyle: no_space
325
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-spaces-braces
314
326
 
315
327
  Layout/SpaceInsideArrayPercentLiteral:
316
328
  Enabled: true
@@ -319,7 +331,8 @@ Layout/SpaceInsideBlockBraces:
319
331
  Enabled: true
320
332
 
321
333
  Layout/SpaceInsideHashLiteralBraces:
322
- Enabled: false
334
+ Enabled: true
335
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
323
336
 
324
337
  Layout/SpaceInsideParens:
325
338
  Enabled: true
@@ -340,7 +353,7 @@ Layout/TrailingEmptyLines:
340
353
  Enabled: true
341
354
 
342
355
  Layout/TrailingWhitespace:
343
- Enabled: true
356
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#trailing-whitespace
344
357
 
345
358
  Lint/AmbiguousAssignment:
346
359
  Enabled: false
@@ -444,6 +457,15 @@ Lint/EmptyConditionalBody:
444
457
  Lint/EmptyEnsure:
445
458
  Enabled: true
446
459
 
460
+ Lint/EmptyExpression:
461
+ Enabled: false
462
+
463
+ Lint/EmptyFile:
464
+ Enabled: false
465
+
466
+ Lint/EmptyWhen:
467
+ Enabled: false
468
+
447
469
  Lint/EmptyInterpolation:
448
470
  Enabled: true
449
471
 
@@ -547,7 +569,9 @@ Lint/OutOfRangeRegexpRef:
547
569
  Enabled: false
548
570
 
549
571
  Lint/ParenthesesAsGroupedExpression:
550
- Enabled: false
572
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-spaces-method-parens
573
+ Exclude:
574
+ - "**/*.erb"
551
575
 
552
576
  Lint/PercentStringArray:
553
577
  Enabled: false
@@ -597,6 +621,9 @@ Lint/RegexpAsCondition:
597
621
  Lint/RequireParentheses:
598
622
  Enabled: true
599
623
 
624
+ Lint/RequireRangeParentheses:
625
+ Enabled: false
626
+
600
627
  Lint/RequireRelativeSelfPath:
601
628
  Enabled: false
602
629
 
@@ -678,8 +705,10 @@ Lint/UnreachableCode:
678
705
  Lint/UnreachableLoop:
679
706
  Enabled: false
680
707
 
708
+ # TODO: Enable this since it's in the styleguide.
681
709
  Lint/UnusedBlockArgument:
682
710
  Enabled: false
711
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#underscore-unused-vars
683
712
 
684
713
  Lint/UnusedMethodArgument:
685
714
  Enabled: false
@@ -977,7 +1006,8 @@ Style/Alias:
977
1006
  Enabled: false
978
1007
 
979
1008
  Style/AndOr:
980
- Enabled: false
1009
+ Enabled: true
1010
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-and-or-or
981
1011
 
982
1012
  Style/ArgumentsForwarding:
983
1013
  Enabled: false
@@ -1014,6 +1044,7 @@ Style/BlockDelimiters:
1014
1044
 
1015
1045
  Style/CaseEquality:
1016
1046
  Enabled: true
1047
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#type-checking-is-a-kind-of
1017
1048
 
1018
1049
  Style/CaseLikeIf:
1019
1050
  Enabled: false
@@ -1034,10 +1065,12 @@ Style/ClassMethods:
1034
1065
  Enabled: true
1035
1066
 
1036
1067
  Style/ClassMethodsDefinitions:
1037
- Enabled: false
1068
+ Enabled: true
1069
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#classes
1038
1070
 
1039
1071
  Style/ClassVars:
1040
1072
  Enabled: false
1073
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#class-variables
1041
1074
 
1042
1075
  Style/CollectionCompact:
1043
1076
  Enabled: false
@@ -1076,7 +1109,7 @@ Style/DateTime:
1076
1109
  Enabled: false
1077
1110
 
1078
1111
  Style/DefWithParentheses:
1079
- Enabled: true
1112
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#method-parens-when-arguments
1080
1113
 
1081
1114
  Style/Dir:
1082
1115
  Enabled: false
@@ -1114,6 +1147,9 @@ Style/EmptyCaseCondition:
1114
1147
  Style/EmptyElse:
1115
1148
  Enabled: false
1116
1149
 
1150
+ Style/EmptyHeredoc:
1151
+ Enabled: false
1152
+
1117
1153
  Style/EmptyLambdaParameter:
1118
1154
  Enabled: false
1119
1155
 
@@ -1163,7 +1199,7 @@ Style/FloatDivision:
1163
1199
  Enabled: false
1164
1200
 
1165
1201
  Style/For:
1166
- Enabled: true
1202
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#avoid-for
1167
1203
 
1168
1204
  Style/FormatString:
1169
1205
  Enabled: false
@@ -1199,8 +1235,8 @@ Style/HashLikeCase:
1199
1235
  Enabled: false
1200
1236
 
1201
1237
  Style/HashSyntax:
1202
- Enabled: true
1203
1238
  EnforcedStyle: ruby19_no_mixed_keys
1239
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#symbols-as-keys
1204
1240
 
1205
1241
  Style/HashTransformKeys:
1206
1242
  Enabled: false
@@ -1256,6 +1292,9 @@ Style/LambdaCall:
1256
1292
  Style/LineEndConcatenation:
1257
1293
  Enabled: false
1258
1294
 
1295
+ Style/MagicCommentFormat:
1296
+ Enabled: false
1297
+
1259
1298
  Style/MapCompactWithConditionalBlock:
1260
1299
  Enabled: false
1261
1300
 
@@ -1299,7 +1338,7 @@ Style/MultilineIfModifier:
1299
1338
  Enabled: false
1300
1339
 
1301
1340
  Style/MultilineIfThen:
1302
- Enabled: true
1341
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-then-for-multi-line-if-unless
1303
1342
 
1304
1343
  Style/MultilineInPatternThen:
1305
1344
  Enabled: false
@@ -1344,7 +1383,10 @@ Style/NestedParenthesizedCalls:
1344
1383
  Enabled: false
1345
1384
 
1346
1385
  Style/NestedTernaryOperator:
1347
- Enabled: false
1386
+ Enabled: true
1387
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#one-expression-per-branch
1388
+ Exclude:
1389
+ - "**/*.erb"
1348
1390
 
1349
1391
  Style/Next:
1350
1392
  Enabled: false
@@ -1395,7 +1437,10 @@ Style/OptionalBooleanParameter:
1395
1437
  Enabled: false
1396
1438
 
1397
1439
  Style/OrAssignment:
1398
- Enabled: false
1440
+ Enabled: true
1441
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#memoize-away
1442
+ Exclude:
1443
+ - "**/*.erb"
1399
1444
 
1400
1445
  Style/ParallelAssignment:
1401
1446
  Enabled: false
@@ -1475,8 +1520,10 @@ Style/RedundantRegexpCharacterClass:
1475
1520
  Style/RedundantRegexpEscape:
1476
1521
  Enabled: false
1477
1522
 
1523
+ # TODO: Enable this since it's in the styleguide.
1478
1524
  Style/RedundantReturn:
1479
1525
  Enabled: false
1526
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#avoid-return
1480
1527
 
1481
1528
  Style/RedundantSelf:
1482
1529
  Enabled: false
@@ -1563,8 +1610,8 @@ Style/StringHashKeys:
1563
1610
  Enabled: false
1564
1611
 
1565
1612
  Style/StringLiterals:
1566
- Enabled: true
1567
1613
  EnforcedStyle: double_quotes
1614
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#double-quotes
1568
1615
 
1569
1616
  Style/StringLiteralsInInterpolation:
1570
1617
  Enabled: false
@@ -1626,8 +1673,10 @@ Style/TrailingUnderscoreVariable:
1626
1673
  Style/TrivialAccessors:
1627
1674
  Enabled: false
1628
1675
 
1676
+ # TODO: Enable this since it's in the styleguide.
1629
1677
  Style/UnlessElse:
1630
1678
  Enabled: false
1679
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-else-with-unless
1631
1680
 
1632
1681
  Style/UnlessLogicalOperators:
1633
1682
  Enabled: false
@@ -0,0 +1,116 @@
1
+ Lint/DuplicateMagicComment: # new in 1.37
2
+ Enabled: false
3
+ Style/OperatorMethodCall: # new in 1.37
4
+ Enabled: false
5
+ Style/RedundantStringEscape: # new in 1.37
6
+ Enabled: false
7
+ Gemspec/DevelopmentDependencies: # new in 1.44
8
+ Enabled: false
9
+ Lint/DuplicateMatchPattern: # new in 1.50
10
+ Enabled: false
11
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
12
+ Enabled: false
13
+ Lint/LiteralAssignmentInCondition: # new in 1.58
14
+ Enabled: false
15
+ Lint/MixedCaseRange: # new in 1.53
16
+ Enabled: false
17
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
18
+ Enabled: false
19
+ Lint/UselessRescue: # new in 1.43
20
+ Enabled: false
21
+ Metrics/CollectionLiteralLength: # new in 1.47
22
+ Enabled: false
23
+ Style/ArrayIntersect: # new in 1.40
24
+ Enabled: false
25
+ Style/ComparableClamp: # new in 1.44
26
+ Enabled: false
27
+ Style/ConcatArrayLiterals: # new in 1.41
28
+ Enabled: false
29
+ Style/DataInheritance: # new in 1.49
30
+ Enabled: false
31
+ Style/DirEmpty: # new in 1.48
32
+ Enabled: false
33
+ Style/ExactRegexpMatch: # new in 1.51
34
+ Enabled: false
35
+ Style/FileEmpty: # new in 1.48
36
+ Enabled: false
37
+ Style/MapIntoArray: # new in 1.63
38
+ Enabled: false
39
+ Style/MapToSet: # new in 1.42
40
+ Enabled: false
41
+ Style/MinMaxComparison: # new in 1.42
42
+ Enabled: false
43
+ Style/RedundantArrayConstructor: # new in 1.52
44
+ Enabled: false
45
+ Style/RedundantConstantBase: # new in 1.40
46
+ Enabled: false
47
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
48
+ Enabled: false
49
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
50
+ Enabled: false
51
+ Style/RedundantEach: # new in 1.38
52
+ Enabled: false
53
+ Style/RedundantFilterChain: # new in 1.52
54
+ Enabled: false
55
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
56
+ Enabled: false
57
+ Style/RedundantLineContinuation: # new in 1.49
58
+ Enabled: false
59
+ Style/RedundantRegexpArgument: # new in 1.53
60
+ Enabled: false
61
+ Style/RedundantRegexpConstructor: # new in 1.52
62
+ Enabled: false
63
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
64
+ Enabled: false
65
+ Style/SingleLineDoEndBlock: # new in 1.57
66
+ Enabled: false
67
+ Style/SuperWithArgsParentheses: # new in 1.58
68
+ Enabled: false
69
+ Style/YAMLFileRead: # new in 1.53
70
+ Enabled: false
71
+ Performance/MapMethodChain: # new in 1.19
72
+ Enabled: false
73
+ Gemspec/AddRuntimeDependency: # new in 1.65
74
+ Enabled: false
75
+ Lint/ConstantReassignment: # new in 1.70
76
+ Enabled: false
77
+ Lint/DuplicateSetElement: # new in 1.67
78
+ Enabled: false
79
+ Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
80
+ Enabled: false
81
+ Lint/NumericOperationWithConstantResult: # new in 1.69
82
+ Enabled: false
83
+ Lint/SharedMutableDefault: # new in 1.70
84
+ Enabled: false
85
+ Lint/UnescapedBracketInRegexp: # new in 1.68
86
+ Enabled: false
87
+ Lint/UselessDefined: # new in 1.69
88
+ Enabled: false
89
+ Lint/UselessNumericOperation: # new in 1.66
90
+ Enabled: false
91
+ Style/AmbiguousEndlessMethodDefinition: # new in 1.68
92
+ Enabled: false
93
+ Style/BitwisePredicate: # new in 1.68
94
+ Enabled: false
95
+ Style/CombinableDefined: # new in 1.68
96
+ Enabled: false
97
+ Style/DigChain: # new in 1.69
98
+ Enabled: false
99
+ Style/FileNull: # new in 1.69
100
+ Enabled: false
101
+ Style/FileTouch: # new in 1.69
102
+ Enabled: false
103
+ Style/ItAssignment: # new in 1.70
104
+ Enabled: false
105
+ Style/KeywordArgumentsMerging: # new in 1.68
106
+ Enabled: false
107
+ Style/RedundantInterpolationUnfreeze: # new in 1.66
108
+ Enabled: false
109
+ Style/SafeNavigationChainLength: # new in 1.68
110
+ Enabled: false
111
+ Style/SendWithLiteralMethodName: # new in 1.64
112
+ Enabled: false
113
+ Style/SuperArguments: # new in 1.64
114
+ Enabled: false
115
+ Performance/StringBytesize: # new in 1.23
116
+ Enabled: false
data/config/rails.yml CHANGED
@@ -1,10 +1,10 @@
1
+ inherit_from:
2
+ - ./rails_pending.yml
3
+
1
4
  require:
2
5
  - rubocop-github-rails
3
6
  - rubocop-rails
4
7
 
5
- GitHub/RailsApplicationRecord:
6
- Enabled: true
7
-
8
8
  GitHub/RailsControllerRenderActionSymbol:
9
9
  Enabled: true
10
10
 
@@ -17,9 +17,6 @@ GitHub/RailsControllerRenderPathsExist:
17
17
  GitHub/RailsControllerRenderShorthand:
18
18
  Enabled: true
19
19
 
20
- GitHub/RailsRenderInline:
21
- Enabled: true
22
-
23
20
  GitHub/RailsRenderObjectCollection:
24
21
  Enabled: false
25
22
 
@@ -34,27 +31,27 @@ GitHub/RailsViewRenderShorthand:
34
31
 
35
32
  Layout/BlockAlignment:
36
33
  Exclude:
37
- - app/views/**/*.erb
34
+ - "**/*.erb"
38
35
 
39
36
  Layout/IndentationWidth:
40
37
  Exclude:
41
- - app/views/**/*.erb
38
+ - "**/*.erb"
42
39
 
43
40
  Layout/InitialIndentation:
44
41
  Exclude:
45
- - app/views/**/*.erb
42
+ - "**/*.erb"
46
43
 
47
44
  Layout/SpaceInsideParens:
48
45
  Exclude:
49
- - app/views/**/*.erb
46
+ - "**/*.erb"
50
47
 
51
48
  Layout/TrailingEmptyLines:
52
49
  Exclude:
53
- - app/views/**/*.erb
50
+ - "**/*.erb"
54
51
 
55
52
  Layout/TrailingWhitespace:
56
53
  Exclude:
57
- - app/views/**/*.erb
54
+ - "**/*.erb"
58
55
 
59
56
  Lint/UselessAccessModifier:
60
57
  ContextCreatingMethods:
@@ -94,7 +91,7 @@ Rails/ApplicationMailer:
94
91
  Enabled: false
95
92
 
96
93
  Rails/ApplicationRecord:
97
- Enabled: false
94
+ Enabled: true
98
95
 
99
96
  Rails/ArelStar:
100
97
  Enabled: false
@@ -307,7 +304,7 @@ Rails/RelativeDateConstant:
307
304
  Enabled: false
308
305
 
309
306
  Rails/RenderInline:
310
- Enabled: false
307
+ Enabled: true
311
308
 
312
309
  Rails/RenderPlainText:
313
310
  Enabled: false
@@ -399,16 +396,16 @@ Rails/WhereNot:
399
396
 
400
397
  Style/For:
401
398
  Exclude:
402
- - app/views/**/*.erb
399
+ - "**/*.erb"
403
400
 
404
401
  Style/OneLineConditional:
405
402
  Exclude:
406
- - app/views/**/*.erb
403
+ - "**/*.erb"
407
404
 
408
405
  Style/Semicolon:
409
406
  Exclude:
410
- - app/views/**/*.erb
407
+ - "**/*.erb"
411
408
 
412
409
  Style/StringLiterals:
413
410
  Exclude:
414
- - app/views/**/*.erb
411
+ - "**/*.erb"
@@ -1,6 +1,3 @@
1
- GitHub/RailsApplicationRecord:
2
- Enabled: pending
3
-
4
1
  GitHub/RailsControllerRenderActionSymbol:
5
2
  Enabled: pending
6
3
  Include:
@@ -8,7 +5,7 @@ GitHub/RailsControllerRenderActionSymbol:
8
5
 
9
6
  GitHub/RailsControllerRenderLiteral:
10
7
  Enabled: pending
11
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
8
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/guides/rails-render-literal.md
12
9
  Include:
13
10
  - 'app/controllers/**/*.rb'
14
11
 
@@ -21,25 +18,16 @@ GitHub/RailsControllerRenderPathsExist:
21
18
 
22
19
  GitHub/RailsControllerRenderShorthand:
23
20
  Enabled: pending
24
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-shorthand.md
21
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/guides/rails-controller-render-shorthand.md
25
22
  Include:
26
23
  - 'app/controllers/**/*.rb'
27
24
 
28
- GitHub/RailsRenderInline:
29
- Enabled: pending
30
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-inline.md
31
- Include:
32
- - 'app/controllers/**/*.rb'
33
- - 'app/helpers/**/*.rb'
34
- - 'app/view_models/**/*.rb'
35
- - 'app/views/**/*.erb'
36
-
37
25
  GitHub/RailsRenderObjectCollection:
38
26
  Enabled: pending
39
27
 
40
28
  GitHub/RailsViewRenderLiteral:
41
29
  Enabled: pending
42
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
30
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/guides/rails-render-literal.md
43
31
  Include:
44
32
  - 'app/helpers/**/*.rb'
45
33
  - 'app/view_models/**/*.rb'
@@ -0,0 +1,102 @@
1
+ Rails/ActionControllerFlashBeforeRender: # new in 2.16
2
+ Enabled: false
3
+ Rails/ActionOrder: # new in 2.17
4
+ Enabled: false
5
+ Rails/ActiveSupportOnLoad: # new in 2.16
6
+ Enabled: false
7
+ Rails/FreezeTime: # new in 2.16
8
+ Enabled: false
9
+ Rails/IgnoredColumnsAssignment: # new in 2.17
10
+ Enabled: false
11
+ Rails/RootPathnameMethods: # new in 2.16
12
+ Enabled: false
13
+ Rails/ToSWithArgument: # new in 2.16
14
+ Enabled: false
15
+ Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
16
+ Enabled: false
17
+ Rails/WhereMissing: # new in 2.16
18
+ Enabled: false
19
+ Rails/WhereNotWithMultipleConditions: # new in 2.17
20
+ Enabled: false
21
+ Gemspec/DevelopmentDependencies: # new in 1.44
22
+ Enabled: false
23
+ Lint/DuplicateMatchPattern: # new in 1.50
24
+ Enabled: false
25
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
26
+ Enabled: false
27
+ Lint/LiteralAssignmentInCondition: # new in 1.58
28
+ Enabled: false
29
+ Lint/MixedCaseRange: # new in 1.53
30
+ Enabled: false
31
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
32
+ Enabled: false
33
+ Lint/UselessRescue: # new in 1.43
34
+ Enabled: false
35
+ Metrics/CollectionLiteralLength: # new in 1.47
36
+ Enabled: false
37
+ Style/ArrayIntersect: # new in 1.40
38
+ Enabled: false
39
+ Style/ComparableClamp: # new in 1.44
40
+ Enabled: false
41
+ Style/ConcatArrayLiterals: # new in 1.41
42
+ Enabled: false
43
+ Style/DataInheritance: # new in 1.49
44
+ Enabled: false
45
+ Style/DirEmpty: # new in 1.48
46
+ Enabled: false
47
+ Style/ExactRegexpMatch: # new in 1.51
48
+ Enabled: false
49
+ Style/FileEmpty: # new in 1.48
50
+ Enabled: false
51
+ Style/MapIntoArray: # new in 1.63
52
+ Enabled: false
53
+ Style/MapToSet: # new in 1.42
54
+ Enabled: false
55
+ Style/MinMaxComparison: # new in 1.42
56
+ Enabled: false
57
+ Style/RedundantArrayConstructor: # new in 1.52
58
+ Enabled: false
59
+ Style/RedundantConstantBase: # new in 1.40
60
+ Enabled: false
61
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
62
+ Enabled: false
63
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
64
+ Enabled: false
65
+ Style/RedundantEach: # new in 1.38
66
+ Enabled: false
67
+ Style/RedundantFilterChain: # new in 1.52
68
+ Enabled: false
69
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
70
+ Enabled: false
71
+ Style/RedundantLineContinuation: # new in 1.49
72
+ Enabled: false
73
+ Style/RedundantRegexpArgument: # new in 1.53
74
+ Enabled: false
75
+ Style/RedundantRegexpConstructor: # new in 1.52
76
+ Enabled: false
77
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
78
+ Enabled: false
79
+ Style/SingleLineDoEndBlock: # new in 1.57
80
+ Enabled: false
81
+ Style/SuperWithArgsParentheses: # new in 1.58
82
+ Enabled: false
83
+ Style/YAMLFileRead: # new in 1.53
84
+ Enabled: false
85
+ Performance/MapMethodChain: # new in 1.19
86
+ Enabled: false
87
+ Rails/DangerousColumnNames: # new in 2.21
88
+ Enabled: false
89
+ Rails/EnvLocal: # new in 2.22
90
+ Enabled: false
91
+ Rails/RedundantActiveRecordAllMethod: # new in 2.21
92
+ Enabled: false
93
+ Rails/ResponseParsedBody: # new in 2.18
94
+ Enabled: false
95
+ Rails/ThreeStateBooleanColumn: # new in 2.19
96
+ Enabled: false
97
+ Rails/UnusedRenderContent: # new in 2.21
98
+ Enabled: false
99
+ Rails/EnumSyntax: # new in 2.26
100
+ Enabled: false
101
+ Rails/WhereRange: # new in 2.25
102
+ Enabled: false