A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rubocop/rubocop/commit/3bff1aed0b3d5d80b255329aa6fb67a0c8d785db below:

Cut 1.75.7 · rubocop/rubocop@3bff1ae · GitHub

File tree Expand file treeCollapse file tree 9 files changed

+59

-10

lines changed

Filter options

Expand file treeCollapse file tree 9 files changed

+59

-10

lines changed Original file line number Diff line number Diff line change

@@ -39,7 +39,7 @@ output by `rubocop -V`, include them as well. Here's an example:

39 39 40 40

```

41 41

$ [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]

43 43

- rubocop-performance 1.22.1

44 44

- rubocop-rspec 3.1.0

45 45

```

Original file line number Diff line number Diff line change

@@ -11,6 +11,8 @@

11 11 12 12

## master (unreleased)

13 13 14 +

## 1.75.7 (2025-05-21)

15 + 14 16

### Bug fixes

15 17 16 18

* [#14185](https://github.com/rubocop/rubocop/pull/14185): Fix an error for `Style/IfUnlessModifierOfIfUnless` when using nested modifier. ([@koic][])

Original file line number Diff line number Diff line change

@@ -17,7 +17,7 @@ do so.

17 17 18 18

```console

19 19

$ 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]

21 21

- rubocop-performance 1.22.1

22 22

- rubocop-rspec 3.1.0

23 23

```

Original file line number Diff line number Diff line change

@@ -2,6 +2,6 @@ name: rubocop

2 2

title: RuboCop

3 3

# We always provide version without patch here (e.g. 1.1),

4 4

# as patch versions should not appear in the docs.

5 -

version: ~

5 +

version: '1.75'

6 6

nav:

7 7

- modules/ROOT/nav.adoc

Original file line number Diff line number Diff line change

@@ -329,10 +329,11 @@ gem "bar"

329 329

An attribute assignment method calls should be listed only once

330 330

in a gemspec.

331 331 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.

336 337 337 338

[#examples-gemspecduplicatedassignment]

338 339

=== Examples

@@ -361,6 +362,17 @@ Gem::Specification.new do |spec|

361 362

spec.add_dependency('parallel', '~> 1.10')

362 363

spec.add_dependency('parser', '>= 2.3.3.1', '< 3.0')

363 364

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

364 376

----

365 377 366 378

[#configurable-attributes-gemspecduplicatedassignment]

Original file line number Diff line number Diff line change

@@ -1813,6 +1813,22 @@ def foo

1813 1813

end

1814 1814 1815 1815

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

1816 1832

----

1817 1833 1818 1834

[#lintduplicateregexpcharacterclasselement]

Original file line number Diff line number Diff line change

@@ -125,7 +125,7 @@ following to your `.pre-commit-config.yaml` file:

125 125

[source,yaml]

126 126

----

127 127

- repo: https://github.com/rubocop/rubocop

128 -

rev: v1.75.6

128 +

rev: v1.75.7

129 129

hooks:

130 130

- id: rubocop

131 131

----

@@ -136,7 +136,7 @@ entries in `additional_dependencies`:

136 136

[source,yaml]

137 137

----

138 138

- repo: https://github.com/rubocop/rubocop

139 -

rev: v1.75.6

139 +

rev: v1.75.7

140 140

hooks:

141 141

- id: rubocop

142 142

additional_dependencies:

Original file line number Diff line number Diff line change

@@ -3,7 +3,7 @@

3 3

module RuboCop

4 4

# This module holds the RuboCop version information.

5 5

module Version

6 -

STRING = '1.75.6'

6 +

STRING = '1.75.7'

7 7 8 8

MSG = '%<version>s (using %<parser_version>s, ' \

9 9

'rubocop-ast %<rubocop_ast_version>s, ' \

Original file line number Diff line number Diff 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

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4