From 2869886b9b5578844008944907a1d68467f63fd0 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Mon, 16 Apr 2018 12:19:29 +0300 Subject: [PATCH] Cut 0.55 --- CHANGELOG.md | 2 ++ README.md | 2 +- lib/rubocop/version.rb | 2 +- manual/installation.md | 2 +- relnotes/v0.55.0.md | 45 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 relnotes/v0.55.0.md diff --git a/CHANGELOG.md b/CHANGELOG.md index ca678933d71e..54380b20e9c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 0.55.0 (2018-04-16) + ### New features * [#5753](https://github.com/bbatsov/rubocop/pull/5753): Add new `Performance/UnneededSort` cop. ([@parkerfinch][]) diff --git a/README.md b/README.md index 8c4daa2fee66..1f07e7c82294 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,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.54.0', require: false +gem 'rubocop', '~> 0.55.0', require: false ``` ## Quickstart diff --git a/lib/rubocop/version.rb b/lib/rubocop/version.rb index 8e8f8cbb5e2a..048097a9e2b2 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.54.0'.freeze + STRING = '0.55.0'.freeze MSG = '%s (using Parser %s, running on ' \ '%s %s %s)'.freeze diff --git a/manual/installation.md b/manual/installation.md index e502f2ad7b73..552e69ef4d28 100644 --- a/manual/installation.md +++ b/manual/installation.md @@ -16,5 +16,5 @@ 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.54.0', require: false +gem 'rubocop', '~> 0.55.0', require: false ``` diff --git a/relnotes/v0.55.0.md b/relnotes/v0.55.0.md new file mode 100644 index 000000000000..7abfde7ec537 --- /dev/null +++ b/relnotes/v0.55.0.md @@ -0,0 +1,45 @@ +### New features + +* [#5753](https://github.com/bbatsov/rubocop/pull/5753): Add new `Performance/UnneededSort` cop. ([@parkerfinch][]) +* Add new `Lint/SafeNavigationConsistency` cop. ([@rrosenblum][]) + +### Bug fixes + +* [#5759](https://github.com/bbatsov/rubocop/pull/5759): Fix `Performance/RegexpMatch` cop not correcting negated match operator. ([@bdewater][]) +* [#5726](https://github.com/bbatsov/rubocop/issues/5726): Fix false positive for `:class_name` option in Rails/InverseOf cop. ([@bdewater][]) +* [#5686](https://github.com/bbatsov/rubocop/issues/5686): Fix a regression for `Style/SymbolArray` and `Style/WordArray` for multiline Arrays. ([@istateside][]) +* [#5730](https://github.com/bbatsov/rubocop/pull/5730): Stop `Rails/InverseOf` cop allowing `inverse_of: nil` to opt-out. ([@bdewater][]) +* [#5561](https://github.com/bbatsov/rubocop/issues/5561): Fix `Lint/ShadowedArgument` false positive with shorthand assignments. ([@akhramov][]) +* [#5403](https://github.com/bbatsov/rubocop/issues/5403): Fix `Naming/HeredocDelimiterNaming` blacklist patterns. ([@mcfisch][]) +* [#4298](https://github.com/bbatsov/rubocop/issues/4298): Fix auto-correction of `Performance/RegexpMatch` to produce code that safe guards against the receiver being `nil`. ([@rrosenblum][]) +* [#5738](https://github.com/bbatsov/rubocop/issues/5738): Make `Rails/HttpStatus` ignoring hash order to fix false negative. ([@pocke][]) +* [#5720](https://github.com/bbatsov/rubocop/pull/5720): Fix false positive for `Style/EmptyLineAfterGuardClause` when guard clause is after heredoc. ([@koic][]) +* [#5760](https://github.com/bbatsov/rubocop/pull/5760): Fix incorrect offense location for `Style/EmptyLineAfterGuardClause` when guard clause is after heredoc argument. ([@koic][]) +* [#5764](https://github.com/bbatsov/rubocop/pull/5764): Fix `Style/Unpackfirst` false positive of `unpack('h*').take(1)`. ([@parkerfinch][]) +* [#5766](https://github.com/bbatsov/rubocop/issues/5766): Update `Style/FrozenStringLiteralComment` auto-correction to insert a new line between the comment and the code. ([@rrosenblum][]) +* [#5551](https://github.com/bbatsov/rubocop/issues/5551): Fix `Lint/Void` not detecting void context in blocks with single expression. ([@Darhazer][]) + +### Changes + +* [#5752](https://github.com/bbatsov/rubocop/pull/5752): Add `String#delete_{prefix,suffix}` to Lint/Void cop. ([@bdewater][]) +* [#5734](https://github.com/bbatsov/rubocop/pull/5734): Add `by`, `on`, `in` and `at` to allowed names of `Naming/UncommunicativeMethodParamName` cop in default config. ([@AlexWayfer][]) +* [#5666](https://github.com/bbatsov/rubocop/issues/5666): Add spaces as an `EnforcedStyle` option to `Layout/SpaceInsideParens`, allowing you to enforce spaces inside of parentheses. ([@joshuapinter][]) +* [#4257](https://github.com/bbatsov/rubocop/issues/4257): Allow specifying module name in `Metrics/BlockLength`'s `ExcludedMethods` configuration option. ([@akhramov][]) +* [#4753](https://github.com/bbatsov/rubocop/issues/4753): Add `IgnoredMethods` option to `Style/MethodCallWithoutArgsParentheses` cop. ([@Darhazer][]) +* [#4517](https://github.com/bbatsov/rubocop/issues/4517): Add option to allow trailing whitespaces inside heredoc strings. ([@Darhazer][]) +* [#5652](https://github.com/bbatsov/rubocop/issues/5652): Make `Style/OptionHash` aware of implicit parameter passing to super. ([@Wei-LiangChew][]) +* [#5451](https://github.com/bbatsov/rubocop/issues/5451): When using --auto-gen-config, do not ouput offenses unless the --output-offenses flag is also passed. ([@drewpterry][]) + +[@parkerfinch]: https://github.com/parkerfinch +[@rrosenblum]: https://github.com/rrosenblum +[@bdewater]: https://github.com/bdewater +[@istateside]: https://github.com/istateside +[@akhramov]: https://github.com/akhramov +[@mcfisch]: https://github.com/mcfisch +[@pocke]: https://github.com/pocke +[@koic]: https://github.com/koic +[@Darhazer]: https://github.com/Darhazer +[@AlexWayfer]: https://github.com/AlexWayfer +[@joshuapinter]: https://github.com/joshuapinter +[@Wei-LiangChew]: https://github.com/Wei-LiangChew +[@drewpterry]: https://github.com/drewpterry \ No newline at end of file