Skip to content

Commit

Permalink
disable all checks that are too noisy and can be fixed later
Browse files Browse the repository at this point in the history
Signed-off-by: Sandor Szücs <[email protected]>
  • Loading branch information
szuecs committed May 7, 2024
1 parent e07362f commit 81e22e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dockertest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ 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
staticcheck -checks "all,-ST1000,-ST1003" ./... | (grep -v "_test.go:" && exit 1 || exit 0)
# -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
Expand Down

0 comments on commit 81e22e0

Please sign in to comment.