Sha256: 8b9163811f5d54106241b327136b4e8e7be162d52ea7688c1f04b7f0e575307a

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

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]*\)$/
            $1.to_i
          else
            0
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quality-14.0.0 lib/quality/tools/brakeman.rb