Skip to content

Commit da58a8a

Browse files
committed
count html5validator errors
1 parent 3f3d91f commit da58a8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dangerfile

+1
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ unless File.file?(validator_output)
291291
else
292292
errors_count = 0
293293
File.readlines(validator_output).each do |line|
294+
errors_count += 1
294295
line.sub!(/^WARNING:html5validator.validator:/, '')
295296

296297
parsed = line.match(/^"file:(?<file>[^"]+)":(?<line>\d+)[^:]+: error: (?<msg>.+)/)

0 commit comments

Comments
 (0)