Method: Quality::Tools::Punchlist#punchlist_args

Defined in:
lib/quality/tools/punchlist.rb

#punchlist_argsObject



7
8
9
10
11
12
13
14
15
16
17
18
# 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
  unless source_files_exclude_glob == '{}'
    exclude = " --exclude-glob '#{source_files_exclude_glob}'"
  end

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