Sha256: 4a3062dcc9ebf33676d636e533c5fe77a270b6cd1d2385158b3624d532d816c2

Contents?: true

Size: 478 Bytes

Versions: 23

Compression:

Stored size: 478 Bytes

Contents

module Quality
  module Tools
    # Adds 'flay' tool support to quality gem
    module Flay
      private

      def quality_flay
        ratchet_quality_cmd('flay',
                            args: "--mass 75 --timeout 99999 #{ruby_files}",
                            emacs_format: true) do |line|
          if line =~ /^[0-9]*\).* \(mass = ([0-9]*)\)$/
            Regexp.last_match[1].to_i
          else
            0
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
quality-14.0.0 lib/quality/tools/flay.rb
quality-13.0.0 lib/quality/tools/flay.rb
quality-12.0.0 lib/quality/tools/flay.rb
quality-11.0.0 lib/quality/tools/flay.rb
quality-10.0.0 lib/quality/tools/flay.rb
quality-9.0.0 lib/quality/tools/flay.rb
quality-8.1.1 lib/quality/tools/flay.rb
quality-8.1.0 lib/quality/tools/flay.rb
quality-8.0.0 lib/quality/tools/flay.rb
quality-7.0.0 lib/quality/tools/flay.rb
quality-6.0.0 lib/quality/tools/flay.rb
quality-5.0.1 lib/quality/tools/flay.rb
quality-5.0.0 lib/quality/tools/flay.rb
quality-4.0.2 lib/quality/tools/flay.rb
quality-4.0.1 lib/quality/tools/flay.rb
quality-4.0.0 lib/quality/tools/flay.rb
quality-3.1.0 lib/quality/tools/flay.rb
quality-3.0.0 lib/quality/tools/flay.rb
quality-2.1.1 lib/quality/tools/flay.rb
quality-2.1.0 lib/quality/tools/flay.rb