Skip to content
Snippets Groups Projects
Commit 00808008 authored by Stuffed's avatar Stuffed
Browse files

Ignore duplicate words "in in" and "is is" since that can be valid

parent 89e9665b
No related branches found
No related tags found
4 merge requests!843Delete Please.,!833Pregmod master,!758Pregmod master,!198Pregmod master
...@@ -70,7 +70,7 @@ $GREP "<<set[^{>=]*==" -- 'src/*' | myprint "DoubleEqualsInSet" ...@@ -70,7 +70,7 @@ $GREP "<<set[^{>=]*==" -- 'src/*' | myprint "DoubleEqualsInSet"
# Check for, e.g <<if slaves[foo]>> # Check for, e.g <<if slaves[foo]>>
$GREP "<<\([^>]\|[^>]>[^>]\)*[^$]slaves\[" -- 'src/*' | myprint "MissingDollar" $GREP "<<\([^>]\|[^>]>[^>]\)*[^$]slaves\[" -- 'src/*' | myprint "MissingDollar"
# Check for duplicate words, e.g. with with # 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 # Check that we do not have any variables that we use only once. e.g. $onlyUsedOnce
# Ignore *Nationalities # Ignore *Nationalities
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment