From 0901c85c251ab20fc69c9cec1b41c57ad56c85df Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Wed, 10 Apr 2019 20:15:23 -0400
Subject: [PATCH] Updated sanityCheck

---
 sanityCheck.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sanityCheck.sh b/sanityCheck.sh
index 5a3eed616d8..92e0fae0e79 100755
--- a/sanityCheck.sh
+++ b/sanityCheck.sh
@@ -110,8 +110,8 @@ $GREP -e "<<option\([lg]t\?\|default\) *>" -- 'src/*' | grep -v src/js | myprint
 $GREP -e "<<option " --and --not -e "<<option\s\+\(-\?[0-9]\+\|[\'\"].*[\'\"]\|false\|true\)\s\+[\`\'\"].*[\'\"\`]" -- 'src/*' | grep -v src/js | myprint "OptionBadArguments4"
 $GREP -e "<<if def [^(>]*[&|]" -- 'src/*' | myprint "AddBracketsAroundDef2"
 # check for missing ; before statement
-$GREP 'if $ ' -- 'src/*'  | myprint "missing ; before statement"
-$GREP 'elseif $ ' -- 'src/*'  | myprint "missing ; before statement"
+$GREP 'if $ ' -- 'src/*'  | myprint "Missing ; before statement"
+$GREP 'elseif $ ' -- 'src/*'  | myprint "Missing ; before statement"
 # Check for an unrecognized letter before >>
 $GREP "[^]a-zA-Z0-9 \")}'+-\*\`] *>>" -- 'src/*' | myprint "StrangeCharacterAtEndOfCommand"
 # Check for a . inside a <<>>
@@ -125,6 +125,8 @@ $GREP -E "</span>(\.|,|;|:)\s" -- src/*.js | myprint "WrongSelectorPunctuation"
 #$GREP -E "\(.(\+|\-|\*|\/|\=)." -- src/*.js :^Jquery.js,^dTree.js,^dTree.min.js,^format.js,^mousetrap.js | myprint "MissingWhitespace"
 # Check for @@ selector instead of <span> selector
 $GREP "@@\." -- src/*.js | myprint "WrongSelectorUsed"
+# Check for JSdoc inside function declaration
+$GREP ".\=.\/\*\*" -- src/*.js | myprint "WrongJSdocFormat"
 
 # Check that we do not have any variables that we use only once.   e.g.	 $onlyUsedOnce
 # Ignore  *Nationalities
-- 
GitLab