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 @config_store.options_config = @options[:config] if @options[:config] # Save the todo configuration of the LineLength cop. File.read(AUTO_GENERATED_FILE).lines.drop_while { |line| line.start_with?('#') }.join end