makandra-rubocop 16.0.0 → 16.1.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: 388a2d317c832f6716236d2063043aa899d8eb21b07abb8f9d88debfc144f932
4
- data.tar.gz: e7a1092758e05a274f4fd5c537bc3217512dd64316d74f3e53104635bd1dcb6e
3
+ metadata.gz: 4e6f2eff9125ffb75d3347586d601b815e838f850ffbcd9f432c17d63be06285
4
+ data.tar.gz: 4417ece79d85430aacb2e747c8fb43d7f27feba9dfc381f70287159157e4ccf5
5
5
  SHA512:
6
- metadata.gz: a89a4dd3036c8394ab7b91e607e609d71da93677a92ed4b8fbaf4c1adc27e2c820656e7e6f525975e9023bc1629ec676d743f3b32210831063dba46261699690
7
- data.tar.gz: b6b4554837bc5aac15720abb86e3b924dd569a55122b33fae83da916c2a9168f084cd0588d5490320bd7b76c3079d14aa40c71b948fdc9b8d55cd419d4ecfcf9
6
+ metadata.gz: 7187a6d0c3cb6a52f6f5ace9e2d34ef60037e51219308877bde3f69d5348014e65311417a5e048a4b29cc5895844baa228e3b393104630ac974cc4ea2046c536
7
+ data.tar.gz: c7ffdd9227a9a652b9ea647126c89f0fba2f443d19f50fd7bc1b1288298f55b26d5ceb7d7b24ed67a64185997029220d6e23d891455e61bd9441a68fb6768d7a
data/CHANGELOG.md CHANGED
@@ -9,6 +9,28 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
9
9
  ### Compatible changes
10
10
 
11
11
 
12
+
13
+ ## 16.1.0 -2025-07-09
14
+
15
+ ### Compatible changes
16
+ - Disable cop RSpec/NotToNot (#73)
17
+ - Disable cop Naming/MethodParameterName (#72)
18
+ - Set option AllowComments for cop Style/EmptyElse to true (#71)
19
+ - Disable cop Style/ArrayCoercion (#70)
20
+ - Disable cop Style/ArgumentsForwarding (#69)
21
+ - Disable cop Style/SoleNestedConditional (#68)
22
+ - Disable cop Style/CombinableLoops (#67)
23
+ - Disable cop Layout/SpaceAroundOperators (#66)
24
+ - Disable cop Rails/SquishedSQLHeredocs (#65)
25
+ - Disable cop Style/StringLiterals (#64)
26
+ - Disable cop Style/SafeNavigation (#63)
27
+ - Disable cop Style/ConditionalAssignment (#62)
28
+ - Disable cop Rails/HasAndBelongsToMany (#61)
29
+ - Disable cop RSpec/IndexedLet (#60)
30
+ - Disable cop RSpec/MetadataStyle (#59)
31
+ - Disable cop Style/FormatString (#58)
32
+
33
+
12
34
  ## 16.0.0 - 2025-02-25
13
35
 
14
36
  ### Breaking changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- makandra-rubocop (16.0.0)
4
+ makandra-rubocop (16.1.0)
5
5
  rubocop (~> 1.70.0)
6
6
  rubocop-capybara (~> 2.20.0)
7
7
  rubocop-factory_bot (~> 2.25.1)
@@ -25,26 +25,27 @@ GEM
25
25
  mutex_m
26
26
  securerandom (>= 0.3)
27
27
  tzinfo (~> 2.0)
28
- ast (2.4.2)
29
- base64 (0.2.0)
30
- benchmark (0.4.0)
31
- bigdecimal (3.1.9)
32
- concurrent-ruby (1.3.4)
33
- connection_pool (2.5.0)
34
- drb (2.2.1)
35
- i18n (1.14.6)
28
+ ast (2.4.3)
29
+ base64 (0.3.0)
30
+ benchmark (0.4.1)
31
+ bigdecimal (3.2.2)
32
+ concurrent-ruby (1.3.5)
33
+ connection_pool (2.5.3)
34
+ drb (2.2.3)
35
+ i18n (1.14.7)
36
36
  concurrent-ruby (~> 1.0)
37
- json (2.9.1)
38
- language_server-protocol (3.17.0.3)
39
- logger (1.6.5)
40
- minitest (5.25.4)
37
+ json (2.12.2)
38
+ language_server-protocol (3.17.0.5)
39
+ logger (1.7.0)
40
+ minitest (5.25.5)
41
41
  mutex_m (0.3.0)
42
- parallel (1.26.3)
43
- parser (3.3.6.0)
42
+ parallel (1.27.0)
43
+ parser (3.3.8.0)
44
44
  ast (~> 2.4.1)
45
45
  racc
46
+ prism (1.4.0)
46
47
  racc (1.8.1)
47
- rack (3.1.8)
48
+ rack (3.1.16)
48
49
  rainbow (3.1.1)
49
50
  rake (12.3.2)
50
51
  regexp_parser (2.10.0)
@@ -58,8 +59,9 @@ GEM
58
59
  rubocop-ast (>= 1.36.2, < 2.0)
59
60
  ruby-progressbar (~> 1.7)
60
61
  unicode-display_width (>= 2.4.0, < 4.0)
61
- rubocop-ast (1.37.0)
62
- parser (>= 3.3.1.0)
62
+ rubocop-ast (1.45.1)
63
+ parser (>= 3.3.7.2)
64
+ prism (~> 1.4)
63
65
  rubocop-capybara (2.20.0)
64
66
  rubocop (~> 1.41)
65
67
  rubocop-factory_bot (2.25.1)
data/config/default.yml CHANGED
@@ -1375,7 +1375,7 @@ Layout/SpaceAroundMethodCallOperator:
1375
1375
  Layout/SpaceAroundOperators:
1376
1376
  Description: 'Use a single space around operators.'
1377
1377
  StyleGuide: '#spaces-operators'
1378
- Enabled: true
1378
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/66
1379
1379
  VersionAdded: '0.49'
1380
1380
  # When `true`, allows most uses of extra spacing if the intent is to align
1381
1381
  # with an operator on the previous or next line, not counting empty lines
@@ -2975,7 +2975,7 @@ Naming/MethodParameterName:
2975
2975
  Description: >-
2976
2976
  Checks for method parameter names that contain capital letters,
2977
2977
  end in numbers, or do not meet a minimal length.
2978
- Enabled: true
2978
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/72
2979
2979
  VersionAdded: '0.53'
2980
2980
  VersionChanged: '0.77'
2981
2981
  # Parameter names may be equal to or greater than this value
@@ -3197,7 +3197,7 @@ Style/AndOr:
3197
3197
  Style/ArgumentsForwarding:
3198
3198
  Description: 'Use arguments forwarding.'
3199
3199
  StyleGuide: '#arguments-forwarding'
3200
- Enabled: true
3200
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/69
3201
3201
  # AllowOnlyRestArgument: true # Option has been commented out since it produced warnings when running Rubocop on Ruby 3.3 applications. Not specifying it avoids warnings, and seems to be fine.
3202
3202
  UseAnonymousForwarding: false # Enforcing anonymous * or ** does not improve code readability.
3203
3203
  RedundantRestArgumentNames:
@@ -3220,7 +3220,7 @@ Style/ArrayCoercion:
3220
3220
  with a variable you want to treat as an Array, but you're not certain it's an array.
3221
3221
  StyleGuide: '#array-coercion'
3222
3222
  Safe: false
3223
- Enabled: true # We use this quite often exactly like described
3223
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/70
3224
3224
  VersionAdded: '0.88'
3225
3225
 
3226
3226
  Style/ArrayFirstLast:
@@ -3586,7 +3586,7 @@ Style/CombinableLoops:
3586
3586
  Description: >-
3587
3587
  Checks for places where multiple consecutive loops over the same data
3588
3588
  can be combined into a single loop.
3589
- Enabled: true
3589
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/67
3590
3590
  Safe: false
3591
3591
  VersionAdded: '0.90'
3592
3592
 
@@ -3648,7 +3648,7 @@ Style/ConditionalAssignment:
3648
3648
  Use the return value of `if` and `case` statements for
3649
3649
  assignment to a variable and variable comparison instead
3650
3650
  of assigning that variable inside of each branch.
3651
- Enabled: true # We usually want this, except when assigning multiple values. Disable, if this cop contradicts that.
3651
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/62
3652
3652
  VersionAdded: '0.36'
3653
3653
  VersionChanged: '0.47'
3654
3654
  EnforcedStyle: assign_to_condition
@@ -3829,7 +3829,7 @@ Style/EmptyElse:
3829
3829
  - empty
3830
3830
  - nil
3831
3831
  - both
3832
- AllowComments: false
3832
+ AllowComments: true # as discussed in https://github.com/makandra/makandra-rubocop/issues/71
3833
3833
 
3834
3834
  Style/EmptyHeredoc:
3835
3835
  Description: 'Checks for using empty heredoc to reduce redundancy.'
@@ -4002,7 +4002,7 @@ Style/For:
4002
4002
  Style/FormatString:
4003
4003
  Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
4004
4004
  StyleGuide: '#sprintf'
4005
- Enabled: true
4005
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/58
4006
4006
  VersionAdded: '0.19'
4007
4007
  VersionChanged: '0.49'
4008
4008
  EnforcedStyle: format
@@ -5303,7 +5303,7 @@ Style/SafeNavigation:
5303
5303
  safe navigation (`&.`).
5304
5304
  Autocorrection is unsafe as it assumes the object will
5305
5305
  be `nil` or truthy, but never `false`.
5306
- Enabled: true
5306
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/63
5307
5307
  VersionAdded: '0.43'
5308
5308
  VersionChanged: '1.67'
5309
5309
  # Safe navigation may cause a statement to start returning `nil` in addition
@@ -5427,7 +5427,7 @@ Style/SoleNestedConditional:
5427
5427
  Description: >-
5428
5428
  Finds sole nested conditional nodes
5429
5429
  which can be merged into outer conditional node.
5430
- Enabled: true
5430
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/68
5431
5431
  VersionAdded: '0.89'
5432
5432
  VersionChanged: '1.5'
5433
5433
  AllowModifier: false
@@ -5496,7 +5496,7 @@ Style/StringHashKeys:
5496
5496
  Style/StringLiterals:
5497
5497
  Description: 'Checks if uses of quotes match the configured preference.'
5498
5498
  StyleGuide: '#consistent-string-literals'
5499
- Enabled: true
5499
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/64
5500
5500
  VersionAdded: '0.9'
5501
5501
  VersionChanged: '0.36'
5502
5502
  EnforcedStyle: single_quotes
data/config/ext/rails.yml CHANGED
@@ -526,7 +526,7 @@ Rails/FreezeTime:
526
526
  Rails/HasAndBelongsToMany:
527
527
  Description: 'Prefer has_many :through to has_and_belongs_to_many.'
528
528
  StyleGuide: 'https://rails.rubystyle.guide#has-many-through'
529
- Enabled: true
529
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/61
530
530
  VersionAdded: '0.12'
531
531
  Include:
532
532
  - app/models/**/*.rb
@@ -1043,7 +1043,7 @@ Rails/SkipsModelValidations:
1043
1043
  Rails/SquishedSQLHeredocs:
1044
1044
  Description: 'Checks SQL heredocs to use `.squish`.'
1045
1045
  StyleGuide: 'https://rails.rubystyle.guide/#squished-heredocs'
1046
- Enabled: true
1046
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/65
1047
1047
  VersionAdded: '2.8'
1048
1048
  VersionChanged: '2.9'
1049
1049
  # Some SQL syntax (e.g. PostgreSQL comments and functions) requires newlines
data/config/ext/rspec.yml CHANGED
@@ -522,7 +522,7 @@ RSpec/ImplicitSubject:
522
522
 
523
523
  RSpec/IndexedLet:
524
524
  Description: Do not set up test data using indexes (e.g., `item_1`, `item_2`).
525
- Enabled: true
525
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/60
526
526
  VersionAdded: '2.20'
527
527
  VersionChanged: '2.23'
528
528
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IndexedLet
@@ -631,7 +631,7 @@ RSpec/MessageSpies:
631
631
 
632
632
  RSpec/MetadataStyle:
633
633
  Description: Use consistent metadata style.
634
- Enabled: true
634
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/59
635
635
  EnforcedStyle: symbol
636
636
  SupportedStyles:
637
637
  - hash
@@ -716,7 +716,7 @@ RSpec/NoExpectationExample:
716
716
 
717
717
  RSpec/NotToNot:
718
718
  Description: Checks for consistent method usage for negating expectations.
719
- Enabled: true
719
+ Enabled: false # as discussed in https://github.com/makandra/makandra-rubocop/issues/73
720
720
  EnforcedStyle: not_to
721
721
  SupportedStyles:
722
722
  - not_to
@@ -1,3 +1,3 @@
1
1
  module MakandraRubocop
2
- VERSION = '16.0.0'.freeze
2
+ VERSION = '16.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makandra-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.0.0
4
+ version: 16.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Hartherz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-02-25 00:00:00.000000000 Z
12
+ date: 2025-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.2.33
148
+ rubygems_version: 3.1.6
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: makandra's default Rubocop configuration