Enforce Style/SymbolProc for `Hash::transform_keys`
the Style/SymbolProc
cop did not catch the following example below:
some_hash.transform_keys { |k| t.to_s }
which can be eta-converted to:
some_hash.transform_keys(&:to_s)
But was caught by the poor human doing code review (thanks @DouweM!).
Humans should not be making such mechanical judgements - that's what machines are for - and Hash::transform_keys
should be handled exactly as Array::map
is, since it is simply a map
over keys.
-
Mention the proposal in the next backend weekly call and the #backend channel to encourage contribution -
Proceed with the proposal once 50% of the maintainers have weighed in, and 80% of the votes are 👍 -
Once approved, mention it again in the next backend weekly call and the #backend channel