Skip to content

Bump rubocop engine default version

What does this MR do?

The stable channel used by default uses rubocop v0.52.1 which is from 3 years ago and only supports Ruby projects (TargetRubyVersion, .ruby_version) upto MRI 2.5 as per: https://docs.rubocop.org/rubocop/1.9/compatibility.html#support-matrix

This change specifies a manual version channel to use, bringing in rubocop v0.92, which supports Ruby 2.4, 2.5, 2.6, 2.7, and 3.0 (but drops 2.1, 2.2, and 2.3 that the stable channel supported via v0.52.1)

A manual override in PROJECT/.codeclimate.yml can be done if projects would like to use older Ruby versions in Codeclimate checks, but with this change the defaults cover a more recent spread of Ruby versions in use (GitLab has been on 2.7+ for a while, as an example).

What are the relevant issue numbers?

Fixes #28 (closed)

cc @drewcimino @iamricecake @morefice

Edited by Harsh Chouraria

Merge request reports

Loading