Skip to content

Commit e513d33

Browse files
committed
Cut 1.86.2
1 parent 5fea1b5 commit e513d33

11 files changed

Lines changed: 87 additions & 15 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ body:
8383
render: shell
8484
placeholder: |
8585
$ rubocop -V
86-
1.86.1 (using Parser 3.3.5.0, rubocop-ast 1.32.3, analyzing as Ruby 3.3, running on ruby 3.3.5) [x86_64-linux]
86+
1.86.2 (using Parser 3.3.5.0, rubocop-ast 1.32.3, analyzing as Ruby 3.3, running on ruby 3.3.5) [x86_64-linux]
8787
- rubocop-performance 1.22.1
8888
- rubocop-rspec 3.1.0
8989
validations:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
## master (unreleased)
1313

14+
## 1.86.2 (2026-05-14)
15+
1416
### New features
1517

1618
* [#15075](https://github.com/rubocop/rubocop/issues/15075): Implement true runner parallelism. ([@tdeo][])

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ do so.
1717

1818
```console
1919
$ rubocop -V
20-
1.86.1 (using Parser 3.3.7.2, rubocop-ast 1.49.0, analyzing as Ruby 3.4, running on ruby 3.4.8) [x86_64-linux]
20+
1.86.2 (using Parser 3.3.7.2, rubocop-ast 1.49.0, analyzing as Ruby 3.4, running on ruby 3.4.8) [x86_64-linux]
2121
- rubocop-performance 1.26.1
2222
- rubocop-rspec 3.9.0
2323
```

config/default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ Layout/ClosingParenthesisIndentation:
529529
Description: 'Checks the indentation of hanging closing parentheses.'
530530
Enabled: true
531531
VersionAdded: '0.49'
532-
VersionChanged: '<<next>>'
532+
VersionChanged: '1.86'
533533
# By default the indentation width from `Layout/IndentationWidth` is used,
534534
# but it can be overridden by setting this parameter.
535535
IndentationWidth: ~
@@ -541,7 +541,7 @@ Layout/CommentIndentation:
541541
# with a comment on the preceding line.
542542
AllowForAlignment: false
543543
VersionAdded: '0.49'
544-
VersionChanged: '<<next>>'
544+
VersionChanged: '1.86'
545545
# By default the indentation width from `Layout/IndentationWidth` is used,
546546
# but it can be overridden by setting this parameter.
547547
IndentationWidth: ~

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop
22
title: RuboCop
33
# We always provide version without patch here (e.g. 1.1),
44
# as patch versions should not appear in the docs.
5-
version: ~
5+
version: '1.86'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_layout.adoc

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ foo arg,
950950
| Yes
951951
| Always
952952
| 0.49
953-
| -
953+
| 1.86
954954
|===
955955
956956
Checks the indentation of hanging closing parentheses in
@@ -1021,6 +1021,17 @@ some_method(a,
10211021
)
10221022
----
10231023
1024+
[#configurable-attributes-layoutclosingparenthesisindentation]
1025+
=== Configurable attributes
1026+
1027+
|===
1028+
| Name | Default value | Configurable values
1029+
1030+
| IndentationWidth
1031+
| `<none>`
1032+
| Integer
1033+
|===
1034+
10241035
[#layoutcommentindentation]
10251036
== Layout/CommentIndentation
10261037
@@ -1031,7 +1042,7 @@ some_method(a,
10311042
| Yes
10321043
| Always
10331044
| 0.49
1034-
| 1.24
1045+
| 1.86
10351046
|===
10361047
10371048
Checks the indentation of comments.
@@ -1101,6 +1112,10 @@ a = 1 # A really long comment
11011112
| AllowForAlignment
11021113
| `false`
11031114
| Boolean
1115+
1116+
| IndentationWidth
1117+
| `<none>`
1118+
| Integer
11041119
|===
11051120
11061121
[#layoutconditionposition]

docs/modules/ROOT/pages/cops_naming.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ define_method(:foo) do
944944
end
945945
----
946946
947-
[#enforcedstyleforleadingunderscores-_optional-namingmemoizedinstancevariablename]
947+
[#enforcedstyleforleadingunderscores_-optional-namingmemoizedinstancevariablename]
948948
==== EnforcedStyleForLeadingUnderscores: optional
949949
950950
[source,ruby]

docs/modules/ROOT/pages/cops_style.adoc

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,8 +3523,8 @@ Person.ancestors
35233523
| 0.92
35243524
|===
35253525
3526-
Checks for consistent usage of the `DateTime` class over the
3527-
`Time` class. This cop is disabled by default since these classes,
3526+
Checks for consistent usage of the `Time` class over the
3527+
`DateTime` class. This cop is disabled by default since these classes,
35283528
although highly overlapping, have particularities that make them not
35293529
replaceable in certain situations when dealing with multiple timezones
35303530
and/or DST.
@@ -10801,6 +10801,12 @@ instance methods in the module, then check if a given method is inside that
1080110801
array, while `method_defined?` will do direct method lookup, which is much
1080210802
faster and consumes less memory.
1080310803
10804+
NOTE: `constants.include?` is not handled by this cop because
10805+
`Module#const_defined?` has different lookup behavior than
10806+
`Module#constants` - `const_defined?` searches up to `Object`
10807+
(top-level constants like `String`, `Integer`, etc.) while
10808+
`constants` does not, which can cause behavior changes after autocorrection.
10809+
1080410810
[#examples-stylemodulememberexistencecheck]
1080510811
=== Examples
1080610812
@@ -10820,14 +10826,12 @@ Array.method_defined?(:find, false)
1082010826
1082110827
# bad
1082210828
Array.class_variables.include?(:foo)
10823-
Array.constants.include?(:foo)
1082410829
Array.private_instance_methods.include?(:foo)
1082510830
Array.protected_instance_methods.include?(:foo)
1082610831
Array.public_instance_methods.include?(:foo)
1082710832
1082810833
# good
1082910834
Array.class_variable_defined?(:foo)
10830-
Array.const_defined?(:foo)
1083110835
Array.private_method_defined?(:foo)
1083210836
Array.protected_method_defined?(:foo)
1083310837
Array.public_method_defined?(:foo)
@@ -20591,6 +20595,11 @@ end
2059120595
# good
2059220596
x += 1 while x < 10
2059320597
20598+
# good
20599+
while x < 10
20600+
y += 1 if x.odd?
20601+
end
20602+
2059420603
# bad
2059520604
until x > 10
2059620605
x += 1
@@ -20599,6 +20608,11 @@ end
2059920608
# good
2060020609
x += 1 until x > 10
2060120610
20611+
# good
20612+
until x > 10
20613+
y += 1 unless x.even?
20614+
end
20615+
2060220616
# bad
2060320617
x += 100 while x < 500 # a long comment that makes code too long if it were a single line
2060420618

docs/modules/ROOT/pages/integration_with_other_tools.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ following to your `.pre-commit-config.yaml` file:
105105
[source,yaml]
106106
----
107107
- repo: https://github.com/rubocop/rubocop
108-
rev: v1.86.1
108+
rev: v1.86.2
109109
hooks:
110110
- id: rubocop
111111
----
@@ -116,7 +116,7 @@ entries in `additional_dependencies`:
116116
[source,yaml]
117117
----
118118
- repo: https://github.com/rubocop/rubocop
119-
rev: v1.86.1
119+
rev: v1.86.2
120120
hooks:
121121
- id: rubocop
122122
additional_dependencies:

lib/rubocop/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module RuboCop
44
# This module holds the RuboCop version information.
55
module Version
6-
STRING = '1.86.1'
6+
STRING = '1.86.2'
77

88
MSG = '%<version>s (using %<parser_version>s, ' \
99
'rubocop-ast %<rubocop_ast_version>s, ' \

0 commit comments

Comments
 (0)