diff --git a/.travis.yml b/.travis.yml index 1bc896af..d77f8048 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,7 @@ after_script: - rm -rf ./res/var/* script: - go test -v ./... - - staticcheck -show-ignored + - staticcheck -show-ignored -checks "-ST1017", "-U1000", "-ST1005","-S1034","-S1012","-SA4006","-ST1003","-SA6005","-SA1019" - unconvert $(go list ./... | grep -v /vendor/) - ineffassign . - find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s diff --git a/session/redis_sentinel/sess_redis_sentinel_test.go b/session/redis_sentinel/sess_redis_sentinel_test.go index d5abc051..fd4155c6 100644 --- a/session/redis_sentinel/sess_redis_sentinel_test.go +++ b/session/redis_sentinel/sess_redis_sentinel_test.go @@ -23,6 +23,7 @@ func TestRedisSentinel(t *testing.T) { t.Log(e) return } + //todo test if e==nil go globalSessions.GC() r, _ := http.NewRequest("GET", "/", nil) diff --git a/staticcheck.conf b/staticcheck.conf deleted file mode 100644 index 7803887f..00000000 --- a/staticcheck.conf +++ /dev/null @@ -1 +0,0 @@ -checks = ["all", "-ST1017", "-U1000", "-ST1005","-S1034","-S1012","-SA4006","-ST1005","-SA6005","-SA1019"] \ No newline at end of file