From 457cd4f0db4088a0f85413af9a5b66b06d6a94bf Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 16 Jan 2019 18:31:30 +0200 Subject: [PATCH] Cut 0.63 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- CHANGELOG.md | 2 ++ README.md | 2 +- lib/rubocop/version.rb | 2 +- manual/installation.md | 2 +- relnotes/v0.63.0.md | 43 ++++++++++++++++++++++++++++ 6 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 relnotes/v0.63.0.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 087ea7a8bcb..54bc3f0dca0 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.62.0 (using Parser 2.5.1.2, running on ruby 2.5.1 x86_64-linux) +0.63.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 1202ae631dd..b0ed6e02041 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 0.63.0 (2019-01-16) + ### New features * [#6604](https://github.com/rubocop-hq/rubocop/pull/6604): Add auto-correct support to `Rails/LinkToBlank`. ([@Intrepidd][]) diff --git a/README.md b/README.md index 02aae614123..6c259aeaa51 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.62.0', require: false +gem 'rubocop', '~> 0.63.0', require: false ``` ## Quickstart diff --git a/lib/rubocop/version.rb b/lib/rubocop/version.rb index 3197b8ca8c1..7340bd378c4 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.62.0'.freeze + STRING = '0.63.0'.freeze MSG = '%s (using Parser %s, running on ' \ '%s %s %s)'.freeze diff --git a/manual/installation.md b/manual/installation.md index 55cc1a1d6a7..74e8e9579a5 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.62.0', require: false +gem 'rubocop', '~> 0.63.0', require: false ``` !!! Note diff --git a/relnotes/v0.63.0.md b/relnotes/v0.63.0.md new file mode 100644 index 00000000000..6ed589400ca --- /dev/null +++ b/relnotes/v0.63.0.md @@ -0,0 +1,43 @@ +### New features + +* [#6604](https://github.com/rubocop-hq/rubocop/pull/6604): Add auto-correct support to `Rails/LinkToBlank`. ([@Intrepidd][]) +* [#6660](https://github.com/rubocop-hq/rubocop/pull/6660): Add new `Rails/IgnoredSkipActionFilterOption` cop. ([@wata727][]) +* [#6363](https://github.com/rubocop-hq/rubocop/issues/6363): Allow `Style/YodaCondition` cop to be configured to enforce yoda conditions. ([@tejasbubane][]) +* [#6150](https://github.com/rubocop-hq/rubocop/issues/6150): Add support to enforce disabled cops to be executed. ([@roooodcastro][]) +* [#6596](https://github.com/rubocop-hq/rubocop/pull/6596): Add new `Rails/BelongsTo` cop with auto-correct for Rails >= 5. ([@petehamilton][]) + +### Bug fixes + +* [#6627](https://github.com/rubocop-hq/rubocop/pull/6627): Fix handling of hashes in trailing comma. ([@abrom][]) +* [#6623](https://github.com/rubocop-hq/rubocop/pull/6623): Fix heredoc detection in trailing comma. ([@palkan][]) +* [#6100](https://github.com/rubocop-hq/rubocop/issues/6100): Fix a false positive in `Naming/ConstantName` cop when rhs is a conditional expression. ([@tatsuyafw][]) +* [#6526](https://github.com/rubocop-hq/rubocop/issues/6526): Fix a wrong line highlight in `Lint/ShadowedException` cop. ([@tatsuyafw][]) +* [#6617](https://github.com/rubocop-hq/rubocop/issues/6617): Prevent traversal error on infinite ranges. ([@drenmi][]) +* [#6625](https://github.com/rubocop-hq/rubocop/issues/6625): Revert the "auto-exclusion of files ignored by git" feature. ([@bbatsov][]) +* [#4460](https://github.com/rubocop-hq/rubocop/issues/4460): Fix the determination of unsafe auto-correct in `Style/TernaryParentheses`. ([@jonas054][]) +* [#6651](https://github.com/rubocop-hq/rubocop/issues/6651): Fix auto-correct issue in `Style/RegexpLiteral` cop when there is string interpolation. ([@roooodcastro][]) +* [#6670](https://github.com/rubocop-hq/rubocop/issues/6670): Fix a false positive for `Style/SafeNavigation` when a method call safeguarded with a negative check for the object. ([@koic][]) +* [#6633](https://github.com/rubocop-hq/rubocop/issues/6633): Fix `Lint/SafeNavigation` complaining about use of `to_d`. ([@tejasbubane][]) +* [#6575](https://github.com/rubocop-hq/rubocop/issues/6575): Fix `Naming/PredicateName` suggesting invalid rename. ([@tejasbubane][]) +* [#6673](https://github.com/rubocop-hq/rubocop/issues/6673): Fix `Style/DocumentationMethod` cop to recognize documentation comments for `def` inline with `module_function`. ([@tejasbubane][]) + +### Changes + +* [#6607](https://github.com/rubocop-hq/rubocop/pull/6607): Improve CLI usage message for --stdin option. ([@jaredbeck][]) +* [#6641](https://github.com/rubocop-hq/rubocop/issues/6641): Specify `Performance/RangeInclude` as unsafe because `Range#include?` and `Range#cover?` are not equivalent. ([@koic][]) +* [#6636](https://github.com/rubocop-hq/rubocop/pull/6636): Move `FlipFlop` cop from `Style` to `Lint` department because flip-flop is deprecated since Ruby 2.6.0. ([@koic][]) +* [#6661](https://github.com/rubocop-hq/rubocop/pull/6661): Abandon making frozen string literals default for Ruby 3.0. ([@koic][]) + +[@Intrepidd]: https://github.com/Intrepidd +[@wata727]: https://github.com/wata727 +[@tejasbubane]: https://github.com/tejasbubane +[@roooodcastro]: https://github.com/roooodcastro +[@petehamilton]: https://github.com/petehamilton +[@abrom]: https://github.com/abrom +[@palkan]: https://github.com/palkan +[@tatsuyafw]: https://github.com/tatsuyafw +[@drenmi]: https://github.com/drenmi +[@bbatsov]: https://github.com/bbatsov +[@jonas054]: https://github.com/jonas054 +[@koic]: https://github.com/koic +[@jaredbeck]: https://github.com/jaredbeck