Skip to content

Commit 31be300

Browse files
committed
Cut 1.64.1
1 parent 8ba7464 commit 31be300

File tree

7 files changed

+49
-28
lines changed

7 files changed

+49
-28
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ output by `rubocop -V`, include them as well. Here's an example:
3838

3939
```
4040
$ [bundle exec] rubocop -V
41-
1.64.0 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
41+
1.64.1 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
4242
- rubocop-performance 1.18.0
4343
- rubocop-rspec 2.23.2
4444
```

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.64.1 (2024-05-31)
15+
1416
### Bug fixes
1517

1618
* [#12951](https://github.com/rubocop/rubocop/pull/12951): Fix an error for `Style/Copyright` when `AutocorrectNotice` is missing. ([@koic][])

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.64.0 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
20+
1.64.1 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
2121
- rubocop-performance 1.18.0
2222
- rubocop-rspec 2.23.2
2323
```

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.64'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_style.adoc

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3201,36 +3201,36 @@ class Person
32013201
end
32023202
32033203
# allowed
3204-
# Class without body
3204+
# Class without body
3205+
class Person
3206+
end
3207+
3208+
# Namespace - A namespace can be a class or a module
3209+
# Containing a class
3210+
module Namespace
3211+
# Description/Explanation of Person class
32053212
class Person
3213+
# ...
32063214
end
3215+
end
32073216
3208-
# Namespace - A namespace can be a class or a module
3209-
# Containing a class
3210-
module Namespace
3211-
# Description/Explanation of Person class
3212-
class Person
3213-
# ...
3214-
end
3217+
# Containing constant visibility declaration
3218+
module Namespace
3219+
class Private
32153220
end
32163221
3217-
# Containing constant visibility declaration
3218-
module Namespace
3219-
class Private
3220-
end
3221-
3222-
private_constant :Private
3223-
end
3222+
private_constant :Private
3223+
end
32243224
3225-
# Containing constant definition
3226-
module Namespace
3227-
Public = Class.new
3228-
end
3225+
# Containing constant definition
3226+
module Namespace
3227+
Public = Class.new
3228+
end
32293229
3230-
# Macro calls
3231-
module Namespace
3232-
extend Foo
3233-
end
3230+
# Macro calls
3231+
module Namespace
3232+
extend Foo
3233+
end
32343234
----
32353235
32363236
==== AllowedConstants: ['ClassMethods']
@@ -3242,7 +3242,7 @@ module A
32423242
module ClassMethods
32433243
# ...
32443244
end
3245-
end
3245+
end
32463246
----
32473247
32483248
=== Configurable attributes
@@ -14853,6 +14853,14 @@ end
1485314853
def method(*args, **kwargs)
1485414854
super()
1485514855
end
14856+
14857+
# good - assigning to the block variable before calling super
14858+
def method(&block)
14859+
# Assigning to the block variable would pass the old value to super,
14860+
# under this circumstance the block must be referenced explicitly.
14861+
block ||= proc { 'fallback behavior' }
14862+
super(&block)
14863+
end
1485614864
----
1485714865
1485814866
== Style/SuperWithArgsParentheses

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.64.0'
6+
STRING = '1.64.1'
77

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

relnotes/v1.64.1.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Bug fixes
2+
3+
* [#12951](https://github.com/rubocop/rubocop/pull/12951): Fix an error for `Style/Copyright` when `AutocorrectNotice` is missing. ([@koic][])
4+
* [#12932](https://github.com/rubocop/rubocop/pull/12932): Fix end position of diagnostic for LSP. ([@ksss][])
5+
* [#12926](https://github.com/rubocop/rubocop/issues/12926): Fix a false positive for `Style/SuperArguments` when the methods block argument is reassigned before `super`. ([@earlopain][])
6+
* [#12931](https://github.com/rubocop/rubocop/issues/12931): Fix false positives for `Style/RedundantLineContinuation` when line continuations involve `break`, `next`, or `yield` with a return value. ([@koic][])
7+
* [#12924](https://github.com/rubocop/rubocop/issues/12924): Fix false positives for `Style/SendWithLiteralMethodName` when `public_send` argument is a method name that cannot be autocorrected. ([@koic][])
8+
9+
[@koic]: https://github.com/koic
10+
[@ksss]: https://github.com/ksss
11+
[@earlopain]: https://github.com/earlopain

0 commit comments

Comments
 (0)