Skip to content

Commit

Permalink
Cut 1.45
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Feb 8, 2023
1 parent 942065a commit 170d244
Show file tree
Hide file tree
Showing 16 changed files with 114 additions and 113 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ output by `rubocop -V`, include them as well. Here's an example:

```
$ [bundle exec] rubocop -V
1.44.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
1.45.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
- rubocop-performance 1.9.1
- rubocop-rspec 2.0.0
```
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master (unreleased)

## 1.45.0 (2023-02-08)

### New features

* [#10839](https://github.com/rubocop/rubocop/pull/10839): Add API for 3rd party template support. ([@r7kamura][])
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ do so.

```console
$ rubocop -V
1.44.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
1.45.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
- rubocop-performance 1.9.1
- rubocop-rspec 2.0.0
```
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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.44', require: false
gem 'rubocop', '~> 1.45', require: false
```

See [our versioning policy](https://docs.rubocop.org/rubocop/versioning.html) for further details.
Expand Down
8 changes: 4 additions & 4 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ Layout/AssignmentIndentation:
right-hand-side of a multi-line assignment.
Enabled: true
VersionAdded: '0.49'
VersionChanged: '<<next>>'
VersionChanged: '1.45'
# By default the indentation width from `Layout/IndentationWidth` is used,
# but it can be overridden by setting this parameter.
IndentationWidth: ~
Expand Down Expand Up @@ -1006,7 +1006,7 @@ Layout/LineContinuationLeadingSpace:
broken over multiple lines (by a backslash).
Enabled: pending
VersionAdded: '1.31'
VersionChanged: '<<next>>'
VersionChanged: '1.45'
EnforcedStyle: trailing
SupportedStyles:
- leading
Expand Down Expand Up @@ -1574,7 +1574,7 @@ Lint/AssignmentInCondition:
Enabled: true
SafeAutoCorrect: false
VersionAdded: '0.9'
VersionChanged: '<<next>>'
VersionChanged: '1.45'
AllowSafeAssignment: true

Lint/BigDecimalNew:
Expand Down Expand Up @@ -4842,7 +4842,7 @@ Style/RedundantFreeze:
Style/RedundantHeredocDelimiterQuotes:
Description: 'Checks for redundant heredoc delimiter quotes.'
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '1.45'

Style/RedundantInitialize:
Description: 'Checks for redundant `initialize` methods.'
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
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.45'
nav:
- modules/ROOT/nav.adoc
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/cops.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ In the following section you find all available cops:
* xref:cops_style.adoc#styleredundantfetchblock[Style/RedundantFetchBlock]
* xref:cops_style.adoc#styleredundantfileextensioninrequire[Style/RedundantFileExtensionInRequire]
* xref:cops_style.adoc#styleredundantfreeze[Style/RedundantFreeze]
* xref:cops_style.adoc#styleredundantheredocdelimiterquotes[Style/RedundantHeredocDelimiterQuotes]
* xref:cops_style.adoc#styleredundantinitialize[Style/RedundantInitialize]
* xref:cops_style.adoc#styleredundantinterpolation[Style/RedundantInterpolation]
* xref:cops_style.adoc#styleredundantparentheses[Style/RedundantParentheses]
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_gemspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ gem "bar"
| `Gemfile`, `gems.rb`, `gemspec`

| AllowedGems
| `bundler`
| `[]`
| Array

| Include
Expand Down
20 changes: 4 additions & 16 deletions docs/modules/ROOT/pages/cops_layout.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ array = [1, 2, 3,

| Enabled
| Yes
| Yes (Unsafe)
| Yes
| 0.49
| 1.40
| 1.45
|===

Checks the indentation of the first line of the
Expand Down Expand Up @@ -4066,10 +4066,6 @@ end
| AllowedPatterns
| `[]`
| Array

| IgnoredPatterns
| `[]`
| Array
|===

=== References
Expand Down Expand Up @@ -4244,9 +4240,9 @@ end

| Pending
| Yes
| Yes (Unsafe)
| Yes
| 1.31
| 1.32
| 1.45
|===

Checks that strings broken over multiple lines (by a backslash) contain
Expand Down Expand Up @@ -4302,10 +4298,6 @@ instead of trailing spaces.
|===
| Name | Default value | Configurable values

| AutoCorrect
| `false`
| Boolean

| EnforcedStyle
| `trailing`
| `leading`, `trailing`
Expand Down Expand Up @@ -4577,10 +4569,6 @@ bar: "0000000000", baz: "0000000000"}
| AllowedPatterns
| `[]`
| Array

| IgnoredPatterns
| `[]`
| Array
|===

=== References
Expand Down
22 changes: 3 additions & 19 deletions docs/modules/ROOT/pages/cops_lint.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ expect { do_something }.to not_change { object.attribute }
| AllowedPatterns
| `[]`
| Array

| IgnoredMethods
| `[]`
| Array
|===

=== References
Expand Down Expand Up @@ -339,9 +335,9 @@ do_something(/pattern/i)

| Enabled
| Yes
| Yes
| Yes (Unsafe)
| 0.9
| -
| 1.45
|===

Checks for assignments in the conditions of
Expand Down Expand Up @@ -905,12 +901,8 @@ end
|===
| Name | Default value | Configurable values

| DebuggerReceivers
| `[]`
| Array

| DebuggerMethods
| `{"Kernel"=>["binding.irb", "Kernel.binding.irb"], "Byebug"=>["byebug", "remote_byebug", "Kernel.byebug", "Kernel.remote_byebug"], "Capybara"=>["save_and_open_page", "save_and_open_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"], "Rails"=>["debugger", "Kernel.debugger"], "RubyJard"=>["jard"], "WebConsole"=>["binding.console"]}`
| `{"Kernel"=>["binding.irb", "p", "Kernel.binding.irb"], "Byebug"=>["byebug", "remote_byebug", "Kernel.byebug", "Kernel.remote_byebug"], "Capybara"=>["save_and_open_page", "save_and_open_screenshot"], "PP"=>["PP.pp", "pp"], "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"], "Rails"=>["debugger", "Kernel.debugger"], "RubyJard"=>["jard"], "WebConsole"=>["binding.console"]}`
|
|===

Expand Down Expand Up @@ -3859,10 +3851,6 @@ Time.now.to_datetime.to_i
| `[]`
| Array

| IgnoredMethods
| `[]`
| Array

| IgnoredClasses
| `Time`, `DateTime`
| Array
Expand Down Expand Up @@ -6355,10 +6343,6 @@ exactly(2).times { raise StandardError }
| AllowedPatterns
| `(?-mix:(exactly\|at_least\|at_most)\(\d+\)\.times)`
| Array

| IgnoredPatterns
| `[]`
| Array
|===

== Lint/UnusedBlockArgument
Expand Down
28 changes: 0 additions & 28 deletions docs/modules/ROOT/pages/cops_metrics.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ end
| `[]`
| Array

| IgnoredMethods
| `[]`
| Array

| CountRepeatedAttributes
| `true`
| Boolean
Expand Down Expand Up @@ -154,10 +150,6 @@ end # 6 points
| `[]`
| Array

| ExcludedMethods
| `[]`
| Array

| AllowedMethods
| `refine`
| Array
Expand All @@ -166,10 +158,6 @@ end # 6 points
| `[]`
| Array

| IgnoredMethods
| `[]`
| Array

| Exclude
| `+**/*.gemspec+`
| Array
Expand Down Expand Up @@ -334,10 +322,6 @@ Blocks that are calls to builtin iteration methods
| `[]`
| Array

| IgnoredMethods
| `[]`
| Array

| Max
| `7`
| Integer
Expand Down Expand Up @@ -413,21 +397,13 @@ end # 6 points
| `[]`
| Array

| ExcludedMethods
| `[]`
| Array

| AllowedMethods
| `[]`
| Array

| AllowedPatterns
| `[]`
| Array

| IgnoredMethods
| `[]`
| Array
|===

=== References
Expand Down Expand Up @@ -676,10 +652,6 @@ end # 7 complexity points
| `[]`
| Array

| IgnoredMethods
| `[]`
| Array

| Max
| `8`
| Integer
Expand Down
6 changes: 1 addition & 5 deletions docs/modules/ROOT/pages/cops_naming.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ EOS
| Name | Default value | Configurable values

| ForbiddenDelimiters
| `(?-mix:(^\|\s)(EO[A-Z]{1}\|END)(\s\|$))`
| `(?i-mx:(^\|\s)(EO[A-Z]{1}\|END)(\s\|$))`
| Array
|===

Expand Down Expand Up @@ -974,10 +974,6 @@ def fooBar; end
| AllowedPatterns
| `[]`
| Array

| IgnoredPatterns
| `[]`
| Array
|===

=== References
Expand Down

0 comments on commit 170d244

Please sign in to comment.