Object
A command to collect smells from a set of sources and write them out in YAML format.
# File lib/reek/cli/yaml_command.rb, line 11 def self.create(sources, config_files) examiners = sources.map {|src| Examiner.new(src, config_files) } new(examiners) end
# File lib/reek/cli/yaml_command.rb, line 16 def initialize(examiners) @examiners = examiners end
# File lib/reek/cli/yaml_command.rb, line 20 def execute(view) smells = [] @examiners.each {|examiner| smells += examiner.smells} if smells.empty? view.report_success else view.output(smells.to_yaml) view.report_smells end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.