Class: Pronto::Reek

Inherits:
Runner
  • Object
show all
Defined in:
lib/pronto/reek.rb

Instance Method Summary collapse

Instance Method Details

#runObject



6
7
8
9
10
11
12
13
14
# File 'lib/pronto/reek.rb', line 6

def run
  files = ruby_patches.map(&:new_file_full_path)
  configuration = ::Reek::Configuration::AppConfiguration.from_path(nil)

  smells = files.flat_map do |file|
    ::Reek::Examiner.new(file, configuration: configuration).smells
  end
  messages_for(smells).compact
end