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-22.0.0 lib/quality/tools/brakeman.rb
quality-21.0.6 lib/quality/tools/brakeman.rb
quality-21.0.5 lib/quality/tools/brakeman.rb
quality-21.0.4 lib/quality/tools/brakeman.rb
quality-21.0.3 lib/quality/tools/brakeman.rb
quality-21.0.2 lib/quality/tools/brakeman.rb
quality-21.0.1 lib/quality/tools/brakeman.rb
quality-20.1.1 lib/quality/tools/brakeman.rb
quality-21.0.0 lib/quality/tools/brakeman.rb
quality-20.1.0 lib/quality/tools/brakeman.rb
quality-20.0.3 lib/quality/tools/brakeman.rb
quality-20.0.2 lib/quality/tools/brakeman.rb
quality-20.0.1 lib/quality/tools/brakeman.rb
quality-20.0.0 lib/quality/tools/brakeman.rb
quality-19.2.1 lib/quality/tools/brakeman.rb
quality-19.2.0 lib/quality/tools/brakeman.rb
quality-19.1.3 lib/quality/tools/brakeman.rb
quality-19.1.2 lib/quality/tools/brakeman.rb
quality-19.1.1 lib/quality/tools/brakeman.rb
quality-19.1.0 lib/quality/tools/brakeman.rb