Sha256: cd6e274da55cdd6aab8456d8052086db60b2298ed9e4a48e9c68945550c57536

Contents?: true

Size: 733 Bytes

Versions: 16

Compression:

Stored size: 733 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 exclude_files.nil? || exclude_files.empty?
          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

16 entries across 16 versions & 1 rubygems

Version Path
quality-27.3.0 lib/quality/tools/punchlist.rb
quality-27.2.0 lib/quality/tools/punchlist.rb
quality-27.1.1 lib/quality/tools/punchlist.rb
quality-27.1.0 lib/quality/tools/punchlist.rb
quality-27.0.0 lib/quality/tools/punchlist.rb
quality-26.0.0 lib/quality/tools/punchlist.rb
quality-25.0.0 lib/quality/tools/punchlist.rb
quality-24.0.0 lib/quality/tools/punchlist.rb
quality-23.0.7 lib/quality/tools/punchlist.rb
quality-23.0.6 lib/quality/tools/punchlist.rb
quality-23.0.5 lib/quality/tools/punchlist.rb
quality-23.0.4 lib/quality/tools/punchlist.rb
quality-23.0.3 lib/quality/tools/punchlist.rb
quality-23.0.2 lib/quality/tools/punchlist.rb
quality-23.0.1 lib/quality/tools/punchlist.rb
quality-23.0.0 lib/quality/tools/punchlist.rb