mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
Use Doctor#healthy? and ensure _all_ items are checked before process quits.
This commit is contained in:
@@ -6,18 +6,18 @@ module Jekyll
|
||||
site = Jekyll::Site.new(options)
|
||||
site.read
|
||||
|
||||
if unhealthy(site)
|
||||
abort
|
||||
else
|
||||
if healthy?(site)
|
||||
Jekyll.logger.info "Your test results", "are in. Everything looks fine."
|
||||
else
|
||||
abort
|
||||
end
|
||||
end
|
||||
|
||||
def unhealthy(site)
|
||||
def healthy?(site)
|
||||
[
|
||||
deprecated_relative_permalinks(site),
|
||||
conflicting_urls(site)
|
||||
].any?
|
||||
!deprecated_relative_permalinks(site),
|
||||
!conflicting_urls(site)
|
||||
].all?
|
||||
end
|
||||
|
||||
def deprecated_relative_permalinks(site)
|
||||
|
||||
Reference in New Issue
Block a user