forked from todogroup/ospology
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vale.tmpl
More file actions
19 lines (19 loc) · 698 Bytes
/
.vale.tmpl
File metadata and controls
19 lines (19 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{- /* Keep track of our various counts */ -}}
{{- range .Files}}
{{- $file := .Path -}}
{{- range .Alerts -}}
{{- $line := .Line -}}
{{- $col := (index .Span 0) -}}
{{- $title := .Check | quote -}}
{{- /* Skip Readability comments on line 1 */ -}}
{{- if and (ne $line 1) (ne $col 1) (not (hasPrefix "Readability" $title)) -}}
{{- if eq .Severity "error" }}
::error file={{$file}},line={{$line}},col={{$col}},title={{$title}}::{{.Message}}
{{- else if eq .Severity "warning" }}
::warning file={{$file}},line={{$line}},col={{$col}},title={{$title}}::{{.Message}}
{{- else }}
::notice file={{$file}},line={{$line}},col={{$col}},title={{$title}}::{{.Message}}
{{- end}}
{{- end}}
{{- end}}
{{- end}}