mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 02:50:55 +00:00
delete stackcheck config file and ignore some staticcheck checks
This commit is contained in:
parent
abc9c38224
commit
97713849a1
@ -55,7 +55,7 @@ after_script:
|
|||||||
- rm -rf ./res/var/*
|
- rm -rf ./res/var/*
|
||||||
script:
|
script:
|
||||||
- go test -v ./...
|
- 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/)
|
- unconvert $(go list ./... | grep -v /vendor/)
|
||||||
- ineffassign .
|
- ineffassign .
|
||||||
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
|
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
|
||||||
|
@ -23,6 +23,7 @@ func TestRedisSentinel(t *testing.T) {
|
|||||||
t.Log(e)
|
t.Log(e)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
//todo test if e==nil
|
||||||
go globalSessions.GC()
|
go globalSessions.GC()
|
||||||
|
|
||||||
r, _ := http.NewRequest("GET", "/", nil)
|
r, _ := http.NewRequest("GET", "/", nil)
|
||||||
|
@ -1 +0,0 @@
|
|||||||
checks = ["all", "-ST1017", "-U1000", "-ST1005","-S1034","-S1012","-SA4006","-ST1005","-SA6005","-SA1019"]
|
|
Loading…
Reference in New Issue
Block a user