|
|
@@ -23,10 +23,11 @@ import { translate } from '../../helpers/l10n'; |
|
|
|
import type { MeasureHistory, Query } from './types'; |
|
|
|
import type { RawQuery } from '../../helpers/query'; |
|
|
|
|
|
|
|
export const GRAPH_TYPES = ['overview', 'coverage']; |
|
|
|
export const GRAPH_TYPES = ['overview', 'coverage', 'duplications']; |
|
|
|
export const GRAPHS_METRICS = { |
|
|
|
overview: ['bugs', 'vulnerabilities', 'code_smells'], |
|
|
|
coverage: ['uncovered_lines', 'lines_to_cover'] |
|
|
|
coverage: ['uncovered_lines', 'lines_to_cover'], |
|
|
|
duplications: ['duplicated_lines', 'ncloc'] |
|
|
|
}; |
|
|
|
|
|
|
|
const parseGraph = (value?: string): string => { |