Sha256: 6795ad5ac6ee7006c3ebec2766d6d05810115ee724635ce967082d299dbf8fdc
Contents?: true
Size: 728 Bytes
Versions: 2
Compression:
Stored size: 728 Bytes
Contents
require File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), 'examiner') module Reek module Cli # # A command to collect smells from a set of sources and write them out in # YAML format. # class YamlCommand def self.create(sources) examiners = sources.map {|src| Examiner.new(src) } new(examiners) end def initialize(examiners) @examiners = examiners end def execute(view) smells = [] @examiners.each {|examiner| smells += examiner.all_smells} if smells.empty? view.report_success else view.output(smells.to_yaml) view.report_smells end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-1.2.7.1 | lib/reek/cli/yaml_command.rb |
reek-1.2.7 | lib/reek/cli/yaml_command.rb |