Class: Avm::Files::Formatter::Formats::Ruby

Inherits:
GenericPlain show all
Defined in:
lib/avm/files/formatter/formats/ruby.rb

Constant Summary collapse

VALID_BASENAMES =
%w[*.gemspec *.rake *.rb Gemfile Rakefile].freeze
VALID_TYPES =
['x-ruby'].freeze

Instance Method Summary collapse

Methods inherited from GenericPlain

#file_apply, #string_apply

Methods inherited from Base

#apply, #match?, #name, #valid_basenames, #valid_types

Instance Method Details

#internal_apply(files) ⇒ Object



14
15
16
17
# File 'lib/avm/files/formatter/formats/ruby.rb', line 14

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