Exception: RubocopPlus::Commands::IncorrectYml

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

Overview

The rubo command performs some sanity checking to make sure the current application is using a well defined .rubocop.yml. It problems are found, an IncorrectYml error is raised.

Instance Method Summary collapse

Instance Method Details

#messageObject



6
7
8
9
10
11
12
13
# File 'lib/commands/rubo/errors/incorrect_yml.rb', line 6

def message
  "\n" \
  "  The .rubocop.yml file does not appear to have the correct configuration to read from the\n" \
  "  rubocop_plus gem.  To correct the problem:\n" \
  "    1. Rename your existing .rubocop.yml to .rubocop.yml.bak\n" \
  "    2. Run the installer to generate a fresh .rubocop.yml\n" \
  "       rubo --init\n\n".rubo_red
end