Class: Pronto::Reek
- Inherits:
-
Runner
- Object
- Runner
- Pronto::Reek
- Defined in:
- lib/pronto/reek.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
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 (smells).compact end |