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-25.0.0 lib/quality/tools/bigfiles.rb
quality-24.0.0 lib/quality/tools/bigfiles.rb
quality-23.0.7 lib/quality/tools/bigfiles.rb
quality-23.0.6 lib/quality/tools/bigfiles.rb
quality-23.0.5 lib/quality/tools/bigfiles.rb
quality-23.0.4 lib/quality/tools/bigfiles.rb
quality-23.0.3 lib/quality/tools/bigfiles.rb
quality-23.0.2 lib/quality/tools/bigfiles.rb
quality-23.0.1 lib/quality/tools/bigfiles.rb
quality-23.0.0 lib/quality/tools/bigfiles.rb