A command to collect smells from a set of sources and write them out in text report format.
# File lib/reek/cli/reek_command.rb, line 21 def execute(view) had_smells = false @sources.each do |source| examiner = Examiner.new(source, @config_files) rpt = @report_class.new(examiner) had_smells ||= examiner.smelly? view.output(rpt.report) end if had_smells view.report_smells else view.report_success end end
Generated with the Darkfish Rdoc Generator 2.