From 440c0d2c3ef75cc329d3be1e75c85854596e9255 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 5 Dec 2018 12:42:20 +0000 Subject: [PATCH] Cut 0.61 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- CHANGELOG.md | 2 ++ README.md | 2 +- lib/rubocop/version.rb | 2 +- manual/installation.md | 2 +- relnotes/v0.61.0.md | 50 ++++++++++++++++++++++++++++ 6 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 relnotes/v0.61.0.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index de3f7e5f7d2..19b3954051c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -35,5 +35,5 @@ Include the output of `rubocop -V` or `bundle exec rubocop -V` if using Bundler. ``` $ [bundle exec] rubocop -V -0.60.0 (using Parser 2.5.1.2, running on ruby 2.5.1 x86_64-linux) +0.61.0 (using Parser 2.5.1.2, running on ruby 2.5.1 x86_64-linux) ``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 914e18c85de..73f56c8de5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 0.61.0 (2018-12-05) + ### New features * [#6457](https://github.com/rubocop-hq/rubocop/pull/6457): Support inner slash correction on `Style/RegexpLiteral`. ([@r7kamura][]) diff --git a/README.md b/README.md index 6f712731734..8b0404d7d2d 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ haven't reached version 1.0 yet). To prevent an unwanted RuboCop update you might want to use a conservative version locking in your `Gemfile`: ```rb -gem 'rubocop', '~> 0.60.0', require: false +gem 'rubocop', '~> 0.61.0', require: false ``` ## Quickstart diff --git a/lib/rubocop/version.rb b/lib/rubocop/version.rb index edfa25aaced..11eb01fa387 100644 --- a/lib/rubocop/version.rb +++ b/lib/rubocop/version.rb @@ -3,7 +3,7 @@ module RuboCop # This module holds the RuboCop version information. module Version - STRING = '0.60.0'.freeze + STRING = '0.61.0'.freeze MSG = '%s (using Parser %s, running on ' \ '%s %s %s)'.freeze diff --git a/manual/installation.md b/manual/installation.md index e61d54c6fb3..0f28aa1a0e0 100644 --- a/manual/installation.md +++ b/manual/installation.md @@ -16,7 +16,7 @@ haven't reached version 1.0 yet). To prevent an unwanted RuboCop update you might want to use a conservative version locking in your `Gemfile`: ```rb -gem 'rubocop', '~> 0.60.0', require: false +gem 'rubocop', '~> 0.61.0', require: false ``` !!! Note diff --git a/relnotes/v0.61.0.md b/relnotes/v0.61.0.md new file mode 100644 index 00000000000..42e8bbec62a --- /dev/null +++ b/relnotes/v0.61.0.md @@ -0,0 +1,50 @@ +### New features + +* [#6457](https://github.com/rubocop-hq/rubocop/pull/6457): Support inner slash correction on `Style/RegexpLiteral`. ([@r7kamura][]) +* [#6475](https://github.com/rubocop-hq/rubocop/pull/6475): Support brace correction on `Style/Lambda`. ([@r7kamura][]) +* [#6469](https://github.com/rubocop-hq/rubocop/pull/6469): Enforce no parentheses style in the `Style/MethodCallWithArgsParentheses` cop. ([@gsamokovarov][]) +* New cop `Performance/OpenStruct` checks for `OpenStruct.new` calls. ([@xlts][]) + +### Bug fixes + +* [#6433](https://github.com/rubocop-hq/rubocop/issues/6433): Fix Ruby 2.5 `Layout/RescueEnsureAlignment` error on assigned blocks. ([@gmcgibbon][]) +* [#6405](https://github.com/rubocop-hq/rubocop/issues/6405): Fix a false positive for `Lint/UselessAssignment` when using a variable in a module name. ([@itsWill][]) +* [#5934](https://github.com/rubocop-hq/rubocop/issues/5934): Handle the combination of `--auto-gen-config` and `--config FILE` correctly. ([@jonas054][]) +* [#5970](https://github.com/rubocop-hq/rubocop/issues/5970): Make running `--auto-gen-config` in a subdirectory work. ([@jonas054][]) +* [#6412](https://github.com/rubocop-hq/rubocop/issues/6412): Fix an `unknown keywords` error when using `Psych.safe_load` with Ruby 2.6.0-preview2. ([@koic][]) +* [#6436](https://github.com/rubocop-hq/rubocop/pull/6436): Fix exit status code to be 130 when rubocop is interrupted. ([@deivid-rodriguez][]) +* [#6443](https://github.com/rubocop-hq/rubocop/pull/6443): Fix an incorrect autocorrect for `Style/BracesAroundHashParameters` when the opening brace is before the first hash element at same line. ([@koic][]) +* [#6445](https://github.com/rubocop-hq/rubocop/pull/6445): Treat `yield` and `super` like regular method calls in `Style/AlignHash`. ([@mvz][]) +* [#3301](https://github.com/rubocop-hq/rubocop/issues/3301): Don't suggest or make semantic changes to the code in `Style/InfiniteLoop`. ([@jonas054][]) +* [#3586](https://github.com/rubocop-hq/rubocop/issues/3586): Handle single argument spanning multiple lines in `Style/TrailingCommaInArguments`. ([@jonas054][]) +* [#6478](https://github.com/rubocop-hq/rubocop/pull/6478): Fix EmacsComment#encoding to match the `coding` variable. ([@akihiro17][]) +* Don't show "unrecognized parameter" warning for `inherit_mode` parameter to individual cop configurations. ([@maxh][]) +* [#6449](https://github.com/rubocop-hq/rubocop/pull/6449): Fix a false negative for `Layout/IndentationWidth` when setting `EnforcedStyle: rails` of `Layout/IndentationConsistency` and method definition indented to access modifier in a singleton class. ([@koic][]) +* [#6482](https://github.com/rubocop-hq/rubocop/issues/6482): Fix a false positive for `Lint/FormatParameterMismatch` when using (digit)$ flag. ([@koic][]) +* [#6489](https://github.com/rubocop-hq/rubocop/issues/6489): Fix an error for `Style/UnneededCondition` when `if` condition and `then` branch are the same and it has no `else` branch. ([@koic][]) +* Fix NoMethodError for `Style/FrozenStringLiteral` when a file contains only a shebang. ([@takaram][]) +* [#6511](https://github.com/rubocop-hq/rubocop/issues/6511): Fix an incorrect auto-correct for `Style/EmptyCaseCondition` when used as an argument of a method. ([@koic][]) +* [#6509](https://github.com/rubocop-hq/rubocop/issues/6509): Fix an incorrect auto-correct for `Style/RaiseArgs` when an exception object is assigned to a local variable. ([@koic][]) +* [#6534](https://github.com/rubocop-hq/rubocop/issues/6534): Fix a false positive for `Lint/UselessAccessModifier` when using `private_class_method`. ([@dduugg][]) +* [#6545](https://github.com/rubocop-hq/rubocop/issues/6545): Fix a regression where `Performance/RedundantMerge` raises an error on a sole double splat argument passed to `merge!`. ([@mmedal][]) +* [#6360](https://github.com/rubocop-hq/rubocop/issues/6360): Detect bad indentation in `if` nodes even if the first branch is empty. ([@bquorning][]) + +### Changes + +* [#6492](https://github.com/rubocop-hq/rubocop/issues/6492): Auto-correct chunks of comment lines in `Layout/CommentIndentation` to avoid unnecessary iterations for `rubocop -a`. ([@jonas054][]) + +[@r7kamura]: https://github.com/r7kamura +[@gsamokovarov]: https://github.com/gsamokovarov +[@xlts]: https://github.com/xlts +[@gmcgibbon]: https://github.com/gmcgibbon +[@itsWill]: https://github.com/itsWill +[@jonas054]: https://github.com/jonas054 +[@koic]: https://github.com/koic +[@deivid-rodriguez]: https://github.com/deivid-rodriguez +[@mvz]: https://github.com/mvz +[@akihiro17]: https://github.com/akihiro17 +[@maxh]: https://github.com/maxh +[@takaram]: https://github.com/takaram +[@dduugg]: https://github.com/dduugg +[@mmedal]: https://github.com/mmedal +[@bquorning]: https://github.com/bquorning