class RuboCop::Plugin::NotSupportedError
An exception raised when a plugin is not supported by the RuboCop
engine. @api private
Public Class Methods
Source
# File lib/rubocop/plugin/not_supported_error.rb, line 8 def initialize(unsupported_plugins) super @unsupported_plugins = unsupported_plugins end
Calls superclass method
Public Instance Methods
Source
# 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