-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: staticcheck S1021 fix: #6 Signed-off-by: Sandor Szücs <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,23 @@ | |
|
||
set -ev | ||
|
||
go vet ./... | ||
|
||
go install honnef.co/go/tools/cmd/staticcheck@latest | ||
# disabled checks | ||
# -S1021 | ||
# -ST1000 missing package doc in internal packages | ||
# -ST1003 wrong naming convention would require breaking changes | ||
# -ST1012 wrong error name convention in om package would require breaking changes | ||
# -ST1016 violation of methods on the same type should have the same receiver name in valkeyhook | ||
# -ST1020 violation of go doc comment on exported methods in valkeycompat | ||
# -ST1021 violation of go doc comment on exported types in valkeycompat | ||
# -U1000 unused check in mock package | ||
staticcheck -checks "all,-ST1000,-ST1003,-ST1012,-ST1016,-ST1020,-ST1021,-U1000" ./... | (grep -v "_test.go:" && exit 1 || exit 0) | ||
|
||
trap "docker-compose down -v" EXIT | ||
docker-compose up -d | ||
sleep 5 | ||
|
||
go install gotest.tools/[email protected] | ||
gotestsum --format standard-verbose --junitfile unit-tests.xml -- -coverprofile=coverage.out -race -timeout 30m "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters