Move rubocop:docs rake task components to their own class

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

In !183851 (merged) we introduced a Rake task rubocop:docs to generate documentation for our RuboCop rules. Currently the Rake task does too much and is not thoroughly tested.

We should refactor the rake task, and extract parts to a separate well tested builder/procedural pattern class.

Edited by 🤖 GitLab Bot 🤖