Class: Quality::Tools::Punchlist

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

Overview

Adds ‘punchlist’ 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

#punchlist_argsObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/quality/tools/punchlist.rb', line 7

def punchlist_args
  glob = "--glob '#{source_and_doc_files_glob}'"
  regexp = " --regexp '#{punchlist_regexp}'" if punchlist_regexp
  exclude = " --exclude-glob '#{source_files_exclude_glob}'" unless source_files_exclude_glob == '{}'

  args = glob
  args += regexp if regexp
  args += exclude if exclude
  args
end

#quality_punchlistObject



18
19
20
21
22
23
# File 'lib/quality/tools/punchlist.rb', line 18

def quality_punchlist
  ratchet_quality_cmd('punchlist',
                      args: punchlist_args) do |_line|
    1
  end
end