check for empty return in scripts

master
melvin 2014-01-21 10:10:45 +08:00
parent bbc1272085
commit 7125fa70de
1 changed files with 5 additions and 0 deletions

View File

@ -464,6 +464,7 @@ checks: \
check_unique_property \
check_required_property \
check_groovy_escape \
check_empty_return \
check_url \
check_image \
check_meta \
@ -508,6 +509,10 @@ check_requires_groovy_code:
check_groovy_escape:
grep '[^\\]\$$' -r release/Magarena/scripts | grep -v '\$${' | ${NO_OUTPUT}
# return should not be last token in groovy script
check_empty_return:
grep "return[[:space:]]*$$" -r release/Magarena/scripts | ${NO_OUTPUT}
# script name is canonical card name
check_script_name:
diff \