Sha256: bb07c9a6393fadeb59829a1542764b1412b76c911e9556d6e691ce442b326db5
Contents?: true
Size: 690 Bytes
Versions: 45
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true require 'avm/tools/core_ext' require 'avm/eac_ruby_base1/rubocop' module Avm module Tools class Runner class Ruby 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
Version data entries
45 entries across 45 versions & 2 rubygems