rubocop-rubomatic 1.2.0 → 1.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7148474dcdc5f8fc8571ea0b43f8c5717800fd3d581451c944219079e2f30b4d
4
- data.tar.gz: fe52813c40d4cd06082b235061a221359521a3bcdfdbb8741d4e42576d1a0bc8
3
+ metadata.gz: 227643dc3a3296ebc5d71fe57c02a7e1c04e6625ab16af1f9bbc17af4d9683e8
4
+ data.tar.gz: 41ee9ed721ec3912f7c680b284d9125b35413ae2be83494220011a841efd1241
5
5
  SHA512:
6
- metadata.gz: 475bdeaf4beb7e763ad109c12502d7c539eac3c1ab211608c6c9dc50ea47bb2802a83476f3913318f0951e5bfa791af4a4005e17a142ad9e92ac2230aaa387ac
7
- data.tar.gz: 64ea332b112e6a62c9aaf070fa2965b21d790b06705c09d4ae19075987391d813d92b8fef28ecbe0ed30a54d3c615576f5ad0ad8a7aef19260fe43cf218dd97a
6
+ metadata.gz: b4dbfd30ea9ed273e47a295d17dbaa942fe3aa0de87d80544ba438b75201e95c398bd6416b8e9fe62bd0fe5a6327616b8a341d94dfef2f4b526066acece40637
7
+ data.tar.gz: c6886e605ffcafaa20994875e2a0de56591d617bcab51935428aebe36cd3377e1b965566abc437951b095f3122cf4a56d709d95f669552a62adccd7bb0f432c2
data/CHANGELOG.adoc CHANGED
@@ -1,3 +1,18 @@
1
+ == 1.3.0
2
+
3
+ === Cops
4
+
5
+ * Added new ``Bundler/DuplicatedGroup`` cop
6
+ * Removed ``SafeAutoCorrect`` key from all cops
7
+
8
+ === Options
9
+
10
+ * Added ``./\**/*.json.jbuilder`` to ``Exclude`` list for ``Performance/MultilineAssignmentLayout``
11
+
12
+ === Dependencies
13
+
14
+ * ``rubocop@1.56.0``
15
+
1
16
  == 1.2.0
2
17
 
3
18
  === Cops
data/config/bundler.yml CHANGED
@@ -9,6 +9,16 @@ Bundler/DuplicatedGem:
9
9
  - '**/Gemfile'
10
10
  - '**/gems.rb'
11
11
 
12
+ Bundler/DuplicatedGroup:
13
+ Description: Checks for duplicate group entries in Gemfile.
14
+ Enabled: true
15
+ Severity: warning
16
+ VersionAdded: '1.56'
17
+ Include:
18
+ - '**/*.gemfile'
19
+ - '**/Gemfile'
20
+ - '**/gems.rb'
21
+
12
22
  Bundler/GemComment:
13
23
  Description: 'Add a comment describing each gem.'
14
24
  Enabled: false
data/config/layout.yml CHANGED
@@ -725,7 +725,6 @@ Layout/LineContinuationSpacing:
725
725
  Description: 'Checks the spacing in front of backslash in line continuations.'
726
726
  Enabled: true
727
727
  AutoCorrect: true
728
- SafeAutoCorrect: true
729
728
  VersionAdded: '1.31'
730
729
  EnforcedStyle: space
731
730
  SupportedStyles:
data/config/lint.yml CHANGED
@@ -34,7 +34,6 @@ Lint/AmbiguousRange:
34
34
  Description: Checks for ranges with ambiguous boundaries.
35
35
  Enabled: true
36
36
  VersionAdded: '1.19'
37
- SafeAutoCorrect: false
38
37
  RequireParenthesesForMethodChains: true
39
38
 
40
39
  Lint/AmbiguousRegexpLiteral:
@@ -67,7 +66,6 @@ Lint/BinaryOperatorWithIdenticalOperands:
67
66
  Lint/BooleanSymbol:
68
67
  Description: 'Check for `:true` and `:false` symbols.'
69
68
  Enabled: true
70
- SafeAutoCorrect: false
71
69
  VersionAdded: '0.50'
72
70
  VersionChanged: '1.22'
73
71
 
@@ -245,7 +243,6 @@ Lint/DuplicateRegexpCharacterClassElement:
245
243
  Lint/DuplicateRequire:
246
244
  Description: 'Check for duplicate `require`s and `require_relative`s.'
247
245
  Enabled: true
248
- SafeAutoCorrect: false
249
246
  VersionAdded: '0.90'
250
247
  VersionChanged: '1.28'
251
248
 
@@ -282,7 +279,6 @@ Lint/EmptyClass:
282
279
  Lint/EmptyConditionalBody:
283
280
  Description: 'Checks for the presence of `if`, `elsif` and `unless` branches without a body.'
284
281
  Enabled: true
285
- SafeAutoCorrect: false
286
282
  AllowComments: true
287
283
  VersionAdded: '0.89'
288
284
  VersionChanged: '1.34'
@@ -390,7 +386,6 @@ Lint/ImplicitStringConcatenation:
390
386
  Lint/IncompatibleIoSelectWithFiberScheduler:
391
387
  Description: 'Checks for `IO.select` that is incompatible with Fiber Scheduler.'
392
388
  Enabled: true
393
- SafeAutoCorrect: false
394
389
  VersionAdded: '1.21'
395
390
  VersionChanged: '1.24'
396
391
 
@@ -404,7 +399,6 @@ Lint/IneffectiveAccessModifier:
404
399
  Lint/InheritException:
405
400
  Description: 'Avoid inheriting from the `Exception` class.'
406
401
  Enabled: true
407
- SafeAutoCorrect: false
408
402
  VersionAdded: '0.41'
409
403
  VersionChanged: '1.26'
410
404
  # The default base class in favour of `Exception`.
@@ -416,7 +410,6 @@ Lint/InheritException:
416
410
  Lint/InterpolationCheck:
417
411
  Description: 'Checks for interpolation in a single quoted string.'
418
412
  Enabled: true
419
- SafeAutoCorrect: false
420
413
  VersionAdded: '0.50'
421
414
  VersionChanged: '1.40'
422
415
 
@@ -471,7 +464,6 @@ Lint/MixedCaseRange:
471
464
  Description: Checks for mixed-case character ranges since they include likely unintended
472
465
  characters.
473
466
  Enabled: true
474
- SafeAutoCorrect: false
475
467
  VersionAdded: '1.53'
476
468
 
477
469
  Lint/MixedRegexpCaptureTypes:
@@ -515,7 +507,6 @@ Lint/NonAtomicFileOperation:
515
507
  StyleGuide: '#atomic-file-operations'
516
508
  Enabled: true
517
509
  VersionAdded: '1.31'
518
- SafeAutoCorrect: false
519
510
 
520
511
  Lint/NonDeterministicRequireOrder:
521
512
  Description: 'Always sort arrays returned by Dir.glob when requiring files.'
@@ -534,7 +525,6 @@ Lint/NumberConversion:
534
525
  Enabled: false
535
526
  VersionAdded: '0.53'
536
527
  VersionChanged: '1.1'
537
- SafeAutoCorrect: false
538
528
  # Add Rails' duration methods to the ignore list for `Lint/NumberConversion`
539
529
  # so that calling `to_i` on one of these does not register an offense.
540
530
  # See: https://github.com/rubocop/rubocop/issues/8950
@@ -573,7 +563,6 @@ Lint/OrAssignmentToConstant:
573
563
  Lint/OrderedMagicComments:
574
564
  Description: 'Checks the proper ordering of magic comments and whether a magic comment is not placed before a shebang.'
575
565
  Enabled: true
576
- SafeAutoCorrect: false
577
566
  VersionAdded: '0.53'
578
567
  VersionChanged: '1.37'
579
568
 
@@ -641,7 +630,6 @@ Lint/RedundantDirGlobSort:
641
630
  Enabled: <%= ENV['RUBY_MAJOR'].to_f >= 3.0 %>
642
631
  VersionAdded: '1.8'
643
632
  VersionChanged: '1.26'
644
- SafeAutoCorrect: false
645
633
 
646
634
  Lint/RedundantRegexpQuantifiers:
647
635
  Description: Checks for redundant quantifiers in Regexps.
@@ -693,7 +681,6 @@ Lint/RedundantWithObject:
693
681
  Lint/RefinementImportMethods:
694
682
  Description: 'Use `Refinement#import_methods` when using `include` or `prepend` in `refine` block.'
695
683
  Enabled: true
696
- SafeAutoCorrect: false
697
684
  VersionAdded: '1.27'
698
685
 
699
686
  Lint/RegexpAsCondition:
@@ -986,7 +973,6 @@ Lint/UselessRuby2Keywords:
986
973
  Lint/UselessSetterCall:
987
974
  Description: 'Checks for useless setter call to a local variable.'
988
975
  Enabled: true
989
- SafeAutoCorrect: false
990
976
  VersionAdded: '0.13'
991
977
  VersionChanged: '1.2'
992
978
  Safe: false
@@ -35,7 +35,6 @@ Performance/ConstantRegexp:
35
35
 
36
36
  Performance/Count:
37
37
  Description: Use `count` instead of `{select,find_all,filter,reject}...{size,count,length}`.
38
- SafeAutoCorrect: false
39
38
  Enabled: true
40
39
  VersionAdded: '0.31'
41
40
  VersionChanged: '1.8'
@@ -60,7 +59,6 @@ Performance/Detect:
60
59
  Description: Use `detect` instead of `select.first`, `find_all.first`, `filter.first`,
61
60
  `select.last`, `find_all.last`, and `filter.last`.
62
61
  Reference: https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code
63
- SafeAutoCorrect: false
64
62
  Enabled: true
65
63
  VersionAdded: '0.30'
66
64
  VersionChanged: '1.8'
@@ -76,7 +74,6 @@ Performance/DoubleStartEndWith:
76
74
  Performance/EndWith:
77
75
  Description: Use `end_with?` instead of a regex match anchored to the end of a string.
78
76
  Reference: https://github.com/JuanitoFatas/fast-ruby#stringmatch-vs-stringstart_withstringend_with-code-start-code-end
79
- SafeAutoCorrect: false
80
77
  Enabled: true
81
78
  SafeMultiline: false
82
79
  VersionAdded: '0.36'
@@ -111,7 +108,6 @@ Performance/IoReadlines:
111
108
  Performance/MapCompact:
112
109
  Description: Use `filter_map` instead of `collection.map(&:do_something).compact`.
113
110
  Enabled: true
114
- SafeAutoCorrect: false
115
111
  VersionAdded: '1.11'
116
112
 
117
113
  Performance/MethodObjectAsBlock:
@@ -163,6 +159,8 @@ Performance/RedundantMerge:
163
159
  VersionAdded: '0.36'
164
160
  VersionChanged: '1.11'
165
161
  MaxKeyValuePairs: 2
162
+ Exclude:
163
+ - './**/*.json.jbuilder'
166
164
 
167
165
  Performance/RedundantSortBlock:
168
166
  Description: Use `sort` instead of `sort { |a, b| a <=> b }`.
@@ -225,7 +223,6 @@ Performance/StartWith:
225
223
  Description: Use `start_with?` instead of a regex match anchored to the beginning
226
224
  of a string.
227
225
  Reference: https://github.com/JuanitoFatas/fast-ruby#stringmatch-vs-stringstart_withstringend_with-code-start-code-end
228
- SafeAutoCorrect: false
229
226
  Enabled: true
230
227
  SafeMultiline: false
231
228
  VersionAdded: '0.36'
@@ -239,7 +236,6 @@ Performance/StringIdentifierArgument:
239
236
  Performance/StringInclude:
240
237
  Description: Use `String#include?` instead of a regex match with literal-only pattern.
241
238
  Enabled: true
242
- SafeAutoCorrect: false
243
239
  VersionAdded: '1.7'
244
240
  VersionChanged: '1.12'
245
241
 
@@ -252,7 +248,6 @@ Performance/StringReplacement:
252
248
 
253
249
  Performance/Sum:
254
250
  Description: Use `sum` instead of a custom array summation.
255
- SafeAutoCorrect: false
256
251
  Reference: https://blog.bigbinary.com/2016/11/02/ruby-2-4-introduces-enumerable-sum.html
257
252
  Enabled: true
258
253
  VersionAdded: '1.8'
@@ -262,6 +257,5 @@ Performance/Sum:
262
257
  Performance/TimesMap:
263
258
  Description: Checks for .times.map calls.
264
259
  Enabled: true
265
- SafeAutoCorrect: false
266
260
  VersionAdded: '0.36'
267
261
  VersionChanged: '1.13'
data/config/security.yml CHANGED
@@ -26,7 +26,6 @@ Security/JSONLoad:
26
26
  VersionChanged: '1.22'
27
27
  # Autocorrect here will change to a method that may cause crashes depending
28
28
  # on the value of the argument.
29
- SafeAutoCorrect: false
30
29
 
31
30
  Security/MarshalLoad:
32
31
  Description: >-
@@ -50,4 +49,3 @@ Security/YAMLLoad:
50
49
  Reference: 'https://ruby-doc.org/stdlib-2.7.0/libdoc/yaml/rdoc/YAML.html#module-YAML-label-Security'
51
50
  Enabled: true
52
51
  VersionAdded: '0.47'
53
- SafeAutoCorrect: false
data/config/style.yml CHANGED
@@ -8,7 +8,6 @@ Style/AccessModifierDeclarations:
8
8
  - inline
9
9
  - group
10
10
  AllowModifiersOnSymbols: true
11
- SafeAutoCorrect: false
12
11
 
13
12
  Style/AccessorGrouping:
14
13
  Description: 'Checks for grouping of accessors in `class` and `module` bodies.'
@@ -36,7 +35,6 @@ Style/AndOr:
36
35
  Description: 'Use &&/|| instead of and/or.'
37
36
  StyleGuide: '#no-and-or-or'
38
37
  Enabled: true
39
- SafeAutoCorrect: false
40
38
  VersionAdded: '0.9'
41
39
  VersionChanged: '1.21'
42
40
  # Whether `and` and `or` are banned only in conditionals (conditionals)
@@ -282,7 +280,6 @@ Style/ClassAndModuleChildren:
282
280
  # verification that the outer parent is defined elsewhere. Rubocop does not
283
281
  # have the knowledge to perform either operation safely and thus requires
284
282
  # manual oversight.
285
- SafeAutoCorrect: false
286
283
  Enabled: true
287
284
  VersionAdded: '0.19'
288
285
  #
@@ -441,7 +438,6 @@ Style/CommentAnnotation:
441
438
  Style/CommentedKeyword:
442
439
  Description: 'Do not place comments on the same line as certain keywords.'
443
440
  Enabled: true
444
- SafeAutoCorrect: false
445
441
  VersionAdded: '0.51'
446
442
  VersionChanged: '1.19'
447
443
 
@@ -522,7 +518,6 @@ Style/DateTime:
522
518
  Enabled: false
523
519
  VersionAdded: '0.51'
524
520
  VersionChanged: '0.92'
525
- SafeAutoCorrect: false
526
521
  AllowCoercion: false
527
522
 
528
523
  Style/DefWithParentheses:
@@ -594,7 +589,6 @@ Style/DoubleNegation:
594
589
  VersionAdded: '0.19'
595
590
  VersionChanged: '1.2'
596
591
  EnforcedStyle: allowed_in_returns
597
- SafeAutoCorrect: false
598
592
  SupportedStyles:
599
593
  - allowed_in_returns
600
594
  - forbidden
@@ -784,7 +778,6 @@ Style/For:
784
778
  Description: 'Checks use of for or each in multiline loops.'
785
779
  StyleGuide: '#no-for-loops'
786
780
  Enabled: true
787
- SafeAutoCorrect: false
788
781
  VersionAdded: '0.13'
789
782
  VersionChanged: '1.26'
790
783
  EnforcedStyle: each
@@ -844,7 +837,6 @@ Style/FrozenStringLiteralComment:
844
837
  # `never` will enforce that the frozen string literal comment does not
845
838
  # exist in a file.
846
839
  - never
847
- SafeAutoCorrect: false
848
840
  Exclude:
849
841
  - 'db/migrate/*'
850
842
  - './**/*.json.jbuilder'
@@ -854,7 +846,6 @@ Style/GlobalStdStream:
854
846
  StyleGuide: '#global-stdout'
855
847
  Enabled: true
856
848
  VersionAdded: '0.89'
857
- SafeAutoCorrect: false
858
849
 
859
850
  Style/GlobalVars:
860
851
  Description: 'Do not introduce global variables.'
@@ -978,7 +969,6 @@ Style/IdenticalConditionalBranches:
978
969
  line at the end of each branch, which can validly be moved
979
970
  out of the conditional.
980
971
  Enabled: true
981
- SafeAutoCorrect: false
982
972
  VersionAdded: '0.36'
983
973
  VersionChanged: '1.19'
984
974
 
@@ -1009,7 +999,6 @@ Style/IfWithBooleanLiteralBranches:
1009
999
  Description: 'Checks for redundant `if` with boolean literal branches.'
1010
1000
  Enabled: true
1011
1001
  VersionAdded: '1.9'
1012
- SafeAutoCorrect: false
1013
1002
  AllowedMethods:
1014
1003
  - nonzero?
1015
1004
 
@@ -1152,7 +1141,6 @@ Style/LineEndConcatenation:
1152
1141
  Use \ instead of + or << to concatenate two string literals at
1153
1142
  line end.
1154
1143
  Enabled: true
1155
- SafeAutoCorrect: false
1156
1144
  VersionAdded: '0.18'
1157
1145
  VersionChanged: '0.64'
1158
1146
 
@@ -1317,7 +1305,6 @@ Style/ModuleFunction:
1317
1305
  - extend_self
1318
1306
  - forbidden
1319
1307
  Autocorrect: false
1320
- SafeAutoCorrect: false
1321
1308
 
1322
1309
  Style/MultilineBlockChain:
1323
1310
  Description: 'Avoid multi-line chains of blocks.'
@@ -1390,7 +1377,6 @@ Style/MutableConstant:
1390
1377
  Enabled: true
1391
1378
  VersionAdded: '0.34'
1392
1379
  VersionChanged: '1.8'
1393
- SafeAutoCorrect: false
1394
1380
  EnforcedStyle: literals
1395
1381
  SupportedStyles:
1396
1382
  # literals: freeze literals assigned to constants
@@ -1600,7 +1586,6 @@ Style/NumericPredicate:
1600
1586
  # This will change to a new method call which isn't guaranteed to be on the
1601
1587
  # object. Switching these methods has to be done with knowledge of the types
1602
1588
  # of the variables which rubocop doesn't have.
1603
- SafeAutoCorrect: false
1604
1589
  Enabled: false
1605
1590
  VersionAdded: '0.42'
1606
1591
  VersionChanged: '0.59'
@@ -1912,7 +1897,6 @@ Style/RedundantInitialize:
1912
1897
  Style/RedundantInterpolation:
1913
1898
  Description: 'Checks for strings that are just an interpolated expression.'
1914
1899
  Enabled: true
1915
- SafeAutoCorrect: false
1916
1900
  VersionAdded: '0.76'
1917
1901
  VersionChanged: '1.30'
1918
1902
 
@@ -2021,7 +2005,6 @@ Style/RegexpLiteral:
2021
2005
  Style/RequireOrder:
2022
2006
  Description: Sort `require` and `require_relative` in alphabetical order.
2023
2007
  Enabled: true
2024
- SafeAutoCorrect: false
2025
2008
  VersionAdded: '1.40'
2026
2009
 
2027
2010
  Style/RescueModifier:
@@ -2055,7 +2038,6 @@ Style/ReturnNilInPredicateMethodDefinition:
2055
2038
  Description: Checks if uses of `return` or `return nil` in predicate method definition.
2056
2039
  StyleGuide: "#bool-methods-qmark"
2057
2040
  Enabled: true
2058
- SafeAutoCorrect: false
2059
2041
  AllowedMethods: [ ]
2060
2042
  AllowedPatterns: [ ]
2061
2043
  VersionAdded: '1.53'
@@ -2079,7 +2061,6 @@ Style/SafeNavigation:
2079
2061
  - presence
2080
2062
  - try
2081
2063
  - try!
2082
- SafeAutoCorrect: false
2083
2064
  # Maximum length of method chains for register an offense.
2084
2065
  MaxChainLength: 2
2085
2066
 
@@ -2094,7 +2075,6 @@ Style/Sample:
2094
2075
  Style/SelectByRegexp:
2095
2076
  Description: 'Prefer grep/grep_v to select/reject with a regexp match.'
2096
2077
  Enabled: true
2097
- SafeAutoCorrect: false
2098
2078
  VersionAdded: '1.22'
2099
2079
 
2100
2080
  Style/SelfAssignment:
@@ -2181,7 +2161,6 @@ Style/SpecialGlobalVars:
2181
2161
  Enabled: true
2182
2162
  VersionAdded: '0.13'
2183
2163
  VersionChanged: '0.36'
2184
- SafeAutoCorrect: false
2185
2164
  RequireEnglish: true
2186
2165
  EnforcedStyle: use_english_names
2187
2166
  SupportedStyles:
@@ -2284,7 +2263,6 @@ Style/StructInheritance:
2284
2263
  Description: 'Checks for inheritance from Struct.new.'
2285
2264
  StyleGuide: '#no-extend-struct-new'
2286
2265
  Enabled: true
2287
- SafeAutoCorrect: false
2288
2266
  VersionAdded: '0.29'
2289
2267
  VersionChanged: '1.20'
2290
2268
 
@@ -2293,7 +2271,6 @@ Style/SwapValues:
2293
2271
  StyleGuide: '#values-swapping'
2294
2272
  Enabled: true
2295
2273
  VersionAdded: '1.1'
2296
- SafeAutoCorrect: false
2297
2274
 
2298
2275
  Style/SymbolArray:
2299
2276
  Description: 'Use %i or %I for arrays of symbols.'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Rubomatic
5
- VERSION = '1.2.0'
5
+ VERSION = '1.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rubomatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-23 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.53.0
19
+ version: 1.56.0
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
- version: 1.53.0
26
+ version: 1.56.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement