class Quality::Tools::Punchlist

Adds 'punchlist' tool support to quality gem

Public Instance Methods

punchlist_args() click to toggle source
# 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_punchlist() click to toggle source
# File lib/quality/tools/punchlist.rb, line 18
def quality_punchlist
  ratchet_quality_cmd('punchlist',
                      args: punchlist_args) do |_line|
    1
  end
end