123456789_123456789_123456789_123456789_123456789_

Exception: RuboCop::Plugin::NotSupportedError Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::RuboCop::Error, StandardError
Instance Chain:
self, ::RuboCop::Error, StandardError
Inherits: RuboCop::Error
  • Object
Defined in: lib/rubocop/plugin/not_supported_error.rb

Overview

An exception raised when a plugin is not supported by the RuboCop engine.

Class Method Summary

Instance Method Summary

Instance Method Details

#message

[ GitHub ]

  
# File 'lib/rubocop/plugin/not_supported_error.rb', line 14

def message
  if @unsupported_plugins.one?
    about = @unsupported_plugins.first.about

    "#{about.name} #{about.version} is not a plugin supported by RuboCop engine."
  else
    unsupported_plugin_names = @unsupported_plugins.map do |plugin|
      "#{plugin.about.name} #{plugin.about.version}"
    end.join(', ')

    "#{unsupported_plugin_names} are not plugins supported by RuboCop engine."
  end
end