From 00808008731ea47f0d879cd39e985e3c137d91a5 Mon Sep 17 00:00:00 2001 From: Stuffed <stuffedgame@gmail.com> Date: Sat, 6 May 2017 23:19:53 +0900 Subject: [PATCH] Ignore duplicate words "in in" and "is is" since that can be valid --- sanityCheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanityCheck b/sanityCheck index c61ad824716..7571ed8fc00 100755 --- a/sanityCheck +++ b/sanityCheck @@ -70,7 +70,7 @@ $GREP "<<set[^{>=]*==" -- 'src/*' | myprint "DoubleEqualsInSet" # Check for, e.g <<if slaves[foo]>> $GREP "<<\([^>]\|[^>]>[^>]\)*[^$]slaves\[" -- 'src/*' | myprint "MissingDollar" # Check for duplicate words, e.g. with with -$GREP -e " \(\b[a-zA-Z][a-zA-Z]\+\) \1\b " --and --not -e "her her" --and --not -e "you you" --and --not -e "that that" -- 'src/*' | myprint "Duplicate words" +$GREP -e " \(\b[a-zA-Z][a-zA-Z]\+\) \1\b " --and --not -e " her her " --and --not -e " you you " --and --not -e " that that " --and --not -e " in in " --and --not -e " is is "-- 'src/*' | myprint "Duplicate words" # Check that we do not have any variables that we use only once. e.g. $onlyUsedOnce # Ignore *Nationalities -- GitLab