From d49308d7794082ed3d98ef73e6e9ccce48c380f8 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 27 Dec 2021 10:52:41 +0100 Subject: [PATCH] enable nilerr linter --- .golangci.yml | 3 ++- tests/tests_all.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 201d7427..5fa5c773 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,6 +13,7 @@ linters: - gocritic - gofumpt - misspell + - nilerr - prealloc - unconvert - unparam @@ -30,4 +31,4 @@ issues: text: "ifElseChain" linters-settings: gci: - local-prefixes: gorm.io/gorm \ No newline at end of file + local-prefixes: gorm.io/gorm diff --git a/tests/tests_all.sh b/tests/tests_all.sh index 62c0f382..52bd06e6 100755 --- a/tests/tests_all.sh +++ b/tests/tests_all.sh @@ -26,7 +26,7 @@ for dialect in "${dialects[@]}" ; do if [ -d tests ] then cd tests - GORM_DIALECT=${dialect} go test -race -count=1 -coverprofile=../coverage.out ./... + GORM_DIALECT=${dialect} go test -race -count=1 -coverprofile=coverage.out ./... cd .. fi else @@ -34,7 +34,7 @@ for dialect in "${dialects[@]}" ; do if [ -d tests ] then cd tests - GORM_DIALECT=${dialect} go test -race -count=1 -v -coverprofile=../coverage.out ./... + GORM_DIALECT=${dialect} go test -race -count=1 -v -coverprofile=coverage.out ./... cd .. fi fi