Skip to content

Commit c108ac0

Browse files
committed
Cut 1.67
1 parent 74ddd9b commit c108ac0

19 files changed

+2572
-54
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

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

3939
```
4040
$ [bundle exec] rubocop -V
41-
1.66.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]
41+
1.67.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]
4242
- rubocop-performance 1.22.1
4343
- rubocop-rspec 3.1.0
4444
```

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.67.0 (2024-10-15)
15+
1416
### New features
1517

1618
* [#13259](https://github.com/rubocop/rubocop/issues/13259): Add new `Lint/DuplicateSetElement` cop. ([@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.66.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]
20+
1.67.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]
2121
- rubocop-performance 1.22.1
2222
- rubocop-rspec 3.1.0
2323
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To prevent an unwanted RuboCop update you might want to use a conservative versi
5252
in your `Gemfile`:
5353

5454
```rb
55-
gem 'rubocop', '~> 1.66', require: false
55+
gem 'rubocop', '~> 1.67', require: false
5656
```
5757

5858
See [our versioning policy](https://docs.rubocop.org/rubocop/versioning.html) for further details.

config/default.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ Lint/DuplicateRescueException:
18371837
Lint/DuplicateSetElement:
18381838
Description: 'Checks for duplicate elements in Set.'
18391839
Enabled: pending
1840-
VersionAdded: '<<next>>'
1840+
VersionAdded: '1.67'
18411841

18421842
Lint/EachWithObjectArgument:
18431843
Description: 'Check for immutable argument given to each_with_object.'
@@ -4076,7 +4076,7 @@ Style/HashSyntax:
40764076
StyleGuide: '#hash-literals'
40774077
Enabled: true
40784078
VersionAdded: '0.9'
4079-
VersionChanged: '<<next>>'
4079+
VersionChanged: '1.67'
40804080
EnforcedStyle: ruby19
40814081
SupportedStyles:
40824082
# checks for 1.9 syntax (e.g. {a: 1}) for all symbol keys
@@ -4325,7 +4325,7 @@ Style/MapIntoArray:
43254325
StyleGuide: '#functional-code'
43264326
Enabled: pending
43274327
VersionAdded: '1.63'
4328-
VersionChanged: '<<next>>'
4328+
VersionChanged: '1.67'
43294329
Safe: false
43304330

43314331
Style/MapToHash:
@@ -5216,7 +5216,7 @@ Style/ReturnNilInPredicateMethodDefinition:
52165216
AllowedMethods: []
52175217
AllowedPatterns: []
52185218
VersionAdded: '1.53'
5219-
VersionChanged: '<<next>>'
5219+
VersionChanged: '1.67'
52205220

52215221
Style/SafeNavigation:
52225222
Description: >-
@@ -5227,7 +5227,7 @@ Style/SafeNavigation:
52275227
be `nil` or truthy, but never `false`.
52285228
Enabled: true
52295229
VersionAdded: '0.43'
5230-
VersionChanged: '<<next>>'
5230+
VersionChanged: '1.67'
52315231
# Safe navigation may cause a statement to start returning `nil` in addition
52325232
# to whatever it used to return.
52335233
ConvertCodeThatCanStartToReturnNil: false

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.67'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ In the following section you find all available cops:
229229
* xref:cops_lint.adoc#lintduplicateregexpcharacterclasselement[Lint/DuplicateRegexpCharacterClassElement]
230230
* xref:cops_lint.adoc#lintduplicaterequire[Lint/DuplicateRequire]
231231
* xref:cops_lint.adoc#lintduplicaterescueexception[Lint/DuplicateRescueException]
232+
* xref:cops_lint.adoc#lintduplicatesetelement[Lint/DuplicateSetElement]
232233
* xref:cops_lint.adoc#linteachwithobjectargument[Lint/EachWithObjectArgument]
233234
* xref:cops_lint.adoc#lintelselayout[Lint/ElseLayout]
234235
* xref:cops_lint.adoc#lintemptyblock[Lint/EmptyBlock]

docs/modules/ROOT/pages/cops_bundler.adoc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
= Bundler
88
9+
[#bundlerduplicatedgem]
910
== Bundler/DuplicatedGem
1011
1112
|===
@@ -20,6 +21,7 @@
2021
2122
A Gem's requirements should be listed only once in a Gemfile.
2223
24+
[#examples-bundlerduplicatedgem]
2325
=== Examples
2426
2527
[source,ruby]
@@ -55,6 +57,7 @@ else
5557
end
5658
----
5759
60+
[#configurable-attributes-bundlerduplicatedgem]
5861
=== Configurable attributes
5962
6063
|===
@@ -69,6 +72,7 @@ end
6972
| Array
7073
|===
7174
75+
[#bundlerduplicatedgroup]
7276
== Bundler/DuplicatedGroup
7377
7478
|===
@@ -101,6 +105,7 @@ platforms :jruby do
101105
end
102106
-----
103107
108+
[#examples-bundlerduplicatedgroup]
104109
=== Examples
105110
106111
[source,ruby]
@@ -137,6 +142,7 @@ gem 'rubocop', groups: [:development, :test]
137142
gem 'rspec', groups: [:development, :test]
138143
----
139144
145+
[#configurable-attributes-bundlerduplicatedgroup]
140146
=== Configurable attributes
141147
142148
|===
@@ -151,6 +157,7 @@ gem 'rspec', groups: [:development, :test]
151157
| Array
152158
|===
153159
160+
[#bundlergemcomment]
154161
== Bundler/GemComment
155162
156163
|===
@@ -193,8 +200,10 @@ For a full list of options supported by bundler,
193200
see https://bundler.io/man/gemfile.5.html
194201
.
195202
203+
[#examples-bundlergemcomment]
196204
=== Examples
197205
206+
[#onlyfor_-__-_default_-bundlergemcomment]
198207
==== OnlyFor: [] (default)
199208
200209
[source,ruby]
@@ -209,6 +218,7 @@ gem 'foo'
209218
gem 'foo'
210219
----
211220
221+
[#onlyfor_-__version_specifiers__-bundlergemcomment]
212222
==== OnlyFor: ['version_specifiers']
213223
214224
[source,ruby]
@@ -223,6 +233,7 @@ gem 'foo', '< 2.1'
223233
gem 'foo', '< 2.1'
224234
----
225235
236+
[#onlyfor_-__restrictive_version_specifiers__-bundlergemcomment]
226237
==== OnlyFor: ['restrictive_version_specifiers']
227238
228239
[source,ruby]
@@ -239,6 +250,7 @@ gem 'foo', '>= 1.0'
239250
gem 'foo', '< 2.1'
240251
----
241252
253+
[#onlyfor_-__version_specifiers__-_github__-bundlergemcomment]
242254
==== OnlyFor: ['version_specifiers', 'github']
243255
244256
[source,ruby]
@@ -258,6 +270,7 @@ gem 'foo', github: 'some_account/some_fork_of_foo'
258270
gem 'bar', '< 2.1'
259271
----
260272
273+
[#configurable-attributes-bundlergemcomment]
261274
=== Configurable attributes
262275
263276
|===
@@ -276,6 +289,7 @@ gem 'bar', '< 2.1'
276289
| Array
277290
|===
278291
292+
[#bundlergemfilename]
279293
== Bundler/GemFilename
280294
281295
|===
@@ -291,8 +305,10 @@ gem 'bar', '< 2.1'
291305
Verifies that a project contains Gemfile or gems.rb file and correct
292306
associated lock file based on the configuration.
293307
308+
[#examples-bundlergemfilename]
294309
=== Examples
295310
311+
[#enforcedstyle_-gemfile-_default_-bundlergemfilename]
296312
==== EnforcedStyle: Gemfile (default)
297313
298314
[source,ruby]
@@ -307,6 +323,7 @@ Project contains Gemfile and gems.locked file
307323
Project contains Gemfile and Gemfile.lock
308324
----
309325
326+
[#enforcedstyle_-gems_rb-bundlergemfilename]
310327
==== EnforcedStyle: gems.rb
311328
312329
[source,ruby]
@@ -321,6 +338,7 @@ Project contains gems.rb and Gemfile.lock file
321338
Project contains gems.rb and gems.locked files
322339
----
323340
341+
[#configurable-attributes-bundlergemfilename]
324342
=== Configurable attributes
325343
326344
|===
@@ -335,6 +353,7 @@ Project contains gems.rb and gems.locked files
335353
| Array
336354
|===
337355
356+
[#bundlergemversion]
338357
== Bundler/GemVersion
339358
340359
|===
@@ -350,8 +369,10 @@ Project contains gems.rb and gems.locked files
350369
Enforce that Gem version specifications or a commit reference (branch,
351370
ref, or tag) are either required or forbidden.
352371
372+
[#examples-bundlergemversion]
353373
=== Examples
354374
375+
[#enforcedstyle_-required-_default_-bundlergemversion]
355376
==== EnforcedStyle: required (default)
356377
357378
[source,ruby]
@@ -378,6 +399,7 @@ gem 'rubocop', ref: '74b5bfbb2c4b6fd6cdbbc7254bd7084b36e0c85b'
378399
gem 'rubocop', tag: 'v1.17.0'
379400
----
380401
402+
[#enforcedstyle_-forbidden-bundlergemversion]
381403
==== EnforcedStyle: forbidden
382404
383405
[source,ruby]
@@ -404,6 +426,7 @@ gem 'rubocop', ref: '74b5bfbb2c4b6fd6cdbbc7254bd7084b36e0c85b'
404426
gem 'rubocop', tag: 'v1.17.0'
405427
----
406428
429+
[#configurable-attributes-bundlergemversion]
407430
=== Configurable attributes
408431
409432
|===
@@ -422,6 +445,7 @@ gem 'rubocop', tag: 'v1.17.0'
422445
| Array
423446
|===
424447
448+
[#bundlerinsecureprotocolsource]
425449
== Bundler/InsecureProtocolSource
426450
427451
|===
@@ -450,6 +474,7 @@ more secure.
450474
If you don't allow `http://`, please set `false` to `AllowHttpProtocol`.
451475
This option is `true` by default for safe autocorrection.
452476
477+
[#examples-bundlerinsecureprotocolsource]
453478
=== Examples
454479
455480
[source,ruby]
@@ -463,6 +488,7 @@ source :rubyforge
463488
source 'https://rubygems.org' # strongly recommended
464489
----
465490
491+
[#allowhttpprotocol_-true-_default_-bundlerinsecureprotocolsource]
466492
==== AllowHttpProtocol: true (default)
467493
468494
[source,ruby]
@@ -471,6 +497,7 @@ source 'https://rubygems.org' # strongly recommended
471497
source 'http://rubygems.org' # use only if HTTPS is unavailable
472498
----
473499
500+
[#allowhttpprotocol_-false-bundlerinsecureprotocolsource]
474501
==== AllowHttpProtocol: false
475502
476503
[source,ruby]
@@ -479,6 +506,7 @@ source 'http://rubygems.org' # use only if HTTPS is unavailable
479506
source 'http://rubygems.org'
480507
----
481508
509+
[#configurable-attributes-bundlerinsecureprotocolsource]
482510
=== Configurable attributes
483511
484512
|===
@@ -497,6 +525,7 @@ source 'http://rubygems.org'
497525
| Array
498526
|===
499527
528+
[#bundlerorderedgems]
500529
== Bundler/OrderedGems
501530
502531
|===
@@ -511,6 +540,7 @@ source 'http://rubygems.org'
511540
512541
Gems should be alphabetically sorted within groups.
513542
543+
[#examples-bundlerorderedgems]
514544
=== Examples
515545
516546
[source,ruby]
@@ -529,6 +559,7 @@ gem 'rubocop'
529559
gem 'rspec'
530560
----
531561
562+
[#treatcommentsasgroupseparators_-true-_default_-bundlerorderedgems]
532563
==== TreatCommentsAsGroupSeparators: true (default)
533564
534565
[source,ruby]
@@ -540,6 +571,7 @@ gem 'rubocop'
540571
gem 'rspec'
541572
----
542573
574+
[#treatcommentsasgroupseparators_-false-bundlerorderedgems]
543575
==== TreatCommentsAsGroupSeparators: false
544576
545577
[source,ruby]
@@ -551,6 +583,7 @@ gem 'rubocop'
551583
gem 'rspec'
552584
----
553585
586+
[#configurable-attributes-bundlerorderedgems]
554587
=== Configurable attributes
555588
556589
|===

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