13 lines
360 B
Cheetah
13 lines
360 B
Cheetah
TAP version 14
|
|
{{- $index := 0 -}}
|
|
{{- range .Files}}
|
|
{{- range .Alerts}}
|
|
{{- $alert := . -}}
|
|
{{ if eq .Severity "error" -}}
|
|
not ok {{ $index | add1 }} {{ $alert.Check }}: {{ $alert.Message }} ({{ $alert.Span.StartLine }}:{{ $alert.Span.StartColumn }})
|
|
{{- else -}}
|
|
ok {{ $index | add1 }} {{ $alert.Check }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
1..{{ $index }}
|