Sha256: 59ea39bd8f6ce4a85022abb3af6e8c1535c5f5296fe95a5153bfc63a687b9fca

Contents?: true

Size: 533 Bytes

Versions: 30

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'bundler_audit' tool support to quality gem
    module BundleAudit
      def self.command_name
        'bundle-audit'
      end

      private

      def quality_bundle_audit
        ratchet_quality_cmd('bundle-audit',
                            args: '',
                            gives_error_code_on_violations: true) do |line|
          if line =~ /^Name: /
            1
          else
            0
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
quality-32.1.1 lib/quality/tools/bundle_audit.rb
quality-32.1.0 lib/quality/tools/bundle_audit.rb
quality-32.0.0 lib/quality/tools/bundle_audit.rb
quality-31.3.0 lib/quality/tools/bundle_audit.rb
quality-31.2.1 lib/quality/tools/bundle_audit.rb
quality-31.2.0 lib/quality/tools/bundle_audit.rb
quality-31.1.0 lib/quality/tools/bundle_audit.rb
quality-31.0.0 lib/quality/tools/bundle_audit.rb
quality-30.0.1 lib/quality/tools/bundle_audit.rb
quality-30.0.0 lib/quality/tools/bundle_audit.rb
quality-29.0.0 lib/quality/tools/bundle_audit.rb
quality-28.0.0 lib/quality/tools/bundle_audit.rb
quality-27.4.0 lib/quality/tools/bundle_audit.rb
quality-27.3.1 lib/quality/tools/bundle_audit.rb
quality-27.3.0 lib/quality/tools/bundle_audit.rb
quality-27.2.0 lib/quality/tools/bundle_audit.rb
quality-27.1.1 lib/quality/tools/bundle_audit.rb
quality-27.1.0 lib/quality/tools/bundle_audit.rb
quality-27.0.0 lib/quality/tools/bundle_audit.rb
quality-26.0.0 lib/quality/tools/bundle_audit.rb