lefthook: Run RuboCop on files related to Ruby
What does this MR do and why?
For example: Dangerfile, Gemfile, Rakefile.
Follow-up of !148627 (comment 1845470938) where a RuboCop failure in Dangerfile
was not caught in lefthook but should have.
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
- Introduce an offense to
Dangefile
or similar - Try to commit
git commit
- See
lefthook
fail due torubocop
🎉
Edited by Peter Leitzen