Class: Quality::Tools::Punchlist
- Defined in:
- lib/quality/tools/punchlist.rb
Overview
Adds ‘punchlist’ tool support to quality gem
Instance Method Summary collapse
Methods inherited from Tool
Constructor Details
This class inherits a constructor from Quality::Tools::Tool
Instance Method Details
#punchlist_args ⇒ Object
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 |
#quality_punchlist ⇒ Object
20 21 22 23 24 25 |
# File 'lib/quality/tools/punchlist.rb', line 20 def quality_punchlist ratchet_quality_cmd('punchlist', args: punchlist_args) do |_line| 1 end end |