From 916a10d717c542a446718a9a574807ac9b85773c Mon Sep 17 00:00:00 2001 From: myk002 Date: Sat, 6 Mar 2021 08:29:32 -0800 Subject: [PATCH] exempt lua test files from docstring requirements and don't display them with 'ls' --- library/Core.cpp | 2 +- travis/script-docs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Core.cpp b/library/Core.cpp index ff4ccc98e..24b06e586 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -317,7 +317,7 @@ static void listScripts(PluginManager *plug_mgr, std::map &pset, pset[key] = help; } } - else if (all && !files[i].empty() && files[i][0] != '.' && files[i] != "internal") + else if (all && !files[i].empty() && files[i][0] != '.' && files[i] != "internal" && files[i] != "test") { listScripts(plug_mgr, pset, path+files[i]+"/", all, prefix+files[i]+"/"); } diff --git a/travis/script-docs.py b/travis/script-docs.py index a102ae35b..71d7f37b2 100755 --- a/travis/script-docs.py +++ b/travis/script-docs.py @@ -81,7 +81,7 @@ def check_file(fname): def main(): """Check that all DFHack scripts include documentation""" err = 0 - exclude = set(['internal']) + exclude = set(['internal', 'test']) for root, dirs, files in os.walk(SCRIPT_PATH, topdown=True): dirs[:] = [d for d in dirs if d not in exclude] for f in files: