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