class RuboCop::CLI::Command::AutoGenerateConfig
def run_line_length_cop
depend on Layout/LineLength:Max get the correct value for that
Do an initial run with only Layout/LineLength so that cops that
def run_line_length_cop puts Rainbow(PHASE_1).yellow @options[:only] = ['Layout/LineLength'] execute_runner @options.delete(:only) @config_store = ConfigStore.new # Save the todo configuration of the LineLength cop. IO.read(AUTO_GENERATED_FILE) .lines .drop_while { |line| line.start_with?('#') } .join end