class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment
to be used for cops that are disabled in the config file
This class provides an API compatible with RuboCop::DirectiveComment
def initialize(cop_name)
def initialize(cop_name) @text = "# rubocop:disable #{cop_name}" @line_number = CONFIG_DISABLED_LINE_RANGE_MIN @loc = Loc.new(Expression.new(CONFIG_DISABLED_LINE_RANGE_MIN)) end