Exception: RubocopPlus::Commands::NoRubocopCommand

Inherits:
StandardError
  • Object
show all
Defined in:
lib/commands/rubo/errors/no_rubocop_command.rb

Overview

The rubo command will check to make sure the ‘rubocop` command exists. When users install rubocop_plus, rubocop_plus will automatically install a version of rubocop. Users may delete rubocop at a later time. If rubocop isn’t available on the system, NoRubocopCommand will be raised.

Instance Method Summary collapse

Instance Method Details

#messageObject



7
8
9
10
11
# File 'lib/commands/rubo/errors/no_rubocop_command.rb', line 7

def message
  "\n" \
  "  The 'rubocop' command is not available.  Is the rubocop gem installed?  Verify by executing\n" \
  "  'gem list rubocop'.  If rubocop is not listed, reinstall rubocop_plus.\n\n".rubo_red
end