Don't check the underlying definitions

Otherwise the script will try to find a schema for our templates, which don't exist.
This commit is contained in:
Travis Ralston 2018-08-30 11:57:01 -06:00
parent 31ea4279d1
commit c8a8f13623

View file

@ -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: