[go: up one dir, main page]

Skip to content

Move push_rule.rb into the Repositories namespace

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Context

The following discussion from !54113 (merged) should be addressed:

  • @pslaughter started a discussion:

    Why did we add this to rubocop_manual_todo.yml?

    Without this, rubocop fails with:

    Screen_Shot_2021-02-13_at_2.35.18_PM

    The declarative_policy.rb module tries to resolve this policy class dynamically. For it to do so, the policy class needs to be in the same namespace as the corresponding class. I tried moving it into it's own namespace and use declarative_policy_class on push_rule.rb, but this also didn't work for me 😬

Edited by 🤖 GitLab Bot 🤖