Class: RuboCop::Gradual::CLI
- Inherits:
-
Object
- Object
- RuboCop::Gradual::CLI
- Defined in:
- lib/rubocop/gradual/cli.rb
Overview
CLI is a wrapper around RuboCop::CLI.
Instance Method Summary collapse
Instance Method Details
#run(argv = ARGV) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/rubocop/gradual/cli.rb', line 10 def run(argv = ARGV) Configuration.apply(*Options.new.parse(argv)) puts "Gradual mode: #{Configuration.mode}" if Configuration.debug? cmd = load_command(Configuration.command) return list_target_files(cmd) if Configuration.[:list_target_files] cmd.call.to_i end |