Class: Pronto::Reek
- Inherits:
-
Runner
- Object
- Runner
- Pronto::Reek
- Defined in:
- lib/pronto/reek.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pronto/reek.rb', line 8 def run files = ruby_patches.map do |patch| patch.new_file_full_path.relative_path_from(Pathname.pwd) end configuration = ::Reek::Configuration::AppConfiguration.from_path(nil) smells = files.flat_map do |file| ::Reek::Examiner.new(file, configuration: configuration).smells end (smells).compact end |