Sha256: c2f8daa90ca8ceb2d9e829a9f11a89ca38f56fac058c777cf1e8310ca57fa0b1

Contents?: true

Size: 724 Bytes

Versions: 14

Compression:

Stored size: 724 Bytes

Contents

# 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 source_files_exclude_glob == '{}'
          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

14 entries across 14 versions & 1 rubygems

Version Path
quality-32.1.1 lib/quality/tools/punchlist.rb
quality-32.1.0 lib/quality/tools/punchlist.rb
quality-32.0.0 lib/quality/tools/punchlist.rb
quality-31.3.0 lib/quality/tools/punchlist.rb
quality-31.2.1 lib/quality/tools/punchlist.rb
quality-31.2.0 lib/quality/tools/punchlist.rb
quality-31.1.0 lib/quality/tools/punchlist.rb
quality-31.0.0 lib/quality/tools/punchlist.rb
quality-30.0.1 lib/quality/tools/punchlist.rb
quality-30.0.0 lib/quality/tools/punchlist.rb
quality-29.0.0 lib/quality/tools/punchlist.rb
quality-28.0.0 lib/quality/tools/punchlist.rb
quality-27.4.0 lib/quality/tools/punchlist.rb
quality-27.3.1 lib/quality/tools/punchlist.rb