class RuboCopConfigUpdater::CLI::Command::NoErrors

Public Class Methods

fixes_error?(stderr) click to toggle source
# File lib/rubocop_config_updater/cli/command/no_errors.rb, line 9
def self.fixes_error?(stderr)
  # raise stderr.length.to_s
  stderr.to_s.strip.length.zero?
end

Public Instance Methods

run() click to toggle source
# File lib/rubocop_config_updater/cli/command/no_errors.rb, line 14
def run
  puts "Didn't detect any errors with the following configuration:"
  puts "RuboCop command: #{options[:cmd]}"
  puts "RuboCop config path: #{options[:config_path]}"
  exit
end