Sha256: 2ffa6a1d9f2b9c9c7fe74be89408260eafb3622e9508fa7896e0c80f73728eed

Contents?: true

Size: 678 Bytes

Versions: 20

Compression:

Stored size: 678 Bytes

Contents

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
        if exclude_files.size > 0
          exclude = " --exclude-glob '#{source_files_exclude_glob}'"
        end

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

      def quality_punchlist
        ratchet_quality_cmd('punchlist',
                            args: punchlist_args) do |_line|
          1
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
quality-20.1.0 lib/quality/tools/punchlist.rb
quality-20.0.3 lib/quality/tools/punchlist.rb
quality-20.0.2 lib/quality/tools/punchlist.rb
quality-20.0.1 lib/quality/tools/punchlist.rb
quality-20.0.0 lib/quality/tools/punchlist.rb
quality-19.2.1 lib/quality/tools/punchlist.rb
quality-19.2.0 lib/quality/tools/punchlist.rb
quality-19.1.3 lib/quality/tools/punchlist.rb
quality-19.1.2 lib/quality/tools/punchlist.rb
quality-19.1.1 lib/quality/tools/punchlist.rb
quality-19.1.0 lib/quality/tools/punchlist.rb
quality-19.0.0 lib/quality/tools/punchlist.rb
quality-18.0.1 lib/quality/tools/punchlist.rb
quality-18.0.0 lib/quality/tools/punchlist.rb
quality-17.2.0 lib/quality/tools/punchlist.rb
quality-17.1.1 lib/quality/tools/punchlist.rb
quality-17.1.0 lib/quality/tools/punchlist.rb
quality-17.0.0 lib/quality/tools/punchlist.rb
quality-16.0.1 lib/quality/tools/punchlist.rb
quality-16.0.0 lib/quality/tools/punchlist.rb