Skip to content
Snippets Groups Projects

Work around RubyMine usability/productivity problems related to RuboCop Gitlab/NamespacedClass cop

Merged Chad Woolley requested to merge caw-enable-rubocop-namespace-exclusion into master

What does this MR do and why?

This MR is related to the remaining unfixed Gitlab/NamespacedClass cop warnings and their interaction with the REVEAL_RUBOCOP_TODO functionality you added in !53162 (diffs)

In the RubyMine IDE, there's no way to selectively disable individual cops for the RuboCop plugin, which results in every single model and lib class having every line of the entire file underlined as an error.

This is not only hard to read, it masks all other warnings and errors within the class. Example:

Example of visual usability problems and masked warnings:

How to set up and validate locally

Open lib/gitlab/fips.rb in RubyMine, see that the visual problems no longer exist.

MR acceptance checklist

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

Edited by Chad Woolley

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Peter Leitzen removed review request for @splattael

    removed review request for @splattael

  • Chad Woolley mentioned in commit ba8a1b9b

    mentioned in commit ba8a1b9b

  • Chad Woolley added 1 commit

    added 1 commit

    • ba8a1b9b - Fix RubyMine usability related to Rubocop

    Compare with previous version

  • Chad Woolley mentioned in commit b0f7f565

    mentioned in commit b0f7f565

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading