Rubocop for project.disk_path + '.wiki'

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

  • Close this issue

The following discussion from gitlab-ce!14930 should be addressed:

  • @DouweM started a discussion: (+1 comment)

    I wonder how hard it would be to write a rubocop that detects new instances of "#{foo}.wiki" or foo + ".wiki", and points the developer towards the (obviously superior) helper method.

    If we don't, I imagine we'll have at least 2 more of these slip in before the end of the year, because not everyone (developers and reviewers) is aware of the wiki.disk_path helper.

    Wdyt? :)

Edited Aug 25, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading