class RuboCop::ConfigObsoletion::Rule
@api private
Abstract base class for ConfigObsoletion rules
def cop_rule?
def cop_rule? false end
def initialize(config)
def initialize(config) @config = config end
def parameter_rule?
def parameter_rule? false end
def smart_loaded_path
def smart_loaded_path PathUtil.smart_path(config.loaded_path) end
def to_sentence(collection, connector: 'and')
def to_sentence(collection, connector: 'and') return collection.first if collection.size == 1 [collection[0..-2].join(', '), collection[-1]].join(" #{connector} ") end
def violated?
def violated? raise NotImplementedError end