lib/quality/tools/flay.rb in quality-14.0.0 vs lib/quality/tools/flay.rb in quality-14.1.0

- old
+ new

@@ -2,14 +2,18 @@ module Tools # Adds 'flay' tool support to quality gem module Flay private + def flay_args + "--mass 75 --timeout 99999 #{ruby_files.join(' ')}" + end + def quality_flay ratchet_quality_cmd('flay', - args: "--mass 75 --timeout 99999 #{ruby_files}", + args: flay_args, emacs_format: true) do |line| - if line =~ /^[0-9]*\).* \(mass = ([0-9]*)\)$/ + if line =~ /^[0-9]*\).* \(mass.* = ([0-9]*)\)$/ Regexp.last_match[1].to_i else 0 end end