Skip to content

Update rubocop target ruby version to match current ruby version

Steve Abrams requested to merge update-rubocop-ruby-version into master

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(&) over def foo(&block).

Author Check-list

  • [-] Has documentation been updated?
Edited by Steve Abrams

Merge request reports