Skip to content

lefthook: Run RuboCop on files related to Ruby

Peter Leitzen requested to merge pl-lefthook-ruby-files into master

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

  1. Introduce an offense to Dangefile or similar
  2. Try to commit git commit
  3. See lefthook fail due to rubocop 🎉
Edited by Peter Leitzen

Merge request reports