diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ab6ee74c6..188ab69472 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changes +* [#181](https://github.com/rubocop-hq/rubocop-performance/pull/181): Change default configuration for `Performance/CollectionLiteralInLoop` to `Enabled: 'pending'`. ([@ghiculescu][]) * [#170](https://github.com/rubocop-hq/rubocop-performance/pull/170): Extend `Performance/Sum` to register an offense for `map { ... }.sum`. ([@eugeneius][]) * [#179](https://github.com/rubocop-hq/rubocop-performance/pull/179): Change `Performance/Sum` to warn about empty arrays, and not register an offense on empty array literals. ([@ghiculescu][]) * [#180](https://github.com/rubocop-hq/rubocop-performance/pull/180): Require RuboCop 0.90 or higher. ([@koic][]) diff --git a/config/default.yml b/config/default.yml index 6a33802fbf..7e1b4af215 100644 --- a/config/default.yml +++ b/config/default.yml @@ -51,7 +51,7 @@ Performance/ChainArrayAllocation: Performance/CollectionLiteralInLoop: Description: 'Extract Array and Hash literals outside of loops into local variables or constants.' - Enabled: true + Enabled: 'pending' VersionAdded: '1.8' # Min number of elements to consider an offense MinSize: 1 diff --git a/docs/modules/ROOT/pages/cops_performance.adoc b/docs/modules/ROOT/pages/cops_performance.adoc index cf8503ac7e..02d8ea74e9 100644 --- a/docs/modules/ROOT/pages/cops_performance.adoc +++ b/docs/modules/ROOT/pages/cops_performance.adoc @@ -284,7 +284,7 @@ array |=== | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged -| Enabled +| Pending | Yes | No | 1.8