enable nilerr linter

This commit is contained in:
Matthieu MOREL 2021-12-27 10:52:41 +01:00 committed by GitHub
parent 21423b914f
commit d49308d779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ linters:
- gocritic
- gofumpt
- misspell
- nilerr
- prealloc
- unconvert
- unparam

View File

@ -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