Sha256: 39f22106738412cf7fc2e3bd0d816cf327279c29d767885d3393e7e0633a68e4

Contents?: true

Size: 573 Bytes

Versions: 120

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

require 'avm/files/formatter/formats/generic_plain'
require 'avm/ruby/rubocop'

module Avm
  module Files
    class Formatter
      module Formats
        class Ruby < ::Avm::Files::Formatter::Formats::GenericPlain
          VALID_BASENAMES = %w[*.gemspec *.rake *.rb Gemfile Rakefile].freeze
          VALID_TYPES = ['x-ruby'].freeze

          def internal_apply(files)
            ::Avm::Ruby::Rubocop.new('.', ['-a', '--ignore-parent-exclusion'] + files).run
            super(files)
          end
        end
      end
    end
  end
end

Version data entries

120 entries across 120 versions & 3 rubygems

Version Path
avm-files-0.3.1 lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.116.1 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.116.0 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.115.0 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.114.2 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-files-0.3.0 lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.114.1 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.114.0 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-files-0.2.1 lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.113.6 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.113.5 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.113.4 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.113.3 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.113.2 sub/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-files-0.2.0 lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.110.0 vendor/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.109.1 vendor/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-files-0.1.0 lib/avm/files/formatter/formats/ruby.rb
avm-tools-0.109.0 vendor/avm-files/lib/avm/files/formatter/formats/ruby.rb
avm-0.5.0 lib/avm/files/formatter/formats/ruby.rb