Skip to content

Commit 3bff1ae

Browse files
committed
Cut 1.75.7
1 parent 9a9c06c commit 3bff1ae

File tree

9 files changed

+59
-10
lines changed

9 files changed

+59
-10
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

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

4040
```
4141
$ [bundle exec] rubocop -V
42-
1.75.6 (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]
42+
1.75.7 (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]
4343
- rubocop-performance 1.22.1
4444
- rubocop-rspec 3.1.0
4545
```

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.75.7 (2025-05-21)
15+
1416
### Bug fixes
1517

1618
* [#14185](https://github.com/rubocop/rubocop/pull/14185): Fix an error for `Style/IfUnlessModifierOfIfUnless` when using nested modifier. ([@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.75.6 (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]
20+
1.75.7 (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]
2121
- rubocop-performance 1.22.1
2222
- rubocop-rspec 3.1.0
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.75'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_gemspec.adoc

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,11 @@ gem "bar"
329329
An attribute assignment method calls should be listed only once
330330
in a gemspec.
331331
332-
Assigning to an attribute with the same name using `spec.foo =` will be
333-
an unintended usage. On the other hand, duplication of methods such
334-
as `spec.requirements`, `spec.add_runtime_dependency`, and others are
335-
permitted because it is the intended use of appending values.
332+
Assigning to an attribute with the same name using `spec.foo =` or
333+
`spec.attribute#[]=` will be an unintended usage. On the other hand,
334+
duplication of methods such # as `spec.requirements`,
335+
`spec.add_runtime_dependency`, and others are permitted because it is
336+
the intended use of appending values.
336337
337338
[#examples-gemspecduplicatedassignment]
338339
=== Examples
@@ -361,6 +362,17 @@ Gem::Specification.new do |spec|
361362
spec.add_dependency('parallel', '~> 1.10')
362363
spec.add_dependency('parser', '>= 2.3.3.1', '< 3.0')
363364
end
365+
366+
# bad
367+
Gem::Specification.new do |spec|
368+
spec.metadata["key"] = "value"
369+
spec.metadata["key"] = "value"
370+
end
371+
372+
# good
373+
Gem::Specification.new do |spec|
374+
spec.metadata["key"] = "value"
375+
end
364376
----
365377
366378
[#configurable-attributes-gemspecduplicatedassignment]

docs/modules/ROOT/pages/cops_lint.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,22 @@ def foo
18131813
end
18141814
18151815
delegate :baz, to: :bar
1816+
1817+
# good - delegate with splat arguments is ignored
1818+
def foo
1819+
1
1820+
end
1821+
1822+
delegate :foo, **options
1823+
1824+
# good - delegate inside a condition is ignored
1825+
def foo
1826+
1
1827+
end
1828+
1829+
if cond
1830+
delegate :foo, to: :bar
1831+
end
18161832
----
18171833
18181834
[#lintduplicateregexpcharacterclasselement]

docs/modules/ROOT/pages/integration_with_other_tools.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ following to your `.pre-commit-config.yaml` file:
125125
[source,yaml]
126126
----
127127
- repo: https://github.com/rubocop/rubocop
128-
rev: v1.75.6
128+
rev: v1.75.7
129129
hooks:
130130
- id: rubocop
131131
----
@@ -136,7 +136,7 @@ entries in `additional_dependencies`:
136136
[source,yaml]
137137
----
138138
- repo: https://github.com/rubocop/rubocop
139-
rev: v1.75.6
139+
rev: v1.75.7
140140
hooks:
141141
- id: rubocop
142142
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.75.6'
6+
STRING = '1.75.7'
77

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

relnotes/v1.75.7.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Bug fixes
2+
3+
* [#14185](https://github.com/rubocop/rubocop/pull/14185): Fix an error for `Style/IfUnlessModifierOfIfUnless` when using nested modifier. ([@koic][])
4+
* [#14192](https://github.com/rubocop/rubocop/pull/14192): Fix negatives for `Layout/SpaceBeforeBrackets` when using space between method argument parentheses and left bracket. ([@koic][])
5+
* [#14189](https://github.com/rubocop/rubocop/issues/14189): Fix incorrect autocorrect for `Layout/SpaceBeforeBrackets` when using space between receiver and left brackets, and a space inside left bracket. ([@koic][])
6+
* [#14170](https://github.com/rubocop/rubocop/pull/14170): Fix `Style/AccessModifierDeclarations` cop error on semicolon after modifier. ([@viralpraxis][])
7+
* [#14195](https://github.com/rubocop/rubocop/pull/14195): Fix `Style/AccessModifierDeclarations` cop error on symbol modifier without surrounding scope. ([@viralpraxis][])
8+
* [#14172](https://github.com/rubocop/rubocop/pull/14172): Fix `Style/AccessModifierDeclarations` cop false positives when there are no method definitions and style is `inline`. ([@viralpraxis][])
9+
* [#14193](https://github.com/rubocop/rubocop/issues/14193): Fix `Lint/UselessAssignment` cop error when using nested assignment with splat. ([@earlopain][])
10+
11+
### Changes
12+
13+
* [#14188](https://github.com/rubocop/rubocop/pull/14188): Enhance `Gemspec/DuplicatedAssignment` cop to detect duplicated indexed assignment. ([@viralpraxis][])
14+
* [#14183](https://github.com/rubocop/rubocop/pull/14183): Recognize `prefix` argument for `delegate` method in `Lint/DuplicateMethods`. ([@lovro-bikic][])
15+
16+
[@koic]: https://github.com/koic
17+
[@viralpraxis]: https://github.com/viralpraxis
18+
[@earlopain]: https://github.com/earlopain
19+
[@lovro-bikic]: https://github.com/lovro-bikic

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy