Skip to content

Commit 4c07aa6

Browse files
committed
Cut 1.75.5
1 parent 12c3e0a commit 4c07aa6

File tree

11 files changed

+60
-20
lines changed

11 files changed

+60
-20
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.4 (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.5 (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.5 (2025-05-05)
15+
1416
### Bug fixes
1517

1618
* [#14148](https://github.com/rubocop/rubocop/pull/14148): Fix an infinite loop error for `Layout/SpaceAfterSemicolon` with `Layout/SpaceBeforeSemicolon` when a sequence of semicolons appears. ([@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.4 (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.5 (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_layout.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ end
833833
| Name | Default value | Configurable values
834834
835835
| Categories
836-
| `{"module_inclusion" => ["include", "prepend", "extend"]}`
836+
| `{"module_inclusion"=>["include", "prepend", "extend"]}`
837837
|
838838
839839
| ExpectedOrder
@@ -4425,6 +4425,12 @@ include Enumerable #[Integer]
44254425
44264426
attr_reader :name #: String
44274427
attr_reader :age #: Integer?
4428+
4429+
#: (
4430+
#| Integer,
4431+
#| String
4432+
#| ) -> void
4433+
def foo; end
44284434
----
44294435
44304436
[#allowrbsinlineannotation_-true-layoutleadingcommentspace]
@@ -4438,6 +4444,12 @@ include Enumerable #[Integer]
44384444
44394445
attr_reader :name #: String
44404446
attr_reader :age #: Integer?
4447+
4448+
#: (
4449+
#| Integer,
4450+
#| String
4451+
#| ) -> void
4452+
def foo; end
44414453
----
44424454
44434455
[#allowsteepannotation_-false-_default_-layoutleadingcommentspace]
@@ -7212,6 +7224,8 @@ a = -> (x, y) { x + y }
72127224
Checks that brackets used for array literals have or don't have
72137225
surrounding space depending on configuration.
72147226
7227+
Array pattern matching is handled in the same way.
7228+
72157229
[#examples-layoutspaceinsidearrayliteralbrackets]
72167230
=== Examples
72177231
@@ -7504,6 +7518,8 @@ some_array.each { }
75047518
Checks that braces used for hash literals have or don't have
75057519
surrounding space depending on configuration.
75067520
7521+
Hash pattern matching is handled in the same way.
7522+
75077523
[#examples-layoutspaceinsidehashliteralbraces]
75087524
=== Examples
75097525

docs/modules/ROOT/pages/cops_lint.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,11 +1119,11 @@ require 'my_debugger/start'
11191119
| Name | Default value | Configurable values
11201120
11211121
| DebuggerMethods
1122-
| `{"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"]}`
1122+
| `{"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"]}`
11231123
|
11241124
11251125
| DebuggerRequires
1126-
| `{"debug.rb" => ["debug/open", "debug/start"]}`
1126+
| `{"debug.rb"=>["debug/open", "debug/start"]}`
11271127
|
11281128
|===
11291129
@@ -1230,7 +1230,7 @@ Etc::Passwd
12301230
| Name | Default value | Configurable values
12311231
12321232
| DeprecatedConstants
1233-
| `{"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"}}`
1233+
| `{"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"}}`
12341234
|
12351235
|===
12361236
@@ -7285,7 +7285,7 @@ values.sort { |*x| x[0] <=> x[1] }
72857285
| Name | Default value | Configurable values
72867286
72877287
| Methods
7288-
| `{"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}`
7288+
| `{"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}`
72897289
|
72907290
|===
72917291

docs/modules/ROOT/pages/cops_naming.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ TeslaVehicle
806806
| Boolean
807807
808808
| 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"]}}`
810810
|
811811
|===
812812

docs/modules/ROOT/pages/cops_style.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,7 @@ items.include?
23502350
| Name | Default value | Configurable values
23512351
23522352
| PreferredMethods
2353-
| `{"collect" => "map", "collect!" => "map!", "collect_concat" => "flat_map", "inject" => "reduce", "detect" => "find", "find_all" => "select", "member?" => "include?"}`
2353+
| `{"collect"=>"map", "collect!"=>"map!", "collect_concat"=>"flat_map", "inject"=>"reduce", "detect"=>"find", "find_all"=>"select", "member?"=>"include?"}`
23542354
|
23552355
23562356
| MethodsAcceptingSymbol
@@ -7917,11 +7917,11 @@ end
79177917
| Name | Default value | Configurable values
79187918
79197919
| InverseMethods
7920-
| `{any?: :none?, even?: :odd?, "==": :!=, "=~": :!~, "<": :>=, ">": :<=}`
7920+
| `{:any?=>:none?, :even?=>:odd?, :===>:!=, :=~=>:!~, :<=>:>=, :>=>:<=}`
79217921
|
79227922
79237923
| InverseBlocks
7924-
| `{select: :reject, select!: :reject!}`
7924+
| `{:select=>:reject, :select!=>:reject!}`
79257925
|
79267926
|===
79277927
@@ -7999,7 +7999,7 @@ foo if !condition
79997999
| Name | Default value | Configurable values
80008000
80018001
| InverseMethods
8002-
| `{"!=": :==, ">": :<=, "<=": :>, "<": :>=, ">=": :<, "!~": :=~, zero?: :nonzero?, nonzero?: :zero?, any?: :none?, none?: :any?, even?: :odd?, odd?: :even?}`
8002+
| `{:!==>:==, :>=>:<=, :<==>:>, :<=>:>=, :>==>:<, :!~=>:=~, :zero?=>:nonzero?, :nonzero?=>:zero?, :any?=>:none?, :none?=>:any?, :even?=>:odd?, :odd?=>:even?}`
80038003
|
80048004
|===
80058005
@@ -12427,7 +12427,7 @@ default.
1242712427
| Name | Default value | Configurable values
1242812428
1242912429
| PreferredDelimiters
12430-
| `{"default" => "()", "%i" => "[]", "%I" => "[]", "%r" => "{}", "%w" => "[]", "%W" => "[]"}`
12430+
| `{"default"=>"()", "%i"=>"[]", "%I"=>"[]", "%r"=>"{}", "%w"=>"[]", "%W"=>"[]"}`
1243112431
|
1243212432
|===
1243312433
@@ -12913,7 +12913,7 @@ A.foo
1291312913
| Name | Default value | Configurable values
1291412914
1291512915
| Methods
12916-
| `{"join" => "", "sum" => 0, "exit" => true, "exit!" => false, "split" => " ", "chomp" => "\n", "chomp!" => "\n"}`
12916+
| `{"join"=>"", "sum"=>0, "exit"=>true, "exit!"=>false, "split"=>" ", "chomp"=>"\n", "chomp!"=>"\n"}`
1291712917
|
1291812918
|===
1291912919
@@ -16072,7 +16072,7 @@ end
1607216072
| Name | Default value | Configurable values
1607316073
1607416074
| Methods
16075-
| `{"reduce" => ["acc", "elem"]}`, `{"inject" => ["acc", "elem"]}`
16075+
| `{"reduce"=>["acc", "elem"]}`, `{"inject"=>["acc", "elem"]}`
1607616076
| Array
1607716077
|===
1607816078
@@ -16988,7 +16988,7 @@ from the `String` class.
1698816988
| Name | Default value | Configurable values
1698916989
1699016990
| PreferredMethods
16991-
| `{"intern" => "to_sym"}`
16991+
| `{"intern"=>"to_sym"}`
1699216992
|
1699316993
|===
1699416994

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.4
128+
rev: v1.75.5
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.4
139+
rev: v1.75.5
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.4'
6+
STRING = '1.75.5'
77

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

0 commit comments

Comments
 (0)