Class: RuboCop::CLI::Command::AutoGenerateConfig
- Defined in:
- lib/rubocop/cli/command/auto_genenerate_config.rb
Overview
Generate a configuration file acting as a TODO list.
Constant Summary collapse
- PHASE_1 =
'Phase 1 of 2: run Layout/LineLength cop'
- PHASE_2 =
'Phase 2 of 2: run all cops'
- PHASE_1_OVERRIDDEN =
'(skipped because the default Layout/LineLength:Max is overridden)'
- PHASE_1_DISABLED =
'(skipped because Layout/LineLength is disabled)'
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
by_command_name, inherited, #initialize
Constructor Details
This class inherits a constructor from RuboCop::CLI::Command::Base
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 |
# File 'lib/rubocop/cli/command/auto_genenerate_config.rb', line 18 def run add_formatter reset_config_and_auto_gen_file line_length_contents = maybe_run_line_length_cop run_all_cops(line_length_contents) end |