Code Quality CI template does not support ruby 3.0
Summary
Jobs/Code-Quality.gitlab-ci.yml
does not support Ruby 3.0
Steps to reproduce
- Include
Jobs/Code-Quality.gitlab-ci.yml
in your.gitlab-ci.yml
in a ruby project where.ruby-version
file is set to3.0.0
- Run a pipeline
Example Project
The rails project template is affected https://gitlab.com/gitlab-org/project-templates/rails, see https://gitlab.com/gitlab-org/project-templates/rails/-/jobs/1233814801
What is the current bug behavior?
The code_quality
job fails with
/usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config.rb:510:in `check_target_ruby': Unknown Ruby version 3.0 found in `.ruby-version`. (RuboCop::ValidationError)
Supported versions: 2.1, 2.2, 2.3, 2.4, 2.5
What is the expected correct behavior?
The job should recognize the ruby version.
Output of checks
This bug happens on GitLab.com
Possible fixes
Update the rubocop gem used by the codequality tool
Edited by Hordur Freyr Yngvason