Module: LintRoller Private

Defined in:
utils/test_prof_rubocop_stub.rb

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

TestProf's RuboCop plugin has two issues that we need to work around:

  1. It references RuboCop::TestProf::Plugin::VERSION, which does not exist. To solve this, we define the constant ourselves, which requires creating a dummy LintRoller::Plugin class. This should be fixed in the next version of TestProf. See: https://github.com/test-prof/test-prof/commit/a151a513373563ed8fa7f8e56193138d3ee9b5e3

  2. It checks the RuboCop version using a method that is incompatible with our RuboCop setup. To bypass this check, we need to manually require the necessary files. More details below.

Defined Under Namespace

Classes: Plugin