Browse Source

Make print & println forbidden

content-update
xpetit 4 years ago
parent
commit
9b1c3ed201
No known key found for this signature in database
GPG Key ID: 4E1F8CF5DFA989D2
  1. 5
      go/tests/entrypoint.sh

5
go/tests/entrypoint.sh

@ -26,6 +26,11 @@ if test "$s"; then
exit 1
fi
if find . -type f -name '*.go' -exec grep -qE '\tprint(ln)?\(' {} +; then
echo "print & println builtins are forbidden"
exit 1
fi
# Check restrictions
if test "$ALLOWED_FUNCTIONS" && test "$EXPECTED_FILES"; then
IFS=' '

Loading…
Cancel
Save