Level none, kind pass = green check.
This commit is contained in:
Родитель
ad2626629c
Коммит
ed329aba6c
|
@ -83,7 +83,7 @@ export function renderCell<T extends ISimpleTableCell>(
|
||||||
if (isResult(data)) {
|
if (isResult(data)) {
|
||||||
const result = data
|
const result = data
|
||||||
const status = {
|
const status = {
|
||||||
none: Statuses.Queued,
|
none: result.kind === 'pass' ? Statuses.Success : Statuses.Queued,
|
||||||
note: Statuses.Information,
|
note: Statuses.Information,
|
||||||
error: Statuses.Failed,
|
error: Statuses.Failed,
|
||||||
}[result.level] || Statuses.Warning
|
}[result.level] || Statuses.Warning
|
||||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -84,6 +84,25 @@ export default [{
|
||||||
}],
|
}],
|
||||||
baselineState: 'new',
|
baselineState: 'new',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ruleId: 'RULE01',
|
||||||
|
message: { text: 'Empty circle for level: none, kind: (undefined).' },
|
||||||
|
locations: [{
|
||||||
|
physicalLocation: { artifactLocation: { uri: 'folder/file5.txt' } },
|
||||||
|
}],
|
||||||
|
baselineState: 'new',
|
||||||
|
level: 'none',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ruleId: 'RULE01',
|
||||||
|
message: { text: 'Green check for level: none, kind: pass.' },
|
||||||
|
locations: [{
|
||||||
|
physicalLocation: { artifactLocation: { uri: 'folder/file5.txt' } },
|
||||||
|
}],
|
||||||
|
baselineState: 'new',
|
||||||
|
level: 'none',
|
||||||
|
kind: 'pass',
|
||||||
|
},
|
||||||
|
|
||||||
// Variation in Path.
|
// Variation in Path.
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче