lib/quality/rake/task.rb in quality-0.0.2 vs lib/quality/rake/task.rb in quality-0.0.3
- old
+ new
@@ -121,9 +121,12 @@
File.open(filename, 'w') {|f| f.write(violations.to_s) }
end
end
def quality_cane
+ if ! File.exist?(".cane")
+ File.open(".cane", "w") {|f| f.write("-f *.rb lib/*.rb test/*.rb")}
+ end
quality_quality_cmd("cane",
emacs_format: true) { |line|
if line =~ /\(([0-9]*)\):$/
$1.to_i
else