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

Version Path
eac_tools-0.20.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.19.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.18.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.131.0 lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.130.0 lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.17.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.129.1 lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.16.1 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.129.0 lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.16.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.128.0 lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.15.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.14.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.13.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.127.0 lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.12.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.126.0 lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.11.1 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
avm-tools-0.125.0 lib/avm/tools/runner/ruby/rubocop.rb
eac_tools-0.11.0 sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb