Skip to content

CI: Check Ruby syntax

Peter Leitzen requested to merge pl-check-ruby-syntax into master

What does this MR do and why?

This MR adds new CI jobs ruby_syntax (in all supported Ruby versions) and a new script scripts/lint/check_ruby_syntax.rb to check Ruby syntax for all Ruby files.

Closes #435940 (closed).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

scripts/lint/check_ruby_syntax.rb
Checking 34443 Ruby files...
No warnings.

Screenshots

3 new CI jobs in preflight stage
Screenshot_from_2024-01-26_16-12-54
https://gitlab.com/gitlab-org/gitlab/-/jobs/6029296629 🔴 https://gitlab.com/gitlab-org/gitlab/-/jobs/6029296607
Screenshot_from_2024-01-26_16-03-31 Screenshot_from_2024-01-26_16-02-59
Edited by Peter Leitzen

Merge request reports