CI: Check Ruby syntax for rake and rackup files
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
|
---|---|
How to set up and validate locally
- Run
scripts/lint/check_ruby_syntax.rb
$ scripts/lint/check_ruby_syntax.rb
Checking 34963 Ruby files...
No syntax errors found.
- Switch to
master
- 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