Skip to content

Enable RSpec/HooksBeforeExamples cop

Max Orefice requested to merge morefice/enable-before-hook-cop into master

Ref: #42182 (closed)

What does this MR do and why?

This MR enables the RSpec/HooksBeforeExamples cop, which is enabled by default in rubocop-rspec. In a follow-up MR, we can run the auto-correction which should take care of the existing offenses.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports