Class: Quality::Tools::Bigfiles

Inherits:
Tool
  • Object
show all
Defined in:
lib/quality/tools/bigfiles.rb

Overview

Adds ‘bigfiles’ tool support to quality gem

Instance Method Summary collapse

Methods inherited from Tool

#initialize

Constructor Details

This class inherits a constructor from Quality::Tools::Tool

Instance Method Details

#bigfiles_argsObject



9
10
11
12
13
# File 'lib/quality/tools/bigfiles.rb', line 9

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

#quality_bigfilesObject



15
16
17
18
19
20
# File 'lib/quality/tools/bigfiles.rb', line 15

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