gitlab-org--gitlab-foss/app/assets/javascripts/vulnerabilities/constants.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
410 B
JavaScript
Raw Normal View History

/**
* Vulnerability severities as provided by the backend on vulnerability
* objects.
*/
export const CRITICAL = 'critical';
export const HIGH = 'high';
export const MEDIUM = 'medium';
export const LOW = 'low';
export const INFO = 'info';
export const UNKNOWN = 'unknown';
/**
* All vulnerability severities in decreasing order.
*/
export const SEVERITIES = [CRITICAL, HIGH, MEDIUM, LOW, INFO, UNKNOWN];