Skip to content

Commit

Permalink
Cut 1.64.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed May 31, 2024
1 parent 8ba7464 commit 31be300
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ output by `rubocop -V`, include them as well. Here's an example:

```
$ [bundle exec] rubocop -V
1.64.0 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
1.64.1 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
- rubocop-performance 1.18.0
- rubocop-rspec 2.23.2
```
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

## master (unreleased)

## 1.64.1 (2024-05-31)

### Bug fixes

* [#12951](https://github.com/rubocop/rubocop/pull/12951): Fix an error for `Style/Copyright` when `AutocorrectNotice` is missing. ([@koic][])
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ do so.

```console
$ rubocop -V
1.64.0 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
1.64.1 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
- rubocop-performance 1.18.0
- rubocop-rspec 2.23.2
```
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: rubocop
title: RuboCop
# We always provide version without patch here (e.g. 1.1),
# as patch versions should not appear in the docs.
version: ~
version: '1.64'
nav:
- modules/ROOT/nav.adoc
56 changes: 32 additions & 24 deletions docs/modules/ROOT/pages/cops_style.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3201,36 +3201,36 @@ class Person
end
# allowed
# Class without body
# Class without body
class Person
end
# Namespace - A namespace can be a class or a module
# Containing a class
module Namespace
# Description/Explanation of Person class
class Person
# ...
end
end
# Namespace - A namespace can be a class or a module
# Containing a class
module Namespace
# Description/Explanation of Person class
class Person
# ...
end
# Containing constant visibility declaration
module Namespace
class Private
end
# Containing constant visibility declaration
module Namespace
class Private
end
private_constant :Private
end
private_constant :Private
end
# Containing constant definition
module Namespace
Public = Class.new
end
# Containing constant definition
module Namespace
Public = Class.new
end
# Macro calls
module Namespace
extend Foo
end
# Macro calls
module Namespace
extend Foo
end
----
==== AllowedConstants: ['ClassMethods']
Expand All @@ -3242,7 +3242,7 @@ module A
module ClassMethods
# ...
end
end
end
----
=== Configurable attributes
Expand Down Expand Up @@ -14853,6 +14853,14 @@ end
def method(*args, **kwargs)
super()
end
# good - assigning to the block variable before calling super
def method(&block)
# Assigning to the block variable would pass the old value to super,
# under this circumstance the block must be referenced explicitly.
block ||= proc { 'fallback behavior' }
super(&block)
end
----
== Style/SuperWithArgsParentheses
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
# This module holds the RuboCop version information.
module Version
STRING = '1.64.0'
STRING = '1.64.1'

MSG = '%<version>s (using %<parser_version>s, ' \
'rubocop-ast %<rubocop_ast_version>s, ' \
Expand Down
11 changes: 11 additions & 0 deletions relnotes/v1.64.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Bug fixes

* [#12951](https://github.com/rubocop/rubocop/pull/12951): Fix an error for `Style/Copyright` when `AutocorrectNotice` is missing. ([@koic][])
* [#12932](https://github.com/rubocop/rubocop/pull/12932): Fix end position of diagnostic for LSP. ([@ksss][])
* [#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][])
* [#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][])
* [#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][])

[@koic]: https://github.com/koic
[@ksss]: https://github.com/ksss
[@earlopain]: https://github.com/earlopain

0 comments on commit 31be300

Please sign in to comment.