Exception: RubocopPlus::Commands::MissingYml

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

Overview

The rubo command performs some sanity checking to make sure the current application is using a well defined .rubocop.yml. If the .rubocop.yml file is missing, a MissingYml error is raised.

Instance Method Summary collapse

Instance Method Details

#messageObject



6
7
8
9
# File 'lib/commands/rubo/errors/missing_yml.rb', line 6

def message
  "\n  The application does not have a .rubocop.yml file.  Run the installer to generate one:\n" \
  "    rubo --init\n\n".rubo_red
end