File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
frontend/subrequests/lint Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ func (results *LintResults) ToResult() (*client.Result, error) {
108
108
res .AddMeta ("result.txt" , b .Bytes ())
109
109
110
110
status := 0
111
- if len (results .Warnings ) > 0 {
111
+ if len (results .Warnings ) > 0 || results . Error != nil {
112
112
status = 1
113
113
}
114
114
res .AddMeta ("result.statuscode" , []byte (fmt .Sprintf ("%d" , status )))
@@ -169,7 +169,7 @@ func PrintLintViolations(dt []byte, w io.Writer) error {
169
169
})
170
170
171
171
for _ , warning := range results .Warnings {
172
- fmt .Fprintf (w , "%s" , warning .RuleName )
172
+ fmt .Fprintf (w , "\n WARNING: %s" , warning .RuleName )
173
173
if warning .URL != "" {
174
174
fmt .Fprintf (w , " - %s" , warning .URL )
175
175
}
@@ -187,8 +187,8 @@ func PrintLintViolations(dt []byte, w io.Writer) error {
187
187
if err != nil {
188
188
return err
189
189
}
190
- fmt .Fprintln (w )
191
190
}
191
+
192
192
return nil
193
193
}
194
194
You can’t perform that action at this time.
0 commit comments