Skip to content

CI: Check Ruby syntax for rake and rackup files

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

What does this MR do and why?

This MR enables scripts/lint/check_ruby_syntax.rb and CI to check Rake (*.rake) and Rackup files (*.ru) (137 more Ruby files!).

Screenshots

*.rake https://gitlab.com/gitlab-org/gitlab/-/pipelines/1161032028 *.ru https://gitlab.com/gitlab-org/gitlab/-/pipelines/1161033854
Screenshot_from_2024-02-01_18-10-37 Screenshot_from_2024-02-01_18-12-29

How to set up and validate locally

  1. Run scripts/lint/check_ruby_syntax.rb
$ scripts/lint/check_ruby_syntax.rb
Checking 34963 Ruby files...

No syntax errors found.
  1. Switch to master
  2. Run scripts/lint/check_ruby_syntax.rb
$ scripts/lint/check_ruby_syntax.rb
Checking 34826 Ruby files...

No syntax errors found.
Edited by Peter Leitzen

Merge request reports