From 05c2dbc368b96f0b22f22aa25e7aa8946966538e Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Thu, 11 Apr 2019 23:13:48 -0400 Subject: [PATCH] Updated sanityCheck --- sanityCheck.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanityCheck.sh b/sanityCheck.sh index 41fd769c608..bc85da85474 100755 --- a/sanityCheck.sh +++ b/sanityCheck.sh @@ -129,6 +129,8 @@ $GREP "@@\." -- src/*.js | myprint "WrongSelectorUsed" $GREP -e ".\=.\/\*\*" --or -e "slave\s\*\/" -- src/*.js --exclude 'src/interaction/main/mainLinks.js' | myprint "WrongJSdocFormat" # Check for missing whitespace at end of /**/ style comments #$GREP "\S\*\/" -- src/* --exclude 'src/001-lib/jquery/Jquery.js' | myprint "MissingWhitespace" disabled until I can figure out to exclude files +# Check for var instead of let or const +#$GREP "var\s" -- src/*.js | myprint "UseLetOrConst" disabled until I can figure out how to exclude certain files # Check that we do not have any variables that we use only once. e.g. $onlyUsedOnce # Ignore *Nationalities -- GitLab