Commit d8cf0243 authored by can eldem's avatar can eldem

Remove undefined confidence from code

parent 98176cb2
...@@ -28,7 +28,7 @@ module Vulnerabilities ...@@ -28,7 +28,7 @@ module Vulnerabilities
attr_writer :sha attr_writer :sha
CONFIDENCE_LEVELS = { CONFIDENCE_LEVELS = {
undefined: 0, # undefined: 0, no longer applicable
ignore: 1, ignore: 1,
unknown: 2, unknown: 2,
experimental: 3, experimental: 3,
......
...@@ -47,7 +47,7 @@ module API ...@@ -47,7 +47,7 @@ module API
optional :confidence, optional :confidence,
type: Array[String], type: Array[String],
desc: 'Returns vulnerabilities belonging to specified confidence level: '\ desc: 'Returns vulnerabilities belonging to specified confidence level: '\
'`undefined`, `ignore`, `unknown`, `experimental`, `low`, `medium`, `high`, or `confirmed`. '\ '`ignore`, `unknown`, `experimental`, `low`, `medium`, `high`, or `confirmed`. '\
'Defaults to all', 'Defaults to all',
values: ::Vulnerabilities::Occurrence.confidences.keys, values: ::Vulnerabilities::Occurrence.confidences.keys,
default: ::Vulnerabilities::Occurrence.confidences.keys default: ::Vulnerabilities::Occurrence.confidences.keys
......
...@@ -7,7 +7,7 @@ describe Vulnerability do ...@@ -7,7 +7,7 @@ describe Vulnerability do
let(:severity_values) { { info: 1, unknown: 2, low: 4, medium: 5, high: 6, critical: 7 } } let(:severity_values) { { info: 1, unknown: 2, low: 4, medium: 5, high: 6, critical: 7 } }
let(:confidence_values) do let(:confidence_values) do
{ undefined: 0, ignore: 1, unknown: 2, experimental: 3, low: 4, medium: 5, high: 6, confirmed: 7 } { ignore: 1, unknown: 2, experimental: 3, low: 4, medium: 5, high: 6, confirmed: 7 }
end end
let(:report_types) do let(:report_types) do
{ sast: 0, { sast: 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment