+30
-8
lines changedFilter options
+30
-8
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.76.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.76.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.76.1 (2025-06-09)
15
+
14
16
### Bug fixes
15
17
16
18
* [#14245](https://github.com/rubocop/rubocop/pull/14245): Fix an error for `Lint/EmptyInterpolation` when using primitives in interpolation. ([@ka8725][])
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.76.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.76.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.76'
6
6
nav:
7
7
- modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@ end
85
85
[#references-metricsabcsize]
86
86
=== References
87
87
88
-
* http://c2.com/cgi/wiki?AbcMetric
88
+
* https://wiki.c2.com/?AbcMetric
89
89
* https://en.wikipedia.org/wiki/ABC_Software_Metric
90
90
91
91
[#metricsblocklength]
Original file line number Diff line number Diff line change
@@ -12096,7 +12096,7 @@ allow(test_double).to receive(:a).and_return('b')
12096
12096
[#references-styleopenstructuse]
12097
12097
=== References
12098
12098
12099
-
* https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats
12099
+
* https://docs.ruby-lang.org/en/3.0/OpenStruct.html#class-OpenStruct-label-Caveats
12100
12100
12101
12101
[#styleoperatormethodcall]
12102
12102
== Style/OperatorMethodCall
@@ -13095,6 +13095,8 @@ beforehand is redundant.
13095
13095
Cop is unsafe because the receiver of `flatten` method might not
13096
13096
be an `Array`, so it's possible it won't respond to `join` method,
13097
13097
or the end result would be different.
13098
+
Also, if the global variable `$,` is set to a value other than the default `nil`,
13099
+
false positives may occur.
13098
13100
13099
13101
[#examples-styleredundantarrayflatten]
13100
13102
=== Examples
@@ -15568,6 +15570,10 @@ foo.nil? || foo.bar
15568
15570
foo.baz = bar if foo
15569
15571
foo.baz + bar if foo
15570
15572
foo.bar > 2 if foo
15573
+
15574
+
foo ? foo[index] : nil # Ignored `foo&.[](index)` due to unclear readability benefit.
15575
+
foo ? foo[idx] = v : nil # Ignored `foo&.[]=(idx, v)` due to unclear readability benefit.
15576
+
foo ? foo * 42 : nil # Ignored `foo&.*(42)` due to unclear readability benefit.
15571
15577
----
15572
15578
15573
15579
[#configurable-attributes-stylesafenavigation]
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.76.0
128
+
rev: v1.76.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.76.0
139
+
rev: v1.76.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.76.0'
6
+
STRING = '1.76.1'
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,14 @@
1
+
### Bug fixes
2
+
3
+
* [#14245](https://github.com/rubocop/rubocop/pull/14245): Fix an error for `Lint/EmptyInterpolation` when using primitives in interpolation. ([@ka8725][])
4
+
* [#14233](https://github.com/rubocop/rubocop/issues/14233): Fix an error for `Style/SafeNavigation` when using ternary expression with index access call. ([@koic][])
5
+
* [#14236](https://github.com/rubocop/rubocop/issues/14236): Fix an error for `Style/SafeNavigation` when using ternary expression with operator method call. ([@koic][])
6
+
* [#14249](https://github.com/rubocop/rubocop/issues/14249): Fix false positives for `Style/RedundantArrayFlatten` when `Array#join` is used with an argument other than the default `nil`. ([@koic][])
7
+
* [#14239](https://github.com/rubocop/rubocop/issues/14239): Fix false positives for `Style/RedundantParentheses` when using one-line `in` pattern matching in operator. ([@koic][])
8
+
* [#14240](https://github.com/rubocop/rubocop/issues/14240): Fix `Naming/PredicateMethod` cop error on empty parentheses method body. ([@viralpraxis][])
9
+
* [#14235](https://github.com/rubocop/rubocop/pull/14235): Fix `Style/SafeNavigation` cop error on indexed assignment in ternary expression. ([@viralpraxis][])
10
+
* [#14247](https://github.com/rubocop/rubocop/pull/14247): Fix `Style/SafeNavigation` invalid autocorrection on double colon method call. ([@viralpraxis][])
11
+
12
+
[@ka8725]: https://github.com/ka8725
13
+
[@koic]: https://github.com/koic
14
+
[@viralpraxis]: https://github.com/viralpraxis
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