Sha256: d3c5536e04f9f939c7b8e7affe294e0e555ec28a0e6838a90c3be43060c8bf9a
Contents?: true
Size: 729 Bytes
Versions: 2
Compression:
Stored size: 729 Bytes
Contents
require 'reek/examiner' module Reek module Cli # # A command to collect smells from a set of sources and write them out in # text report format. # class ReekCommand def self.create(sources, reporter, config_files = []) new(reporter, sources, config_files) end def initialize(reporter, sources, config_files = []) @sources = sources @reporter = reporter @config_files = config_files end def execute(app) @sources.each do |source| @reporter.add_examiner(Examiner.new(source, @config_files)) end @reporter.has_smells? ? app.report_smells : app.report_success @reporter.show end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-1.3.8 | lib/reek/cli/reek_command.rb |
reek-1.3.7 | lib/reek/cli/reek_command.rb |