Sha256: c52c3f5683cabc1514cb95c3ec0de2836dbcecc71eb1a107939503355d1c0943

Contents?: true

Size: 502 Bytes

Versions: 2

Compression:

Stored size: 502 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
quality-22.0.0 lib/quality/tools/bundle_audit.rb
quality-21.0.6 lib/quality/tools/bundle_audit.rb