Update rubocop target ruby version to match current ruby version
What does this MR do and why?
This updates the rubocop TargetRubyVersion
to match the currently used version of 3.2.2.
The changes were all automatically applied using rubocop -a
. Most of them are:
- Using
.filter_map
instead of.map{}.compact
- Freezing constants
- Unfreezing constants that are already implicitly frozen
- Using the anonymous block shorthand
def foo(&)
overdef foo(&block)
.
Author Check-list
- [-] Has documentation been updated?
Edited by Steve Abrams