Sha256: be5fef0d5394c339d91335fbc20e311e2e3189b33786d3892998a3039621d266

Contents?: true

Size: 545 Bytes

Versions: 32

Compression:

Stored size: 545 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]*\)$/
            Regexp.last_match[1].to_i
          else
            0
          end
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
quality-19.0.0 lib/quality/tools/brakeman.rb
quality-18.0.1 lib/quality/tools/brakeman.rb
quality-18.0.0 lib/quality/tools/brakeman.rb
quality-17.2.0 lib/quality/tools/brakeman.rb
quality-17.1.1 lib/quality/tools/brakeman.rb
quality-17.1.0 lib/quality/tools/brakeman.rb
quality-17.0.0 lib/quality/tools/brakeman.rb
quality-16.0.1 lib/quality/tools/brakeman.rb
quality-16.0.0 lib/quality/tools/brakeman.rb
quality-15.0.1 lib/quality/tools/brakeman.rb
quality-15.0.0 lib/quality/tools/brakeman.rb
quality-14.1.0 lib/quality/tools/brakeman.rb