lib/generators/reek.rb in metric_fu-2.0.0 vs lib/generators/reek.rb in metric_fu-2.0.1
- old
+ new
@@ -1,9 +1,9 @@
module MetricFu
-
+
class Reek < Generator
REEK_REGEX = /^(\S+) (.*) \((.*)\)$/
-
+
def emit
files_to_reek = MetricFu.reek[:dirs_to_reek].map{|dir| Dir[File.join(dir, "**/*.rb")] }
files = remove_excluded_files(files_to_reek.flatten)
config_file_param = MetricFu.reek[:config_file_pattern] ? "--config #{MetricFu.reek[:config_file_pattern]}" : ''
@output = `reek #{config_file_param} #{files.join(" ")}`