mirror of https://github.com/rails/rails
Fix w3c_validator.rb validation script
This commit is contained in:
parent
71df60e921
commit
d150ef00c5
|
@ -32,7 +32,8 @@ include W3CValidators
|
|||
module RailsGuides
|
||||
class Validator
|
||||
def validate
|
||||
validator = MarkupValidator.new
|
||||
# https://github.com/w3c-validators/w3c_validators/issues/25
|
||||
validator = NuValidator.new
|
||||
STDOUT.sync = true
|
||||
errors_on_guides = {}
|
||||
|
||||
|
@ -44,11 +45,11 @@ module RailsGuides
|
|||
next
|
||||
end
|
||||
|
||||
if results.validity
|
||||
print "."
|
||||
else
|
||||
if results.errors.length > 0
|
||||
print "E"
|
||||
errors_on_guides[f] = results.errors
|
||||
else
|
||||
print "."
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue