Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lift the deprecation from
ArrayNode#each_value
This PR lifts the deprecation from `ArrayNode#each_value` for the following reasons: 1. `HashNode#each_value` and `HashNode#each_key` are not deprecated. - `HashNode#each_value` ... https://github.com/rubocop/rubocop-ast/blob/v1.31.3/lib/rubocop/ast/node/hash_node.rb#L76-L89 - `HashNode#each_key` ... https://github.com/rubocop/rubocop-ast/blob/v1.31.3/lib/rubocop/ast/node/hash_node.rb#L52-L65 2. `node.values.each` is recommended by `Style/HashEachMethods` cop to be replaced with `each_value` instead of `values.each`. And `node.each_value do |value|` is clearer in intent than `node.children.each do |value|`. Since it is a soft deprecation in documentation only, it has not been added to the changelog.
- Loading branch information