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-25.0.0 lib/quality/tools/bundle_audit.rb
quality-24.0.0 lib/quality/tools/bundle_audit.rb
quality-23.0.7 lib/quality/tools/bundle_audit.rb
quality-23.0.6 lib/quality/tools/bundle_audit.rb
quality-23.0.5 lib/quality/tools/bundle_audit.rb
quality-23.0.4 lib/quality/tools/bundle_audit.rb
quality-23.0.3 lib/quality/tools/bundle_audit.rb
quality-23.0.2 lib/quality/tools/bundle_audit.rb
quality-23.0.1 lib/quality/tools/bundle_audit.rb
quality-23.0.0 lib/quality/tools/bundle_audit.rb