]> granicus.if.org Git - icinga2/commitdiff
Add list of blacklisted words.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 10 Oct 2013 06:53:12 +0000 (08:53 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 10 Oct 2013 06:53:12 +0000 (08:53 +0200)
doc/BLACKLIST [new file with mode: 0644]
doc/mkdoc.sh

diff --git a/doc/BLACKLIST b/doc/BLACKLIST
new file mode 100644 (file)
index 0000000..ba68a50
--- /dev/null
@@ -0,0 +1,3 @@
+seperate
+logic
+magic
index d369836552d40295eb431567fdf951df00e8633c..94a526f037ba30085e50a555aae8ca6850be2663 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/sh
 cd -- `dirname $0`
+
+for badword in $(cat BLACKLIST); do
+       if grep $badword *.md; then
+               echo "Documentation contains banned word."
+               exit 1
+       fi
+done
+
 cat <<HTML
 <!DOCTYPE html>
 <html>