lib/quality/tools/brakeman.rb in quality-14.0.0 vs lib/quality/tools/brakeman.rb in quality-14.1.0

- old
+ new

@@ -5,12 +5,13 @@ 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| + gives_error_code_on_no_relevant_code: + true) do |line| if line =~ /Security Warnings,([0-9]*) \([0-9]*\)$/ - $1.to_i + Regexp.last_match[1].to_i else 0 end end end