Skip to content

Commit

Permalink
Cut 1.61
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Feb 29, 2024
1 parent 0882ca9 commit 45ba779
Show file tree
Hide file tree
Showing 17 changed files with 531 additions and 468 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -38,7 +38,7 @@ output by `rubocop -V`, include them as well. Here's an example:

```
$ [bundle exec] rubocop -V
1.60.2 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
1.61.0 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
- rubocop-performance 1.18.0
- rubocop-rspec 2.23.2
```
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,8 @@

## master (unreleased)

## 1.61.0 (2024-02-29)

### New features

* [#12682](https://github.com/rubocop/rubocop/issues/12682): Add `--editor-mode` CLI option. ([@koic][])
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -17,7 +17,7 @@ do so.

```console
$ rubocop -V
1.60.2 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
1.61.0 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.2.2) [x86_64-linux]
- rubocop-performance 1.18.0
- rubocop-rspec 2.23.2
```
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -53,7 +53,7 @@ To prevent an unwanted RuboCop update you might want to use a conservative versi
in your `Gemfile`:

```rb
gem 'rubocop', '~> 1.60', require: false
gem 'rubocop', '~> 1.61', require: false
```

See [our versioning policy](https://docs.rubocop.org/rubocop/versioning.html) for further details.
Expand Down
34 changes: 17 additions & 17 deletions config/default.yml
Expand Up @@ -558,7 +558,7 @@ Layout/EmptyComment:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.53'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
AllowBorderComment: true
AllowMarginComment: true

Expand Down Expand Up @@ -1831,14 +1831,14 @@ Lint/EmptyConditionalBody:
SafeAutoCorrect: false
AllowComments: true
VersionAdded: '0.89'
VersionChanged: '<<next>>'
VersionChanged: '1.61'

Lint/EmptyEnsure:
Description: 'Checks for empty ensure block.'
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.10'
VersionChanged: '<<next>>'
VersionChanged: '1.61'

Lint/EmptyExpression:
Description: 'Checks for empty expressions.'
Expand All @@ -1862,7 +1862,7 @@ Lint/EmptyInterpolation:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.20'
VersionChanged: '<<next>>'
VersionChanged: '1.61'

Lint/EmptyWhen:
Description: 'Checks for `when` branches with empty bodies.'
Expand Down Expand Up @@ -2402,7 +2402,7 @@ Lint/TrailingCommaInAttributeDeclaration:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.90'
VersionChanged: '<<next>>'
VersionChanged: '1.61'

Lint/TripleQuotes:
Description: 'Checks for useless triple quote constructs.'
Expand Down Expand Up @@ -2464,7 +2464,7 @@ Lint/UnusedBlockArgument:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.21'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
IgnoreEmptyBlocks: true
AllowUnusedKeywordArguments: false

Expand All @@ -2474,7 +2474,7 @@ Lint/UnusedMethodArgument:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.21'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
AllowUnusedKeywordArguments: false
IgnoreEmptyMethods: true
IgnoreNotImplementedMethods: true
Expand All @@ -2500,7 +2500,7 @@ Lint/UselessAccessModifier:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.20'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
ContextCreatingMethods: []
MethodCreatingMethods: []

Expand All @@ -2510,7 +2510,7 @@ Lint/UselessAssignment:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.11'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
SafeAutoCorrect: false

Lint/UselessElseWithoutRescue:
Expand All @@ -2524,7 +2524,7 @@ Lint/UselessMethodDefinition:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.90'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
Safe: false

Lint/UselessRescue:
Expand All @@ -2550,14 +2550,14 @@ Lint/UselessTimes:
Safe: false
AutoCorrect: contextual
VersionAdded: '0.91'
VersionChanged: '<<next>>'
VersionChanged: '1.61'

Lint/Void:
Description: 'Possible use of operator/literal/variable in void context.'
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.9'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
CheckForMethodsWithNoSideEffects: false

#################### Metrics ###############################
Expand Down Expand Up @@ -3719,7 +3719,7 @@ Style/EmptyElse:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.28'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
EnforcedStyle: both
# empty - warn only on empty `else`
# nil - warn on `else` with nil in it
Expand All @@ -3735,7 +3735,7 @@ Style/EmptyHeredoc:
Enabled: pending
AutoCorrect: contextual
VersionAdded: '1.32'
VersionChanged: '<<next>>'
VersionChanged: '1.61'

Style/EmptyLambdaParameter:
Description: 'Omit parens for empty lambda parameters.'
Expand All @@ -3755,7 +3755,7 @@ Style/EmptyMethod:
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.46'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
EnforcedStyle: compact
SupportedStyles:
- compact
Expand Down Expand Up @@ -4858,7 +4858,7 @@ Style/RaiseArgs:
Enabled: true
Safe: false
VersionAdded: '0.14'
VersionChanged: '<<next>>'
VersionChanged: '1.61'
EnforcedStyle: exploded
SupportedStyles:
- compact # raise Exception.new(msg)
Expand Down Expand Up @@ -5003,7 +5003,7 @@ Style/RedundantInitialize:
Safe: false
AllowComments: true
VersionAdded: '1.27'
VersionChanged: '<<next>>'
VersionChanged: '1.61'

Style/RedundantInterpolation:
Description: 'Checks for strings that are just an interpolated expression.'
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Expand Up @@ -2,6 +2,6 @@ name: rubocop
title: RuboCop
# We always provide version without patch here (e.g. 1.1),
# as patch versions should not appear in the docs.
version: ~
version: '1.61'
nav:
- modules/ROOT/nav.adoc
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/cops_bundler.adoc
Expand Up @@ -429,7 +429,7 @@ gem 'rubocop', tag: 'v1.17.0'
| Enabled
| Yes
| Yes
| Always
| 0.50
| 1.40
|===
Expand Down Expand Up @@ -504,7 +504,7 @@ source 'http://rubygems.org'
| Enabled
| Yes
| Yes
| Always
| 0.46
| 0.47
|===
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/cops_gemspec.adoc
Expand Up @@ -98,7 +98,7 @@ end
| Pending
| Yes
| Yes
| Always
| 1.30
| 1.40
|===
Expand Down Expand Up @@ -319,7 +319,7 @@ end
| Enabled
| Yes
| Yes
| Always
| 0.51
| -
|===
Expand Down Expand Up @@ -417,7 +417,7 @@ spec.add_dependency 'rspec'
| Pending
| Yes
| Yes
| Always
| 1.23
| 1.40
|===
Expand Down

0 comments on commit 45ba779

Please sign in to comment.