Skip to content

Use `stub_const` to avoid disabling cop RSpec/LeakyConstantDeclaration

Peter Leitzen requested to merge pl-rubocop-leaky-constant-declaration into master

What does this MR do?

We can use stub_const if we really need constants in specs but do not want to them to leak.

This MR also contains a unrelated change (separate commit) which fixes some revealed cop offenses.

Pro tip: Use export REVEAL_RUBOCOP_TODO=1

Contributes to #211580.

Does this MR meet the acceptance criteria?

Conformity

Edited by Peter Leitzen

Merge request reports