Sha256: 0f5c5bab9aa190e7188eaf44043d5df6147367fe974cbe4f448e490d6f3ba8d9
Contents?: true
Size: 672 Bytes
Versions: 24
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true require 'avm/tools/core_ext' require 'avm/ruby/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::Ruby::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
24 entries across 24 versions & 1 rubygems