lib/quality/rake/task.rb in quality-0.1.1 vs lib/quality/rake/task.rb in quality-0.2.0

- old
+ new

@@ -67,11 +67,13 @@ self end def run_task quality_cane - quality_reek + if Gem::Specification.find_by_name("reek").any? + quality_reek + end quality_flog quality_flay quality_rubocop end @@ -127,10 +129,10 @@ end end def quality_cane if ! File.exist?(".cane") - File.open(".cane", "w") {|f| f.write("-f *.rb lib/*.rb test/*.rb")} + File.open(".cane", "w") {|f| f.write("-f {lib,test,.}/*.rb")} end ratchet_quality_cmd("cane", emacs_format: true) { |line| if line =~ /\(([0-9]*)\):$/ $1.to_i