Sha256: 160db2d100afa2b29aa9832f3feea356a0431638eca436a2957775e4ab9e35bb

Contents?: true

Size: 576 Bytes

Versions: 30

Compression:

Stored size: 576 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'rubocop' tool support to quality gem
    module Brakeman
      private

      def quality_brakeman
        ratchet_quality_cmd('brakeman',
                            args: '-q --summary -f csv 2>/dev/null',
                            gives_error_code_on_no_relevant_code:
                              true) do |line|
          if line =~ /Security Warnings,([0-9]*) \([0-9]*\)$/
            Regexp.last_match[1].to_i
          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/brakeman.rb
quality-32.1.0 lib/quality/tools/brakeman.rb
quality-32.0.0 lib/quality/tools/brakeman.rb
quality-31.3.0 lib/quality/tools/brakeman.rb
quality-31.2.1 lib/quality/tools/brakeman.rb
quality-31.2.0 lib/quality/tools/brakeman.rb
quality-31.1.0 lib/quality/tools/brakeman.rb
quality-31.0.0 lib/quality/tools/brakeman.rb
quality-30.0.1 lib/quality/tools/brakeman.rb
quality-30.0.0 lib/quality/tools/brakeman.rb
quality-29.0.0 lib/quality/tools/brakeman.rb
quality-28.0.0 lib/quality/tools/brakeman.rb
quality-27.4.0 lib/quality/tools/brakeman.rb
quality-27.3.1 lib/quality/tools/brakeman.rb
quality-27.3.0 lib/quality/tools/brakeman.rb
quality-27.2.0 lib/quality/tools/brakeman.rb
quality-27.1.1 lib/quality/tools/brakeman.rb
quality-27.1.0 lib/quality/tools/brakeman.rb
quality-27.0.0 lib/quality/tools/brakeman.rb
quality-26.0.0 lib/quality/tools/brakeman.rb