Sha256: eff820cef8777101862879741a3db372a418242edd6334df2d5cb762b98065c9

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

#!/usr/bin/env ruby

require 'rubocop_auto_corrector/cli'
require 'rubocop_auto_corrector/version'
require 'optparse'

opt = OptionParser.new
params = {
  auto_correct_count: 2
}

Version = RubocopAutoCorrector::VERSION
opt.on('--auto-correct-count COUNT', 'Run `rubocop --auto-correct` and `git commit` for this number of times. (default. 2)') { |v| params[:auto_correct_count] = v.to_i }

opt.parse!(ARGV)

cli = RubocopAutoCorrector::CLI.new

params[:auto_correct_count].times do
  cli.perform
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop_auto_corrector-0.2.0 exe/rubocop_auto_corrector
rubocop_auto_corrector-0.1.0 exe/rubocop_auto_corrector
rubocop_auto_corrector-0.1.0.beta2 exe/rubocop_auto_corrector
rubocop_auto_corrector-0.1.0.beta1 exe/rubocop_auto_corrector