Sha256: 8604cd78f4ef018ac9741abb8d0316e21f1072879cf5ba07994d5d67ee06df70

Contents?: true

Size: 596 Bytes

Versions: 30

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'bigfiles' tool support to quality gem
    module Bigfiles
      private

      def bigfiles_args
        args = ['--glob', "'#{source_and_doc_files_glob}'"]
        unless source_files_exclude_glob == '{}'
          args << ['--exclude-glob', "'#{source_files_exclude_glob}'"]
        end
        args.join(' ')
      end

      def quality_bigfiles
        ratchet_quality_cmd('bigfiles',
                            args: bigfiles_args) do |line|
          line.split(':')[0].to_i
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
quality-32.1.1 lib/quality/tools/bigfiles.rb
quality-32.1.0 lib/quality/tools/bigfiles.rb
quality-32.0.0 lib/quality/tools/bigfiles.rb
quality-31.3.0 lib/quality/tools/bigfiles.rb
quality-31.2.1 lib/quality/tools/bigfiles.rb
quality-31.2.0 lib/quality/tools/bigfiles.rb
quality-31.1.0 lib/quality/tools/bigfiles.rb
quality-31.0.0 lib/quality/tools/bigfiles.rb
quality-30.0.1 lib/quality/tools/bigfiles.rb
quality-30.0.0 lib/quality/tools/bigfiles.rb
quality-29.0.0 lib/quality/tools/bigfiles.rb
quality-28.0.0 lib/quality/tools/bigfiles.rb
quality-27.4.0 lib/quality/tools/bigfiles.rb
quality-27.3.1 lib/quality/tools/bigfiles.rb
quality-27.3.0 lib/quality/tools/bigfiles.rb
quality-27.2.0 lib/quality/tools/bigfiles.rb
quality-27.1.1 lib/quality/tools/bigfiles.rb
quality-27.1.0 lib/quality/tools/bigfiles.rb
quality-27.0.0 lib/quality/tools/bigfiles.rb
quality-26.0.0 lib/quality/tools/bigfiles.rb