From 0a3493def44d93823d906c3750abe3aa5e4ac31a Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Tue, 21 May 2019 16:02:03 +0300 Subject: [PATCH] Add "e2e" EXCLUDE_DIRECTORIES It is not mandatory for end-to-end tests --- .github/lint-disallowed-functions-in-library.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/lint-disallowed-functions-in-library.sh b/.github/lint-disallowed-functions-in-library.sh index 03c0fdc..8e63ece 100755 --- a/.github/lint-disallowed-functions-in-library.sh +++ b/.github/lint-disallowed-functions-in-library.sh @@ -3,7 +3,7 @@ set -e # Disallow usages of functions that cause the program to exit in the library code SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) -EXCLUDE_DIRECTORIES="--exclude-dir=examples --exclude-dir=cmd --exclude-dir=.git --exclude-dir=.github --exclude-dir=test" +EXCLUDE_DIRECTORIES="--exclude-dir=examples --exclude-dir=e2e --exclude-dir=cmd --exclude-dir=.git --exclude-dir=.github --exclude-dir=test" # TODO(ar): Add back panic DISALLOWED_FUNCTIONS=('os.Exit(' 'Fatal(' 'Fatalf(' 'Fatalln(' 'fmt.Println(' 'fmt.Printf(' 'log.Print(' 'log.Println(' 'log.Printf(')