diff --git a/config/default.yml b/config/default.yml index 68a3f289f4d..5e6bc7f5e0d 100644 --- a/config/default.yml +++ b/config/default.yml @@ -2820,11 +2820,13 @@ Style/HashSyntax: Style/HashTransformKeys: Description: 'Prefer `transform_keys` over `each_with_object` and `map`.' Enabled: 'pending' + VersionAdded: '0.80' Safe: false Style/HashTransformValues: Description: 'Prefer `transform_values` over `each_with_object` and `map`.' Enabled: 'pending' + VersionAdded: '0.80' Safe: false Style/IdenticalConditionalBranches: diff --git a/manual/cops_style.md b/manual/cops_style.md index 04af2809eb6..74d1c4459a1 100644 --- a/manual/cops_style.md +++ b/manual/cops_style.md @@ -2532,7 +2532,7 @@ PreferHashRocketsForNonAlnumEndingSymbols | `false` | Boolean Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged --- | --- | --- | --- | --- -Pending | No | Yes (Unsafe) | - | - +Pending | No | Yes (Unsafe) | 0.80 | - This cop looks for uses of `_.each_with_object({}) {...}`, `_.map {...}.to_h`, and `Hash[_.map {...}]` that are actually just @@ -2562,7 +2562,7 @@ This cop should only be enabled on Ruby version 2.5 or newer Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged --- | --- | --- | --- | --- -Pending | No | Yes (Unsafe) | - | - +Pending | No | Yes (Unsafe) | 0.80 | - This cop looks for uses of `_.each_with_object({}) {...}`, `_.map {...}.to_h`, and `Hash[_.map {...}]` that are actually just