rubocop-rubomatic 1.5.1 → 1.6.0.rc.pre.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +54 -0
- data/config/gemspec_on.yml +8 -0
- data/config/layout.yml +1 -0
- data/config/lint.yml +48 -0
- data/config/naming.yml +5 -1
- data/config/performance.yml +7 -1
- data/config/rubocop.yml +1 -0
- data/config/rubomatic/rubocop.yml +1 -1
- data/config/style.yml +54 -0
- data/config/thread_safety.yml +27 -0
- data/lib/rubocop/rubomatic/plugin.rb +34 -0
- data/lib/rubocop/rubomatic/version.rb +15 -1
- data/lib/rubocop-rubomatic.rb +1 -3
- metadata +54 -16
- data/lib/rubocop/rubomatic/inject.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac51c170c79e162bf18425f6d7f371fafc134e476bd4576ec7e2b82a40503dea
|
4
|
+
data.tar.gz: 894ca741d0e15316e9209b400bee9056d361ca35560e4382cf9cdf05073f9445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe8074c3cd26574c5cd4114ea75d28a1fdc4a903635bc1f1429f4c7eff9df7099871466ed557730827233cf9fff887103ce04aaceccae9811141f9def2f075d3
|
7
|
+
data.tar.gz: 13b40864cb18e60caa068c751c93d3a8223814e8e6017042c0996d28f5eb40789bff55054aa334ddb09824b209fc6c6cae2b0c89f3726e88be7bd811354a925a
|
data/CHANGELOG.adoc
CHANGED
@@ -1,3 +1,57 @@
|
|
1
|
+
== 1.6.0 (2025-06-12)
|
2
|
+
|
3
|
+
* Upgrade to ``ruobcop 1.76.1``
|
4
|
+
** This includes the change from ``require:`` to ``plugins:``.
|
5
|
+
While ``require:`` will still work, there will be a deprecation warning
|
6
|
+
** Set ``Layout/LeadingCommentSpace/AllowSteepAnnotation`` to ``false``
|
7
|
+
** Enabled ``Lint/ArrayLiteralInRegexp``
|
8
|
+
** Enabled ``Lint/ConstantReassignment``
|
9
|
+
** Enabled ``Lint/CopDirectiveSyntax``
|
10
|
+
** Enabled ``Lint/DuplicateSetElement``
|
11
|
+
** Set ``Lint/DuplicateBranch/IgnoreDuplicateElseBranch`` to ``true``
|
12
|
+
** Enabled ``Lint/HashNewWithKeywordArgumentsAsDefault``
|
13
|
+
** Enabled ``Lint/NumericOperationWithConstantResult``
|
14
|
+
** Enabled ``Lint/RedundantTypeConversion``
|
15
|
+
** Enabled ``Lint/SharedMutableDefault``
|
16
|
+
** Enabled ``Lint/SuppressedExceptionInNumberConversion``
|
17
|
+
** Enabled ``Lint/UnescapedBracketInRegexp``
|
18
|
+
** Enabled ``Lint/UselessConstantScoping``
|
19
|
+
** Enabled ``Lint/UselessDefaultValueArgument``
|
20
|
+
** Enabled ``Lint/UselessDefined``
|
21
|
+
** Enabled ``Lint/UselessNumericOperation``
|
22
|
+
** Enabled ``Lint/UselessOr``
|
23
|
+
** Enabled ``Naming/PredicateMethod``
|
24
|
+
** Enabled ``Style/AmbiguousEndlessMethodDefinition``
|
25
|
+
** Enabled ``Style/BitwisePredicate``
|
26
|
+
** Enabled ``Style/ComparableBetween``
|
27
|
+
** Enabled ``Style/CombinableDefined``
|
28
|
+
** Enabled ``Style/DigChain``
|
29
|
+
** Enabled ``Style/EmptyStringInsideInterpolation``
|
30
|
+
** Enabled ``Style/FileNull``
|
31
|
+
** Enabled ``Style/FileTouch``
|
32
|
+
** Enabled ``Style/HashFetchChain``
|
33
|
+
** Enabled ``Style/HashSlice``
|
34
|
+
** Enabled ``Style/ItAssignment``
|
35
|
+
** Enabled ``Style/ItBlockParameter``
|
36
|
+
** Enabled ``Style/KeywordArgumentsMergin``
|
37
|
+
** Enabled ``Style/RedundantArrayFlatten``
|
38
|
+
** Enabled ``Style/RedundantFormat``
|
39
|
+
** Enabled ``Style/RedundantInterpolationUnfreeze``
|
40
|
+
** Disabled ``Style/SafeNavigationChainLength``
|
41
|
+
* Added ``rack_attack.rb`` to exclude list for ``Style/IpAddresses``
|
42
|
+
* Upgraded to ``rubocop-performance 1.25.0``
|
43
|
+
** Enabled ``Performance/StringBytesize``
|
44
|
+
** Enabled ``Performance/ZipWithoutBlock``
|
45
|
+
* Added ``rubocop-packaging 0.6.0``
|
46
|
+
** Enabled ``Packaging/GemspecGit``
|
47
|
+
* Added ``rubocop-thread_safety 0.7.2``
|
48
|
+
** Enabled ``ThreadSafety/ClassAndModuleAttributes``
|
49
|
+
** Enabled ``ThreadSafety/ClassInstanceVariable``
|
50
|
+
** Enabled ``ThreadSafety/DirChdir``
|
51
|
+
** Enabled ``ThreadSafety/MutableClassInstanceVariable``
|
52
|
+
** Enabled ``ThreadSafety/NewThread``
|
53
|
+
** Enabled ``ThreadSafety/RackMiddlewareInstanceVariable``
|
54
|
+
|
1
55
|
== 1.5.1 (2024-10-22)
|
2
56
|
|
3
57
|
=== Misc
|
data/config/gemspec_on.yml
CHANGED
data/config/layout.yml
CHANGED
data/config/lint.yml
CHANGED
@@ -19,6 +19,9 @@ Lint/AmbiguousRange:
|
|
19
19
|
Lint/AmbiguousRegexpLiteral:
|
20
20
|
Enabled: true
|
21
21
|
|
22
|
+
Lint/ArrayLiteralInRegexp:
|
23
|
+
Enabled: true
|
24
|
+
|
22
25
|
Lint/AssignmentInCondition:
|
23
26
|
Enabled: true
|
24
27
|
AllowSafeAssignment: false
|
@@ -45,6 +48,9 @@ Lint/ConstantDefinitionInBlock:
|
|
45
48
|
Lint/ConstantOverwrittenInRescue:
|
46
49
|
Enabled: true
|
47
50
|
|
51
|
+
Lint/ConstantReassignment:
|
52
|
+
Enabled: true
|
53
|
+
|
48
54
|
Lint/ConstantResolution:
|
49
55
|
Enabled: false
|
50
56
|
# Restrict this cop to only looking at certain names
|
@@ -52,6 +58,9 @@ Lint/ConstantResolution:
|
|
52
58
|
# Restrict this cop from only looking at certain names
|
53
59
|
Ignore: [ ]
|
54
60
|
|
61
|
+
Lint/CopDirectiveSyntax:
|
62
|
+
Enabled: true
|
63
|
+
|
55
64
|
Lint/Debugger:
|
56
65
|
Enabled: true
|
57
66
|
DebuggerMethods:
|
@@ -139,6 +148,7 @@ Lint/DuplicateBranch:
|
|
139
148
|
Enabled: true
|
140
149
|
IgnoreLiteralBranches: true
|
141
150
|
IgnoreConstantBranches: true
|
151
|
+
IgnoreDuplicateElseBranch: true
|
142
152
|
|
143
153
|
Lint/DuplicateCaseCondition:
|
144
154
|
Enabled: true
|
@@ -167,6 +177,9 @@ Lint/DuplicateRequire:
|
|
167
177
|
Lint/DuplicateRescueException:
|
168
178
|
Enabled: true
|
169
179
|
|
180
|
+
Lint/DuplicateSetElement:
|
181
|
+
Enabled: true
|
182
|
+
|
170
183
|
Lint/EachWithObjectArgument:
|
171
184
|
Enabled: true
|
172
185
|
|
@@ -228,6 +241,9 @@ Lint/FormatParameterMismatch:
|
|
228
241
|
Lint/HashCompareByIdentity:
|
229
242
|
Enabled: true
|
230
243
|
|
244
|
+
Lint/HashNewWithKeywordArgumentsAsDefault:
|
245
|
+
Enabled: true
|
246
|
+
|
231
247
|
Lint/HeredocMethodCallPosition:
|
232
248
|
Enabled: true
|
233
249
|
|
@@ -348,6 +364,9 @@ Lint/NumberConversion:
|
|
348
364
|
Lint/NumberedParameterAssignment:
|
349
365
|
Enabled: true
|
350
366
|
|
367
|
+
Lint/NumericOperationWithConstantResult:
|
368
|
+
Enabled: true
|
369
|
+
|
351
370
|
Lint/OrAssignmentToConstant:
|
352
371
|
Enabled: true
|
353
372
|
|
@@ -407,6 +426,9 @@ Lint/RedundantSplatExpansion:
|
|
407
426
|
Lint/RedundantStringCoercion:
|
408
427
|
Enabled: true
|
409
428
|
|
429
|
+
Lint/RedundantTypeConversion:
|
430
|
+
Enabled: true
|
431
|
+
|
410
432
|
Lint/RedundantWithIndex:
|
411
433
|
Enabled: true
|
412
434
|
|
@@ -478,6 +500,9 @@ Lint/ShadowedException:
|
|
478
500
|
Lint/ShadowingOuterLocalVariable:
|
479
501
|
Enabled: true
|
480
502
|
|
503
|
+
Lint/SharedMutableDefault:
|
504
|
+
Enabled: true
|
505
|
+
|
481
506
|
Lint/StructNewOverride:
|
482
507
|
Enabled: true
|
483
508
|
|
@@ -486,6 +511,9 @@ Lint/SuppressedException:
|
|
486
511
|
AllowComments: true
|
487
512
|
AllowNil: true
|
488
513
|
|
514
|
+
Lint/SuppressedExceptionInNumberConversion:
|
515
|
+
Enabled: true
|
516
|
+
|
489
517
|
Lint/SymbolConversion:
|
490
518
|
Enabled: true
|
491
519
|
EnforcedStyle: consistent
|
@@ -515,6 +543,9 @@ Lint/UnderscorePrefixedVariableName:
|
|
515
543
|
Enabled: true
|
516
544
|
AllowKeywordBlockArguments: false
|
517
545
|
|
546
|
+
Lint/UnescapedBracketInRegexp:
|
547
|
+
Enabled: true
|
548
|
+
|
518
549
|
Lint/UnexpectedBlockArity:
|
519
550
|
Enabled: true
|
520
551
|
Methods:
|
@@ -570,12 +601,29 @@ Lint/UselessAccessModifier:
|
|
570
601
|
Lint/UselessAssignment:
|
571
602
|
Enabled: true
|
572
603
|
|
604
|
+
Lint/UselessConstantScoping:
|
605
|
+
Enabled: true
|
606
|
+
|
607
|
+
Lint/UselessDefaultValueArgument:
|
608
|
+
Enabled: true
|
609
|
+
AllowedReceivers:
|
610
|
+
- 'Rails.cache'
|
611
|
+
|
612
|
+
Lint/UselessDefined:
|
613
|
+
Enabled: true
|
614
|
+
|
573
615
|
Lint/UselessElseWithoutRescue:
|
574
616
|
Enabled: true
|
575
617
|
|
576
618
|
Lint/UselessMethodDefinition:
|
577
619
|
Enabled: true
|
578
620
|
|
621
|
+
Lint/UselessNumericOperation:
|
622
|
+
Enabled: true
|
623
|
+
|
624
|
+
Lint/UselessOr:
|
625
|
+
Enabled: true
|
626
|
+
|
579
627
|
Lint/UselessRescue:
|
580
628
|
Enabled: true
|
581
629
|
|
data/config/naming.yml
CHANGED
@@ -191,7 +191,11 @@ Naming/MethodParameterName:
|
|
191
191
|
# Forbidden names that will register an offense
|
192
192
|
ForbiddenNames: [ ]
|
193
193
|
|
194
|
-
Naming/
|
194
|
+
Naming/PredicateMethod:
|
195
|
+
Enabled: true
|
196
|
+
Mode: aggresive
|
197
|
+
|
198
|
+
Naming/PredicatePrefix:
|
195
199
|
Enabled: true
|
196
200
|
# Predicate name prefixes.
|
197
201
|
NamePrefix:
|
data/config/performance.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
plugins: rubocop-performance
|
2
2
|
|
3
3
|
Performance:
|
4
4
|
Enabled: false
|
@@ -119,6 +119,9 @@ Performance/StartWith:
|
|
119
119
|
Enabled: true
|
120
120
|
SafeMultiline: false
|
121
121
|
|
122
|
+
Performance/StringBytesize:
|
123
|
+
Enabled: true
|
124
|
+
|
122
125
|
Performance/StringIdentifierArgument:
|
123
126
|
Enabled: true
|
124
127
|
|
@@ -134,3 +137,6 @@ Performance/Sum:
|
|
134
137
|
|
135
138
|
Performance/TimesMap:
|
136
139
|
Enabled: true
|
140
|
+
|
141
|
+
Performance/ZipWithoutBlock:
|
142
|
+
Enabled: true
|
data/config/rubocop.yml
CHANGED
data/config/style.yml
CHANGED
@@ -23,6 +23,9 @@ Style/Alias:
|
|
23
23
|
- prefer_alias
|
24
24
|
- prefer_alias_method
|
25
25
|
|
26
|
+
Style/AmbiguousEndlessMethodDefinition:
|
27
|
+
Enabled: true
|
28
|
+
|
26
29
|
Style/AndOr:
|
27
30
|
Enabled: true
|
28
31
|
# Whether `and` and `or` are banned only in conditionals (conditionals)
|
@@ -75,6 +78,9 @@ Style/BeginBlock:
|
|
75
78
|
Style/BisectedAttrAccessor:
|
76
79
|
Enabled: true
|
77
80
|
|
81
|
+
Style/BitwisePredicate:
|
82
|
+
Enabled: true
|
83
|
+
|
78
84
|
Style/BlockComments:
|
79
85
|
Enabled: true
|
80
86
|
|
@@ -295,6 +301,9 @@ Style/ColonMethodCall:
|
|
295
301
|
Style/ColonMethodDefinition:
|
296
302
|
Enabled: true
|
297
303
|
|
304
|
+
Style/CombinableDefined:
|
305
|
+
Enabled: true
|
306
|
+
|
298
307
|
Style/CombinableLoops:
|
299
308
|
Enabled: true
|
300
309
|
|
@@ -327,6 +336,9 @@ Style/CommentAnnotation:
|
|
327
336
|
Style/CommentedKeyword:
|
328
337
|
Enabled: true
|
329
338
|
|
339
|
+
Style/ComparableBetween:
|
340
|
+
Enabled: true
|
341
|
+
|
330
342
|
Style/ComparableClamp:
|
331
343
|
Enabled: true
|
332
344
|
|
@@ -385,6 +397,9 @@ Style/DateTime:
|
|
385
397
|
Style/DefWithParentheses:
|
386
398
|
Enabled: true
|
387
399
|
|
400
|
+
Style/DigChain:
|
401
|
+
Enabled: true
|
402
|
+
|
388
403
|
Style/Dir:
|
389
404
|
Enabled: true
|
390
405
|
|
@@ -467,6 +482,10 @@ Style/EmptyMethod:
|
|
467
482
|
- compact
|
468
483
|
- expanded
|
469
484
|
|
485
|
+
Style/EmptyStringInsideInterpolation:
|
486
|
+
Enabled: true
|
487
|
+
EnforcedStyle: trailing_conditional
|
488
|
+
|
470
489
|
Style/Encoding:
|
471
490
|
Enabled: true
|
472
491
|
|
@@ -515,9 +534,15 @@ Style/FetchEnvVar:
|
|
515
534
|
Style/FileEmpty:
|
516
535
|
Enabled: true
|
517
536
|
|
537
|
+
Style/FileNull:
|
538
|
+
Enabled: true
|
539
|
+
|
518
540
|
Style/FileRead:
|
519
541
|
Enabled: true
|
520
542
|
|
543
|
+
Style/FileTouch:
|
544
|
+
Enabled: true
|
545
|
+
|
521
546
|
Style/FileWrite:
|
522
547
|
Enabled: true
|
523
548
|
|
@@ -614,12 +639,18 @@ Style/HashEachMethods:
|
|
614
639
|
Style/HashExcept:
|
615
640
|
Enabled: true
|
616
641
|
|
642
|
+
Style/HashFetchChain:
|
643
|
+
Enabled: true
|
644
|
+
|
617
645
|
Style/HashLikeCase:
|
618
646
|
Enabled: true
|
619
647
|
# `MinBranchesCount` defines the number of branches `case` needs to have
|
620
648
|
# to trigger this cop
|
621
649
|
MinBranchesCount: 3
|
622
650
|
|
651
|
+
Style/HashSlice:
|
652
|
+
Enabled: true
|
653
|
+
|
623
654
|
Style/HashSyntax:
|
624
655
|
Enabled: true
|
625
656
|
EnforcedStyle: ruby19_no_mixed_keys
|
@@ -745,6 +776,17 @@ Style/IpAddresses:
|
|
745
776
|
- '**/Gemfile'
|
746
777
|
- '**/gems.rb'
|
747
778
|
- '**/*.gemspec'
|
779
|
+
- '**/rack_attack.rb'
|
780
|
+
|
781
|
+
Style/ItAssignment:
|
782
|
+
Enabled: <%= ENV['RUBY_MAJOR'].to_f >= 3.4 %>
|
783
|
+
|
784
|
+
Style/ItBlockParameter:
|
785
|
+
Enabled: true
|
786
|
+
EnforcedStyle: disallow
|
787
|
+
|
788
|
+
Style/KeywordArgumentsMergin:
|
789
|
+
Enabled: true
|
748
790
|
|
749
791
|
Style/KeywordParametersOrder:
|
750
792
|
Enabled: true
|
@@ -1173,6 +1215,9 @@ Style/RedundantArgument:
|
|
1173
1215
|
Style/RedundantArrayConstructor:
|
1174
1216
|
Enabled: true
|
1175
1217
|
|
1218
|
+
Style/RedundantArrayFlatten:
|
1219
|
+
Enabled: true
|
1220
|
+
|
1176
1221
|
Style/RedundantAssignment:
|
1177
1222
|
Enabled: true
|
1178
1223
|
|
@@ -1216,6 +1261,9 @@ Style/RedundantFileExtensionInRequire:
|
|
1216
1261
|
Style/RedundantFilterChain:
|
1217
1262
|
Enabled: true
|
1218
1263
|
|
1264
|
+
Style/RedundantFormat:
|
1265
|
+
Enabled: true
|
1266
|
+
|
1219
1267
|
Style/RedundantFreeze:
|
1220
1268
|
Enabled: true
|
1221
1269
|
|
@@ -1229,6 +1277,9 @@ Style/RedundantInitialize:
|
|
1229
1277
|
Style/RedundantInterpolation:
|
1230
1278
|
Enabled: true
|
1231
1279
|
|
1280
|
+
Style/RedundantInterpolationUnfreeze:
|
1281
|
+
Enabled: <%= ENV['RUBY_MAJOR'].to_i >= 3 %
|
1282
|
+
|
1232
1283
|
Style/RedundantLineContinuation:
|
1233
1284
|
Enabled: true
|
1234
1285
|
|
@@ -1328,6 +1379,9 @@ Style/SafeNavigation:
|
|
1328
1379
|
# Maximum length of method chains for register an offense.
|
1329
1380
|
MaxChainLength: 2
|
1330
1381
|
|
1382
|
+
Style/SafeNavigationChainLength:
|
1383
|
+
Enabled: false
|
1384
|
+
|
1331
1385
|
Style/Sample:
|
1332
1386
|
Enabled: true
|
1333
1387
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
plugins: rubocop-thread_safety
|
2
|
+
|
3
|
+
ThreadSafety/ClassAndModuleAttributes:
|
4
|
+
Enabled: true
|
5
|
+
|
6
|
+
ThreadSafety/ClassInstanceVariable:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
ThreadSafety/DirChdir:
|
10
|
+
Enabled: true
|
11
|
+
AllowCallWithBlock: true
|
12
|
+
|
13
|
+
ThreadSafety/MutableClassInstanceVariable:
|
14
|
+
Enabled: true
|
15
|
+
EnforcedStyle: strict
|
16
|
+
|
17
|
+
ThreadSafety/NewThread:
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
ThreadSafety/RackMiddlewareInstanceVariable:
|
21
|
+
Enabled: true
|
22
|
+
Include:
|
23
|
+
- app/middleware/**/*.rb
|
24
|
+
- lib/middleware/**/*.rb
|
25
|
+
- app/middlewares/**/*.rb
|
26
|
+
- lib/middlewares/**/*.rb
|
27
|
+
AllowedIdentifiers: [ ]
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'lint_roller'
|
4
|
+
|
5
|
+
module RuboCop
|
6
|
+
module Rubomatic
|
7
|
+
# A plugin that integrates RuboCop Performance with RuboCop's plugin system.
|
8
|
+
class Plugin < LintRoller::Plugin
|
9
|
+
# :nodoc:
|
10
|
+
def about
|
11
|
+
LintRoller::About.new(
|
12
|
+
name: 'rubocop-rubomatic',
|
13
|
+
version: VERSION.to_s,
|
14
|
+
homepage: 'https://github.com/BrandsInsurance/rubocop-rubomatic/',
|
15
|
+
description: 'A collection of RuboCop cops to check for performance optimizations in Ruby code.'
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
# :nodoc:
|
20
|
+
def supported?(context)
|
21
|
+
context.engine == :rubocop
|
22
|
+
end
|
23
|
+
|
24
|
+
# :nodoc:
|
25
|
+
def rules(_context)
|
26
|
+
LintRoller::Rules.new(
|
27
|
+
type: :path,
|
28
|
+
config_format: :rubocop,
|
29
|
+
value: Pathname.new(__dir__).join('../../../config/default.yml')
|
30
|
+
)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -2,6 +2,20 @@
|
|
2
2
|
|
3
3
|
module RuboCop
|
4
4
|
module Rubomatic
|
5
|
-
VERSION
|
5
|
+
module VERSION
|
6
|
+
MAJOR = 1
|
7
|
+
MINOR = 6
|
8
|
+
TINY = 0
|
9
|
+
|
10
|
+
# Set PRE to nil unless it's a pre-release (beta, rc, etc.)
|
11
|
+
PRE = 'rc.pre.2'
|
12
|
+
|
13
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.').freeze
|
14
|
+
|
15
|
+
# @return [String]
|
16
|
+
def self.to_s
|
17
|
+
STRING
|
18
|
+
end
|
19
|
+
end
|
6
20
|
end
|
7
21
|
end
|
data/lib/rubocop-rubomatic.rb
CHANGED
@@ -4,9 +4,7 @@ require 'rubocop'
|
|
4
4
|
|
5
5
|
require_relative 'rubocop/cop/rubomatic/generator'
|
6
6
|
require_relative 'rubocop/rubomatic'
|
7
|
-
require_relative 'rubocop/rubomatic/
|
7
|
+
require_relative 'rubocop/rubomatic/plugin'
|
8
8
|
require_relative 'rubocop/rubomatic/version'
|
9
9
|
|
10
|
-
RuboCop::Rubomatic::Inject.defaults!
|
11
|
-
|
12
10
|
require_relative 'rubocop/cop/rubomatic_cops'
|
metadata
CHANGED
@@ -1,55 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rubomatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0.rc.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brands Insurance
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: lint_roller
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.1.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.1.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rubocop
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
33
|
+
version: 1.76.0
|
20
34
|
- - ">="
|
21
35
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
36
|
+
version: 1.76.1
|
23
37
|
type: :runtime
|
24
38
|
prerelease: false
|
25
39
|
version_requirements: !ruby/object:Gem::Requirement
|
26
40
|
requirements:
|
27
41
|
- - "~>"
|
28
42
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
43
|
+
version: 1.76.0
|
30
44
|
- - ">="
|
31
45
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
46
|
+
version: 1.76.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rubocop-packaging
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.6.0
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - '='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.6.0
|
33
61
|
- !ruby/object:Gem::Dependency
|
34
62
|
name: rubocop-performance
|
35
63
|
requirement: !ruby/object:Gem::Requirement
|
36
64
|
requirements:
|
37
65
|
- - "~>"
|
38
66
|
- !ruby/object:Gem::Version
|
39
|
-
version: 1.
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 1.22.1
|
67
|
+
version: 1.25.0
|
43
68
|
type: :runtime
|
44
69
|
prerelease: false
|
45
70
|
version_requirements: !ruby/object:Gem::Requirement
|
46
71
|
requirements:
|
47
72
|
- - "~>"
|
48
73
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.
|
50
|
-
|
74
|
+
version: 1.25.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rubocop-thread_safety
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 0.7.2
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - '='
|
51
87
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
88
|
+
version: 0.7.2
|
53
89
|
description:
|
54
90
|
email:
|
55
91
|
- documents@brandsinsurance.com
|
@@ -76,6 +112,7 @@ files:
|
|
76
112
|
- config/rubomatic/style.yml
|
77
113
|
- config/security.yml
|
78
114
|
- config/style.yml
|
115
|
+
- config/thread_safety.yml
|
79
116
|
- docs/cops/layout/README.adoc
|
80
117
|
- docs/cops/layout/multiline_array_line_breaks/README.adoc
|
81
118
|
- docs/cops/style/README.adoc
|
@@ -88,12 +125,13 @@ files:
|
|
88
125
|
- lib/rubocop/cop/rubomatic/style/disallowed_methods.rb
|
89
126
|
- lib/rubocop/cop/rubomatic_cops.rb
|
90
127
|
- lib/rubocop/rubomatic.rb
|
91
|
-
- lib/rubocop/rubomatic/
|
128
|
+
- lib/rubocop/rubomatic/plugin.rb
|
92
129
|
- lib/rubocop/rubomatic/version.rb
|
93
130
|
homepage: https://github.com/BrandsInsurance/rubocop-rubomatic/
|
94
131
|
licenses:
|
95
132
|
- MIT
|
96
133
|
metadata:
|
134
|
+
default_lint_roller_plugin: RuboCop::Rubomatic::Plugin
|
97
135
|
rubygems_mfa_required: 'true'
|
98
136
|
homepage_uri: https://github.com/BrandsInsurance/rubocop-rubomatic/
|
99
137
|
source_code_uri: https://github.com/BrandsInsurance/rubocop-rubomatic/tree/main
|
@@ -109,9 +147,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
147
|
version: 3.0.1
|
110
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
149
|
requirements:
|
112
|
-
- - "
|
150
|
+
- - ">"
|
113
151
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
152
|
+
version: 1.3.1
|
115
153
|
requirements: []
|
116
154
|
rubygems_version: 3.2.15
|
117
155
|
signing_key:
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RuboCop
|
4
|
-
module Rubomatic
|
5
|
-
module Inject
|
6
|
-
# This was a generated method from https://github.com/rubocop/rubocop-extension-generator
|
7
|
-
#
|
8
|
-
def self.defaults!
|
9
|
-
path = CONFIG_DEFAULT.to_s
|
10
|
-
hash = ConfigLoader.__send__(:load_yaml_configuration, path)
|
11
|
-
config = Config.new(hash, path).tap(&:make_excludes_absolute)
|
12
|
-
|
13
|
-
puts("configuration from #{path}") if ConfigLoader.debug?
|
14
|
-
|
15
|
-
config = ConfigLoader.merge_with_default(config, path)
|
16
|
-
|
17
|
-
ConfigLoader.instance_variable_set(:@default_configuration, config)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|