Skip to content
Snippets Groups Projects
Commit c43d32d3 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Categories#parse now includes validation.

Simpler api to call from main app.rb
parent db5d0156
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,6 @@ module JsDuck ...@@ -73,7 +73,6 @@ module JsDuck
@categories = Categories.new(get_doc_formatter, @relations) @categories = Categories.new(get_doc_formatter, @relations)
if @opts.categories_path if @opts.categories_path
@categories.parse(@opts.categories_path) @categories.parse(@opts.categories_path)
@categories.validate
else else
@categories.auto_generate @categories.auto_generate
end end
......
...@@ -35,6 +35,8 @@ module JsDuck ...@@ -35,6 +35,8 @@ module JsDuck
end.flatten end.flatten
end end
end end
validate
end end
# Expands class name like 'Foo.*' into multiple class names. # Expands class name like 'Foo.*' into multiple class names.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment