Sha256: a4de0e846f12a8b7e5e8e72741c3661e578e1cdca026407a66f48ee8fda4c9bb

Contents?: true

Size: 524 Bytes

Versions: 20

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

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

      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

20 entries across 20 versions & 1 rubygems

Version Path
quality-40.0.1 lib/quality/tools/bundle_audit.rb
quality-40.0.0 lib/quality/tools/bundle_audit.rb
quality-39.0.1 lib/quality/tools/bundle_audit.rb
quality-38.0.1 lib/quality/tools/bundle_audit.rb
quality-38.0.0 lib/quality/tools/bundle_audit.rb
quality-37.1.1 lib/quality/tools/bundle_audit.rb
quality-37.1.0 lib/quality/tools/bundle_audit.rb
quality-37.0.1 lib/quality/tools/bundle_audit.rb
quality-37.0.0 lib/quality/tools/bundle_audit.rb
quality-36.1.0 lib/quality/tools/bundle_audit.rb
quality-36.0.0 lib/quality/tools/bundle_audit.rb
quality-35.2.1 lib/quality/tools/bundle_audit.rb
quality-35.2.0 lib/quality/tools/bundle_audit.rb
quality-35.1.1 lib/quality/tools/bundle_audit.rb
quality-35.0.1 lib/quality/tools/bundle_audit.rb
quality-35.0.0 lib/quality/tools/bundle_audit.rb
quality-34.0.2 lib/quality/tools/bundle_audit.rb
quality-34.0.1 lib/quality/tools/bundle_audit.rb
quality-34.0.0 lib/quality/tools/bundle_audit.rb
quality-33.0.0 lib/quality/tools/bundle_audit.rb