summaryrefslogtreecommitdiff
path: root/scripts/validator
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/validator')
-rwxr-xr-xscripts/validator15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/validator b/scripts/validator
new file mode 100755
index 0000000..0913e93
--- /dev/null
+++ b/scripts/validator
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+#
+# Task file validator
+#
+# Currently, just calls pykwalify, however we could later anticipate
+# expanding to perform SHA1 commit title expansion and more complex
+# validation rules.
+# At that point, this could potentially become a python script and pull
+# in the pykwalify libraries to check internally.
+#
+
+TASKFILE=$1
+
+pykwalify -s projects/project.schema.yaml -d $TASKFILE