From b97eb28e9f4e42c54bd7ad1cc43a656c346b90d8 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Tue, 21 May 2019 16:04:41 +0300 Subject: [PATCH] Update EXCLUDE_DIRECTORIES Add more exceptions. E.g. we use fmt.Println for finalizers. Probably there is a better way. --- .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 8e63ece..e19d474 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=e2e --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 --exclude=README.md --exclude fuzz.go --exclude client.go" # TODO(ar): Add back panic DISALLOWED_FUNCTIONS=('os.Exit(' 'Fatal(' 'Fatalf(' 'Fatalln(' 'fmt.Println(' 'fmt.Printf(' 'log.Print(' 'log.Println(' 'log.Printf(')