class RuboCop::CLI::Command::AutoGenerateConfig
def relative_path_to_todo_from_options_config
def relative_path_to_todo_from_options_config return AUTO_GENERATED_FILE if !@options[:config] || options_config_in_root? base = Pathname.new('.') config_dir = Pathname.new(File.dirname(@options[:config])) "#{base.relative_path_from(config_dir)}/#{AUTO_GENERATED_FILE}" end