Sha256: c08f1d8efaab65f80bff3f88063971948e5db349e8868b274439ea143aa05c1e
Contents?: true
Size: 697 Bytes
Versions: 138
Compression:
Stored size: 697 Bytes
Contents
# 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
Version data entries
138 entries across 138 versions & 2 rubygems