2022-08-13 15:12:31 +05:30
|
|
|
export const multipleFindingsArr = [
|
|
|
|
{
|
|
|
|
severity: 'minor',
|
2023-03-04 22:38:38 +05:30
|
|
|
description: 'mocked minor Issue',
|
2022-08-13 15:12:31 +05:30
|
|
|
line: 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
severity: 'major',
|
2023-03-04 22:38:38 +05:30
|
|
|
description: 'mocked major Issue',
|
2022-08-13 15:12:31 +05:30
|
|
|
line: 3,
|
|
|
|
},
|
|
|
|
{
|
2023-03-04 22:38:38 +05:30
|
|
|
severity: 'info',
|
|
|
|
description: 'mocked info Issue',
|
|
|
|
line: 3,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
severity: 'critical',
|
|
|
|
description: 'mocked critical Issue',
|
|
|
|
line: 3,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
severity: 'blocker',
|
|
|
|
description: 'mocked blocker Issue',
|
2022-08-13 15:12:31 +05:30
|
|
|
line: 3,
|
|
|
|
},
|
2023-06-20 00:43:36 +05:30
|
|
|
{
|
|
|
|
severity: 'unknown',
|
|
|
|
description: 'mocked unknown Issue',
|
|
|
|
line: 3,
|
|
|
|
},
|
2022-08-13 15:12:31 +05:30
|
|
|
];
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
export const fiveFindings = {
|
|
|
|
filePath: 'index.js',
|
|
|
|
codequality: multipleFindingsArr.slice(0, 5),
|
|
|
|
};
|
|
|
|
|
|
|
|
export const threeFindings = {
|
2022-08-13 15:12:31 +05:30
|
|
|
filePath: 'index.js',
|
2023-03-04 22:38:38 +05:30
|
|
|
codequality: multipleFindingsArr.slice(0, 3),
|
2022-08-13 15:12:31 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
export const singularFinding = {
|
|
|
|
filePath: 'index.js',
|
|
|
|
codequality: [multipleFindingsArr[0]],
|
|
|
|
};
|
|
|
|
|
|
|
|
export const diffCodeQuality = {
|
|
|
|
diffFile: { file_hash: '123' },
|
|
|
|
diffLines: [
|
|
|
|
{
|
|
|
|
left: {
|
|
|
|
type: 'old',
|
|
|
|
old_line: 1,
|
|
|
|
new_line: null,
|
|
|
|
codequality: [],
|
2022-11-25 23:54:43 +05:30
|
|
|
lineDrafts: [],
|
2022-08-13 15:12:31 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
left: {
|
|
|
|
type: null,
|
|
|
|
old_line: 2,
|
|
|
|
new_line: 1,
|
|
|
|
codequality: [],
|
2022-11-25 23:54:43 +05:30
|
|
|
lineDrafts: [],
|
2022-08-13 15:12:31 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
left: {
|
|
|
|
type: 'new',
|
|
|
|
old_line: null,
|
|
|
|
new_line: 2,
|
|
|
|
|
|
|
|
codequality: [multipleFindingsArr[0]],
|
2022-11-25 23:54:43 +05:30
|
|
|
lineDrafts: [],
|
2022-08-13 15:12:31 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|