Skip to content

Commit

Permalink
Cut 1.39
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Nov 14, 2022
1 parent a0ecf1b commit 6bdf42b
Show file tree
Hide file tree
Showing 18 changed files with 3,968 additions and 4,648 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.38.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
1.39.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.39.0 (2022-11-14)

### New features

* [#11091](https://github.com/rubocop/rubocop/pull/11091): Add autocorrect for `Layout/LineContinuationLeadingSpace`. ([@FnControlOption][])
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.38.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2) [x86_64-linux]
1.39.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.38', require: false
gem 'rubocop', '~> 1.39', 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 @@ -3822,7 +3822,7 @@ Style/HashExcept:
Enabled: pending
Safe: false
VersionAdded: '1.7'
VersionChanged: '<<next>>'
VersionChanged: '1.39'

Style/HashLikeCase:
Description: >-
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.39'
nav:
- modules/ROOT/nav.adoc
156 changes: 72 additions & 84 deletions docs/modules/ROOT/pages/cops_bundler.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

== 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 @@ -52,26 +51,24 @@ 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 @@ -171,34 +168,32 @@ 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 @@ -236,30 +231,28 @@ 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 @@ -321,34 +314,32 @@ 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 @@ -398,30 +389,28 @@ 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 @@ -452,19 +441,18 @@ 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
|===

0 comments on commit 6bdf42b

Please sign in to comment.