Class: Quality::Tools::Flay
Overview
Adds ‘flay’ tool support to quality gem
Instance Method Summary collapse
Methods inherited from Tool
Constructor Details
This class inherits a constructor from Quality::Tools::Tool
Instance Method Details
#flay_args ⇒ Object
7 8 9 |
# File 'lib/quality/tools/flay.rb', line 7 def flay_args "--mass 75 --timeout 99999 #{ruby_files.join(' ')}" end |
#quality_flay ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/quality/tools/flay.rb', line 11 def quality_flay ratchet_quality_cmd('flay', args: flay_args, emacs_format: true) do |line| if line =~ /^[0-9]*\).* \(mass.* = ([0-9]*)\)$/ Regexp.last_match[1].to_i else 0 end end end |