A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/rubocop/rubocop/commit/5ecd375e149e1aa4054711ef1d637f2acbfd92ac below:

Cut 1.79.1 · rubocop/rubocop@5ecd375 · GitHub

File tree Expand file treeCollapse file tree 11 files changed

+56

-20

lines changed

Filter options

Expand file treeCollapse file tree 11 files changed

+56

-20

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.79.0 (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.79.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]

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.79.1 (2025-07-31)

15 + 14 16

### Bug fixes

15 17 16 18

* [#14390](https://github.com/rubocop/rubocop/issues/14390): Fix wrong autocorrect for `Style/ArgumentsForwarding` when the method arguments contain `*`, `**` or `&`, and the method call contains `self` as the first argument. ([@earlopain][])

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.79.0 (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.79.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]

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.79'

6 6

nav:

7 7

- modules/ROOT/nav.adoc

Original file line number Diff line number Diff line change

@@ -868,7 +868,7 @@ end

868 868

| Name | Default value | Configurable values

869 869 870 870

| Categories

871 -

| `{"module_inclusion" => ["include", "prepend", "extend"]}`

871 +

| `{"module_inclusion"=>["include", "prepend", "extend"]}`

872 872

|

873 873 874 874

| ExpectedOrder

Original file line number Diff line number Diff line change

@@ -1122,11 +1122,11 @@ require 'my_debugger/start'

1122 1122

| Name | Default value | Configurable values

1123 1123 1124 1124

| DebuggerMethods

1125 -

| `{"Kernel" => ["binding.irb", "Kernel.binding.irb"], "Byebug" => ["byebug", "remote_byebug", "Kernel.byebug", "Kernel.remote_byebug"], "Capybara" => ["page.save_and_open_page", "page.save_and_open_screenshot", "page.save_page", "page.save_screenshot", "save_and_open_page", "save_and_open_screenshot", "save_page", "save_screenshot"], "debug.rb" => ["binding.b", "binding.break", "Kernel.binding.b", "Kernel.binding.break"], "Pry" => ["binding.pry", "binding.remote_pry", "binding.pry_remote", "Kernel.binding.pry", "Kernel.binding.remote_pry", "Kernel.binding.pry_remote", "Pry.rescue", "pry"], "Rails" => ["debugger", "Kernel.debugger"], "RubyJard" => ["jard"], "WebConsole" => ["binding.console"]}`

1125 +

| `{"Kernel"=>["binding.irb", "Kernel.binding.irb"], "Byebug"=>["byebug", "remote_byebug", "Kernel.byebug", "Kernel.remote_byebug"], "Capybara"=>["page.save_and_open_page", "page.save_and_open_screenshot", "page.save_page", "page.save_screenshot", "save_and_open_page", "save_and_open_screenshot", "save_page", "save_screenshot"], "debug.rb"=>["binding.b", "binding.break", "Kernel.binding.b", "Kernel.binding.break"], "Pry"=>["binding.pry", "binding.remote_pry", "binding.pry_remote", "Kernel.binding.pry", "Kernel.binding.remote_pry", "Kernel.binding.pry_remote", "Pry.rescue", "pry"], "Rails"=>["debugger", "Kernel.debugger"], "RubyJard"=>["jard"], "WebConsole"=>["binding.console"]}`

1126 1126

|

1127 1127 1128 1128

| DebuggerRequires

1129 -

| `{"debug.rb" => ["debug/open", "debug/start"]}`

1129 +

| `{"debug.rb"=>["debug/open", "debug/start"]}`

1130 1130

|

1131 1131

|===

1132 1132

@@ -1233,7 +1233,7 @@ Etc::Passwd

1233 1233

| Name | Default value | Configurable values

1234 1234 1235 1235

| DeprecatedConstants

1236 -

| `{"NIL" => {"Alternative" => "nil", "DeprecatedVersion" => "2.4"}, "TRUE" => {"Alternative" => "true", "DeprecatedVersion" => "2.4"}, "FALSE" => {"Alternative" => "false", "DeprecatedVersion" => "2.4"}, "Net::HTTPServerException" => {"Alternative" => "Net::HTTPClientException", "DeprecatedVersion" => "2.6"}, "Random::DEFAULT" => {"Alternative" => "Random.new", "DeprecatedVersion" => "3.0"}, "Struct::Group" => {"Alternative" => "Etc::Group", "DeprecatedVersion" => "3.0"}, "Struct::Passwd" => {"Alternative" => "Etc::Passwd", "DeprecatedVersion" => "3.0"}}`

1236 +

| `{"NIL"=>{"Alternative"=>"nil", "DeprecatedVersion"=>"2.4"}, "TRUE"=>{"Alternative"=>"true", "DeprecatedVersion"=>"2.4"}, "FALSE"=>{"Alternative"=>"false", "DeprecatedVersion"=>"2.4"}, "Net::HTTPServerException"=>{"Alternative"=>"Net::HTTPClientException", "DeprecatedVersion"=>"2.6"}, "Random::DEFAULT"=>{"Alternative"=>"Random.new", "DeprecatedVersion"=>"3.0"}, "Struct::Group"=>{"Alternative"=>"Etc::Group", "DeprecatedVersion"=>"3.0"}, "Struct::Passwd"=>{"Alternative"=>"Etc::Passwd", "DeprecatedVersion"=>"3.0"}}`

1237 1237

|

1238 1238

|===

1239 1239

@@ -7484,7 +7484,7 @@ values.sort { |*x| x[0] <=> x[1] }

7484 7484

| Name | Default value | Configurable values

7485 7485 7486 7486

| Methods

7487 -

| `{"chunk_while" => 2, "each_with_index" => 2, "each_with_object" => 2, "inject" => 2, "max" => 2, "min" => 2, "minmax" => 2, "reduce" => 2, "slice_when" => 2, "sort" => 2}`

7487 +

| `{"chunk_while"=>2, "each_with_index"=>2, "each_with_object"=>2, "inject"=>2, "max"=>2, "min"=>2, "minmax"=>2, "reduce"=>2, "slice_when"=>2, "sort"=>2}`

7488 7488

|

7489 7489

|===

7490 7490 Original file line number Diff line number Diff line change

@@ -806,7 +806,7 @@ TeslaVehicle

806 806

| Boolean

807 807 808 808

| FlaggedTerms

809 -

| `{"whitelist" => {"Regex" => /white[-_\s]?list/, "Suggestions" => ["allowlist", "permit"]}, "blacklist" => {"Regex" => /black[-_\s]?list/, "Suggestions" => ["denylist", "block"]}, "slave" => {"WholeWord" => true, "Suggestions" => ["replica", "secondary", "follower"]}}`

809 +

| `{"whitelist"=>{"Regex"=>/white[-_\s]?list/, "Suggestions"=>["allowlist", "permit"]}, "blacklist"=>{"Regex"=>/black[-_\s]?list/, "Suggestions"=>["denylist", "block"]}, "slave"=>{"WholeWord"=>true, "Suggestions"=>["replica", "secondary", "follower"]}}`

810 810

|

811 811

|===

812 812

@@ -1066,6 +1066,12 @@ Struct.new(:fooBar)

1066 1066 1067 1067

# good

1068 1068

Struct.new(:foo_bar)

1069 + 1070 +

# bad

1071 +

alias_method :fooBar, :some_method

1072 + 1073 +

# good

1074 +

alias_method :foo_bar, :some_method

1069 1075

----

1070 1076 1071 1077

[#enforcedstyle_-camelcase-namingmethodname]

@@ -1092,6 +1098,12 @@ Struct.new(:foo_bar)

1092 1098 1093 1099

# good

1094 1100

Struct.new(:fooBar)

1101 + 1102 +

# bad

1103 +

alias_method :foo_bar, :some_method

1104 + 1105 +

# good

1106 +

alias_method :fooBar, :some_method

1095 1107

----

1096 1108 1097 1109

[#forbiddenidentifiers_-__def__-_super__-namingmethodname]

Original file line number Diff line number Diff line change

@@ -847,9 +847,11 @@ NOTE: Requires Ruby version 3.1

847 847

In Ruby 3.1, `Array#intersect?` has been added.

848 848 849 849

This cop identifies places where:

850 + 850 851

* `(array1 & array2).any?`

851 852

* `(array1.intersection(array2)).any?`

852 853

* `array1.any? { |elem| array2.member?(elem) }`

854 + 853 855

can be replaced with `array1.intersect?(array2)`.

854 856 855 857

`array1.intersect?(array2)` is faster and more readable.

@@ -2355,7 +2357,7 @@ items.include?

2355 2357

| Name | Default value | Configurable values

2356 2358 2357 2359

| PreferredMethods

2358 -

| `{"collect" => "map", "collect!" => "map!", "collect_concat" => "flat_map", "inject" => "reduce", "detect" => "find", "find_all" => "select", "member?" => "include?"}`

2360 +

| `{"collect"=>"map", "collect!"=>"map!", "collect_concat"=>"flat_map", "inject"=>"reduce", "detect"=>"find", "find_all"=>"select", "member?"=>"include?"}`

2359 2361

|

2360 2362 2361 2363

| MethodsAcceptingSymbol

@@ -8169,11 +8171,11 @@ end

8169 8171

| Name | Default value | Configurable values

8170 8172 8171 8173

| InverseMethods

8172 -

| `{any?: :none?, even?: :odd?, "==": :!=, "=~": :!~, "<": :>=, ">": :<=}`

8174 +

| `{:any?=>:none?, :even?=>:odd?, :===>:!=, :=~=>:!~, :<=>:>=, :>=>:<=}`

8173 8175

|

8174 8176 8175 8177

| InverseBlocks

8176 -

| `{select: :reject, select!: :reject!}`

8178 +

| `{:select=>:reject, :select!=>:reject!}`

8177 8179

|

8178 8180

|===

8179 8181

@@ -8251,7 +8253,7 @@ foo if !condition

8251 8253

| Name | Default value | Configurable values

8252 8254 8253 8255

| InverseMethods

8254 -

| `{"!=": :==, ">": :<=, "<=": :>, "<": :>=, ">=": :<, "!~": :=~, zero?: :nonzero?, nonzero?: :zero?, any?: :none?, none?: :any?, even?: :odd?, odd?: :even?}`

8256 +

| `{:!==>:==, :>=>:<=, :<==>:>, :<=>:>=, :>==>:<, :!~=>:=~, :zero?=>:nonzero?, :nonzero?=>:zero?, :any?=>:none?, :none?=>:any?, :even?=>:odd?, :odd?=>:even?}`

8255 8257

|

8256 8258

|===

8257 8259

@@ -12772,7 +12774,7 @@ default.

12772 12774

| Name | Default value | Configurable values

12773 12775 12774 12776

| PreferredDelimiters

12775 -

| `{"default" => "()", "%i" => "[]", "%I" => "[]", "%r" => "{}", "%w" => "[]", "%W" => "[]"}`

12777 +

| `{"default"=>"()", "%i"=>"[]", "%I"=>"[]", "%r"=>"{}", "%w"=>"[]", "%W"=>"[]"}`

12776 12778

|

12777 12779

|===

12778 12780

@@ -13258,7 +13260,7 @@ A.foo

13258 13260

| Name | Default value | Configurable values

13259 13261 13260 13262

| Methods

13261 -

| `{"join" => "", "sum" => 0, "exit" => true, "exit!" => false, "split" => " ", "chomp" => "\n", "chomp!" => "\n"}`

13263 +

| `{"join"=>"", "sum"=>0, "exit"=>true, "exit!"=>false, "split"=>" ", "chomp"=>"\n", "chomp!"=>"\n"}`

13262 13264

|

13263 13265

|===

13264 13266

@@ -16461,7 +16463,7 @@ end

16461 16463

| Name | Default value | Configurable values

16462 16464 16463 16465

| Methods

16464 -

| `{"reduce" => ["acc", "elem"]}`, `{"inject" => ["acc", "elem"]}`

16466 +

| `{"reduce"=>["acc", "elem"]}`, `{"inject"=>["acc", "elem"]}`

16465 16467

| Array

16466 16468

|===

16467 16469

@@ -17377,7 +17379,7 @@ from the `String` class.

17377 17379

| Name | Default value | Configurable values

17378 17380 17379 17381

| PreferredMethods

17380 -

| `{"intern" => "to_sym"}`

17382 +

| `{"intern"=>"to_sym"}`

17381 17383

|

17382 17384

|===

17383 17385 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.79.0

128 +

rev: v1.79.1

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

139 +

rev: v1.79.1

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.79.0'

6 +

STRING = '1.79.1'

7 7 8 8

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

9 9

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

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