# frozen_string_literal: true require 'avm/eac_ruby_base1/rubocop' require 'eac_cli/core_ext' module Avm module EacRubyBase1 module Runners class Base class Rubocop runner_with :help do desc 'Runs Rubocop (https://rubygems.org/gems/rubocop).' arg_opt '-C', 'Caminho para executar o Rubocop [default: .].' pos_arg :rubocop_args, repeat: true, optional: true end def run ::Avm::EacRubyBase1::Rubocop.new(path, parsed.rubocop_args).run end private def path ::Pathname.new(parsed.c || '.').expand_path end end end end end end