From bb227db1792c24e7fe11e9a149839634e74fcf14 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Mon, 28 Oct 2019 16:53:32 +0200 Subject: [PATCH] Cut RuboCop 0.76 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- CHANGELOG.md | 2 ++ README.md | 2 +- lib/rubocop/version.rb | 2 +- manual/installation.md | 2 +- relnotes/v0.76.0.md | 25 +++++++++++++++++++++++++ 6 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 relnotes/v0.76.0.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 800db0c6223..3dd775469ca 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.75.1 (using Parser 2.5.1.2, running on ruby 2.5.1 x86_64-linux) +0.76.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 c8ae2b6d7b5..4fafc510f0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 0.76.0 (2019-10-28) + ### Bug fixes * [#7439](https://github.com/rubocop-hq/rubocop/issues/7439): Make `Style/FormatStringToken` ignore percent escapes (`%%`). ([@buehmann][]) diff --git a/README.md b/README.md index 70ad89c5935..a23d215b29b 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 lock in your `Gemfile`: ```rb -gem 'rubocop', '~> 0.75.1', require: false +gem 'rubocop', '~> 0.76.0', require: false ``` ## Quickstart diff --git a/lib/rubocop/version.rb b/lib/rubocop/version.rb index f34fe82ab6a..efc6aa6f2eb 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.75.1' + STRING = '0.76.0' MSG = '%s (using Parser %s, running on ' \ '%s %s %s)' diff --git a/manual/installation.md b/manual/installation.md index 9ae05e5843d..75289728b87 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.75.1', require: false +gem 'rubocop', '~> 0.76.0', require: false ``` !!! Note diff --git a/relnotes/v0.76.0.md b/relnotes/v0.76.0.md new file mode 100644 index 00000000000..1d98121008c --- /dev/null +++ b/relnotes/v0.76.0.md @@ -0,0 +1,25 @@ +### Bug fixes + +* [#7439](https://github.com/rubocop-hq/rubocop/issues/7439): Make `Style/FormatStringToken` ignore percent escapes (`%%`). ([@buehmann][]) +* [#7438](https://github.com/rubocop-hq/rubocop/issues/7438): Fix assignment edge-cases in `Layout/MultilineAssignmentLayout`. ([@gsamokovarov][]) +* [#7449](https://github.com/rubocop-hq/rubocop/pull/7449): Make `Style/IfUnlessModifier` respect `rubocop:disable` comments for `Metrics/LineLength`. ([@jonas054][]) +* [#7442](https://github.com/rubocop-hq/rubocop/issues/7442): Fix an incorrect autocorrect for `Style/SafeNavigation` when an object check followed by a method call with a comment at EOL. ([@koic][]) +* [#7434](https://github.com/rubocop-hq/rubocop/issues/7434): Fix an incorrect autocorrect for `Style/MultilineWhenThen` when the body of `when` branch starts with `then`. ([@koic][]) +* [#7464](https://github.com/rubocop-hq/rubocop/pull/7464): Let `Performance/StartWith` and `Performance/EndWith` correct regexes that contain forward slashes. ([@eugeneius][]) + +### Changes + +* [#7465](https://github.com/rubocop-hq/rubocop/pull/7465): Add `os` to allowed names of `Naming/UncommunicativeMethodParamName` cop in default config. ([@nijikon][]) +* [#7446](https://github.com/rubocop-hq/rubocop/issues/7446): Add `merge` to list of non-mutating methods. ([@cstyles][]) +* [#7077](https://github.com/rubocop-hq/rubocop/issues/7077): **(Breaking)** Rename `Unneeded*` cops to `Redundant*` (e.g., `Style/UnneededPercentQ` becomes `Style/RedundantPercentQ`). ([@scottmatthewman][]) +* [#7396](https://github.com/rubocop-hq/rubocop/issues/7396): Display assignments, branches, and conditions values with the offense. ([@avmnu-sng][]) + +[@buehmann]: https://github.com/buehmann +[@gsamokovarov]: https://github.com/gsamokovarov +[@jonas054]: https://github.com/jonas054 +[@koic]: https://github.com/koic +[@eugeneius]: https://github.com/eugeneius +[@nijikon]: https://github.com/nijikon +[@cstyles]: https://github.com/cstyles +[@scottmatthewman]: https://github.com/scottmatthewman +[@avmnu-sng]: https://github.com/avmnu-sng