Skip to content

RuboCop: Hardcode Ruby target version

Peter Leitzen requested to merge pl-rubocop-ruby-target-version into master

What does this MR do and why?

Inferring target version from currently running Ruby have caused failing pipelines on support branches in the past.

How to set up and validate locally

ruby -v
ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x86_64-linux]

bundle exec ruby -rrubocop -e "p RuboCop::ConfigStore.new.for_file('.').target_ruby_version"
3.0
Edited by Peter Leitzen

Merge request reports