lib/quality/tools/punchlist.rb in quality-22.0.0 vs lib/quality/tools/punchlist.rb in quality-23.0.0
- old
+ new
@@ -1,14 +1,16 @@
+# frozen_string_literal: true
+
module Quality
module Tools
# Adds 'punchlist' tool support to quality gem
module Punchlist
private
def punchlist_args
glob = "--glob '#{source_and_doc_files_glob}'"
regexp = " --regexp '#{punchlist_regexp}'" if punchlist_regexp
- unless exclude_files.empty?
+ unless exclude_files.nil? || exclude_files.empty?
exclude = " --exclude-glob '#{source_files_exclude_glob}'"
end
args = glob
args += regexp if regexp