Sha256: 30abd52d045eb8e9590f730156e342801fe3da50f636a38337a6f9a9da220e51

Contents?: true

Size: 587 Bytes

Versions: 11

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'bigfiles' tool support to quality gem
    class Bigfiles < Tool
      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

11 entries across 11 versions & 1 rubygems

Version Path
quality-36.1.0 lib/quality/tools/bigfiles.rb
quality-36.0.0 lib/quality/tools/bigfiles.rb
quality-35.2.1 lib/quality/tools/bigfiles.rb
quality-35.2.0 lib/quality/tools/bigfiles.rb
quality-35.1.1 lib/quality/tools/bigfiles.rb
quality-35.0.1 lib/quality/tools/bigfiles.rb
quality-35.0.0 lib/quality/tools/bigfiles.rb
quality-34.0.2 lib/quality/tools/bigfiles.rb
quality-34.0.1 lib/quality/tools/bigfiles.rb
quality-34.0.0 lib/quality/tools/bigfiles.rb
quality-33.0.0 lib/quality/tools/bigfiles.rb