Skip to content

Commit

Permalink
Cut 1.38
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Nov 1, 2022
1 parent c87ed48 commit 52a56f0
Show file tree
Hide file tree
Showing 19 changed files with 4,775 additions and 3,906 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.37.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
1.38.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.38.0 (2022-11-01)

### New features

* [#11110](https://github.com/rubocop/rubocop/pull/11110): Add new `Style/RedundantEach` cop. ([@koic][])
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.37.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
1.38.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.37', require: false
gem 'rubocop', '~> 1.38', require: false
```

See [our versioning policy](https://docs.rubocop.org/rubocop/versioning.html) for further details.
Expand Down
2 changes: 1 addition & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4700,7 +4700,7 @@ Style/RedundantEach:
Description: 'Checks for redundant `each`.'
Enabled: pending
Safe: false
VersionAdded: '<<next>>'
VersionAdded: '1.38'

Style/RedundantException:
Description: "Checks for an obsolete RuntimeException argument in raise/fail."
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.38'
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 @@ -540,6 +540,7 @@ In the following section you find all available cops:
* xref:cops_style.adoc#styleredundantcapitalw[Style/RedundantCapitalW]
* xref:cops_style.adoc#styleredundantcondition[Style/RedundantCondition]
* xref:cops_style.adoc#styleredundantconditional[Style/RedundantConditional]
* xref:cops_style.adoc#styleredundanteach[Style/RedundantEach]
* xref:cops_style.adoc#styleredundantexception[Style/RedundantException]
* xref:cops_style.adoc#styleredundantfetchblock[Style/RedundantFetchBlock]
* xref:cops_style.adoc#styleredundantfileextensioninrequire[Style/RedundantFileExtensionInRequire]
Expand Down
156 changes: 84 additions & 72 deletions docs/modules/ROOT/pages/cops_bundler.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

== Bundler/DuplicatedGem

[separator=¦]
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed

| Enabled
| Yes
| No
| 0.46
| -
¦ Enabled
¦ Yes
¦ No
¦ 0.46
¦ -
|===

A Gem's requirements should be listed only once in a Gemfile.
Expand Down Expand Up @@ -51,24 +52,26 @@ end

=== Configurable attributes

[separator=¦]
|===
| Name | Default value | Configurable values

| Include
| `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
| Array
¦ Include
¦ `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
¦ Array
|===

== Bundler/GemComment

[separator=¦]
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed

| Disabled
| Yes
| No
| 0.59
| 0.85
¦ Disabled
¦ Yes
¦ No
¦ 0.59
¦ 0.85
|===

Each gem in the Gemfile should have a comment explaining
Expand Down Expand Up @@ -168,32 +171,34 @@ gem 'bar', '< 2.1'

=== Configurable attributes

[separator=¦]
|===
| Name | Default value | Configurable values

| Include
| `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
| Array
¦ Include
¦ `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
¦ Array

| IgnoredGems
| `[]`
| Array
¦ IgnoredGems
¦ `[]`
¦ Array

| OnlyFor
| `[]`
| Array
¦ OnlyFor
¦ `[]`
¦ Array
|===

== Bundler/GemFilename

[separator=¦]
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed

| Enabled
| Yes
| No
| 1.20
| -
¦ Enabled
¦ Yes
¦ No
¦ 1.20
¦ -
|===

Verifies that a project contains Gemfile or gems.rb file and correct
Expand Down Expand Up @@ -231,28 +236,30 @@ Project contains gems.rb and gems.locked files

=== Configurable attributes

[separator=¦]
|===
| Name | Default value | Configurable values

| EnforcedStyle
| `Gemfile`
| `Gemfile`, `gems.rb`
¦ EnforcedStyle
¦ `Gemfile`
¦ `Gemfile`, `gems.rb`

| Include
| `+**/Gemfile+`, `+**/gems.rb+`, `+**/Gemfile.lock+`, `+**/gems.locked+`
| Array
¦ Include
¦ `+**/Gemfile+`, `+**/gems.rb+`, `+**/Gemfile.lock+`, `+**/gems.locked+`
¦ Array
|===

== Bundler/GemVersion

[separator=¦]
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed

| Disabled
| Yes
| No
| 1.14
| -
¦ Disabled
¦ Yes
¦ No
¦ 1.14
¦ -
|===

Enforce that Gem version specifications or a commit reference (branch,
Expand Down Expand Up @@ -314,32 +321,34 @@ gem 'rubocop', tag: 'v1.17.0'

=== Configurable attributes

[separator=¦]
|===
| Name | Default value | Configurable values

| EnforcedStyle
| `required`
| `required`, `forbidden`
¦ EnforcedStyle
¦ `required`
¦ `required`, `forbidden`

| Include
| `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
| Array
¦ Include
¦ `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
¦ Array

| AllowedGems
| `[]`
| Array
¦ AllowedGems
¦ `[]`
¦ Array
|===

== Bundler/InsecureProtocolSource

[separator=¦]
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed

| Enabled
| Yes
| Yes
| 0.50
| -
¦ Enabled
¦ Yes
¦ Yes
¦ 0.50
¦ -
|===

Passing symbol arguments to `source` (e.g. `source :rubygems`) is
Expand Down Expand Up @@ -389,28 +398,30 @@ source 'http://rubygems.org'

=== Configurable attributes

[separator=¦]
|===
| Name | Default value | Configurable values

| AllowHttpProtocol
| `true`
| Boolean
¦ AllowHttpProtocol
¦ `true`
¦ Boolean

| Include
| `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
| Array
¦ Include
¦ `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
¦ Array
|===

== Bundler/OrderedGems

[separator=¦]
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed

| Enabled
| Yes
| Yes
| 0.46
| 0.47
¦ Enabled
¦ Yes
¦ Yes
¦ 0.46
¦ 0.47
|===

Gems should be alphabetically sorted within groups.
Expand Down Expand Up @@ -441,18 +452,19 @@ gem 'rspec'

=== Configurable attributes

[separator=¦]
|===
| Name | Default value | Configurable values

| TreatCommentsAsGroupSeparators
| `true`
| Boolean
¦ TreatCommentsAsGroupSeparators
¦ `true`
¦ Boolean

| ConsiderPunctuation
| `false`
| Boolean
¦ ConsiderPunctuation
¦ `false`
¦ Boolean

| Include
| `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
| Array
¦ Include
¦ `+**/*.gemfile+`, `+**/Gemfile+`, `+**/gems.rb+`
¦ Array
|===
Loading

0 comments on commit 52a56f0

Please sign in to comment.