From 9b1c3ed201fb89fe0360ff1c585e563466b643de Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Wed, 16 Sep 2020 10:56:36 +0200 Subject: [PATCH] Make print & println forbidden --- go/tests/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/tests/entrypoint.sh b/go/tests/entrypoint.sh index 863b93d7c..d903e164d 100755 --- a/go/tests/entrypoint.sh +++ b/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=' '