lib/quality/tools/punchlist.rb in quality-8.0.0 vs lib/quality/tools/punchlist.rb in quality-8.1.0

- old
+ new

@@ -2,12 +2,21 @@ module Tools # Adds 'punchlist' tool support to quality gem module Punchlist private + def punchlist_args + glob = "--glob '#{source_files_glob}'" + regexp = " --regexp '#{punchlist_regexp}'" if punchlist_regexp + + args = glob + args += regexp if regexp + args + end + def quality_punchlist ratchet_quality_cmd('punchlist', - args: "--glob '#{source_files_glob}'") do |_line| + args: punchlist_args) do |_line| 1 end end end end