Sha256: 2840efed6c018a4ac5c886fe840d2c95382929b487b9bf32eeba07995de38219

Contents?: true

Size: 715 Bytes

Versions: 15

Compression:

Stored size: 715 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'punchlist' tool support to quality gem
    class Punchlist < Tool
      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

15 entries across 15 versions & 1 rubygems

Version Path
quality-37.1.1 lib/quality/tools/punchlist.rb
quality-37.1.0 lib/quality/tools/punchlist.rb
quality-37.0.1 lib/quality/tools/punchlist.rb
quality-37.0.0 lib/quality/tools/punchlist.rb
quality-36.1.0 lib/quality/tools/punchlist.rb
quality-36.0.0 lib/quality/tools/punchlist.rb
quality-35.2.1 lib/quality/tools/punchlist.rb
quality-35.2.0 lib/quality/tools/punchlist.rb
quality-35.1.1 lib/quality/tools/punchlist.rb
quality-35.0.1 lib/quality/tools/punchlist.rb
quality-35.0.0 lib/quality/tools/punchlist.rb
quality-34.0.2 lib/quality/tools/punchlist.rb
quality-34.0.1 lib/quality/tools/punchlist.rb
quality-34.0.0 lib/quality/tools/punchlist.rb
quality-33.0.0 lib/quality/tools/punchlist.rb