Don't check the underlying definitions

Otherwise the script will try to find a schema for our templates, which don't exist.
pull/1558/head
Travis Ralston 6 years ago
parent 31ea4279d1
commit c8a8f13623

@ -106,6 +106,9 @@ def check_example_dir(exampledir, schemadir):
if filename.startswith("."): if filename.startswith("."):
# Skip over any vim .swp files. # Skip over any vim .swp files.
continue continue
if os.dirname(os.path.join(root, filename)) == "core":
# Skip checking the underlying definitions
continue
examplepath = os.path.join(root, filename) examplepath = os.path.join(root, filename)
schemapath = examplepath.replace(exampledir, schemadir) schemapath = examplepath.replace(exampledir, schemadir)
if schemapath.find("#") >= 0: if schemapath.find("#") >= 0:

Loading…
Cancel
Save