aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-15 12:56:44 -0400
committerDavid Robillard <d@drobilla.net>2022-06-15 12:56:44 -0400
commitd261b2d8ed786b93a37f18ebb87ed14d2e360f56 (patch)
tree6bd0ee9b99bb037be8bc75c3f5ea371ed1201200 /wscript
parent9ed4e44d929299765c834974b5bf26a7e9db4db8 (diff)
downloadlv2-d261b2d8ed786b93a37f18ebb87ed14d2e360f56.tar.xz
Explicitly declare sources to check for spelling
Using a wildcard is too flakey, for example it will check build directories other than "build", flotsam in the source tree, and so on.
Diffstat (limited to 'wscript')
-rw-r--r--wscript17
1 files changed, 8 insertions, 9 deletions
diff --git a/wscript b/wscript
index fcab2c1..3a901bf 100644
--- a/wscript
+++ b/wscript
@@ -723,22 +723,21 @@ def test(tst):
check(tst.env.SORD_VALIDATE + all_files)
if "CODESPELL" in tst.env:
- spell_ignore = [
- "build",
+ spell_ignore_paths = [
"doc/pygments.css",
- "lv2specgen/DTD/*",
"schemas.lv2/doap.ttl",
- "waflib",
]
- spell_ignore_paths = [os.path.join(tst.src_path("."), x)
- for x in spell_ignore]
-
check(tst.env.CODESPELL + [
"-d",
"-q", "3",
- "-S", ','.join(spell_ignore_paths),
- tst.src_path("."),
+ "-S", ','.join(tst.src_path(p) for p in spell_ignore_paths),
+ tst.src_path("lv2specgen/*.*"),
+ tst.src_path("doc"),
+ tst.src_path("lv2"),
+ tst.src_path("plugins"),
+ tst.src_path("schemas.lv2"),
+ tst.src_path("scripts"),
])
try: