lib/brakeman/report/report_junit.rb in brakeman-min-5.0.0.pre1 vs lib/brakeman/report/report_junit.rb in brakeman-min-5.0.0
- old
+ new
@@ -45,11 +45,11 @@
warning.add_attribute 'brakeman:message', w.message
warning.add_attribute 'brakeman:category', w.warning_type
warning.add_attribute 'brakeman:file', warning_file(w)
warning.add_attribute 'brakeman:line', w.line
warning.add_attribute 'brakeman:fingerprint', w.fingerprint
- warning.add_attribute 'brakeman:confidence', TEXT_CONFIDENCE[w.confidence]
+ warning.add_attribute 'brakeman:confidence', w.confidence_name
warning.add_attribute 'brakeman:code', w.format_code
warning.add_text w.to_s
}
hostname = `hostname`.strip
@@ -86,10 +86,10 @@
failure.add_attribute 'message', warning.message
failure.add_attribute 'type', warning.warning_type
failure.add_attribute 'brakeman:fingerprint', warning.fingerprint
failure.add_attribute 'brakeman:file', warning_file(warning)
failure.add_attribute 'brakeman:line', warning.line
- failure.add_attribute 'brakeman:confidence', TEXT_CONFIDENCE[warning.confidence]
+ failure.add_attribute 'brakeman:confidence', warning.confidence_name
failure.add_attribute 'brakeman:code', warning.format_code
failure.add_text warning.to_s
}
test_suite.add_element 'system-out'