From e8c0f528a66ad635f0c2fdf18688cddda9548255 Mon Sep 17 00:00:00 2001 From: franzwilhelm Date: Mon, 15 May 2017 00:32:45 +0200 Subject: [PATCH] add ignore for staticcheck --- .travis.yml | 2 +- gosimple.ignore | 1 + staticcheck.ignore | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 staticcheck.ignore diff --git a/.travis.yml b/.travis.yml index 32a2f34..5acc9f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,6 @@ script: - go vet $(go list ./... | grep -v /vendor/) - structcheck $(go list ./... | grep -v /vendor/) - gosimple -ignore "$(cat gosimple.ignore)" $(go list ./... | grep -v /vendor/) - - staticcheck $(go list ./... | grep -v /vendor/) + - staticcheck -ignore "$(cat staticcheck.ignore)" $(go list ./... | grep -v /vendor/) - unused $(go list ./... | grep -v /vendor/) - unconvert $(go list ./... | grep -v /vendor/) diff --git a/gosimple.ignore b/gosimple.ignore index 68e88ac..4619dba 100644 --- a/gosimple.ignore +++ b/gosimple.ignore @@ -1,2 +1,3 @@ github.com/beego/bee/cmd/commands/run/*.go:S1024 github.com/beego/bee/cmd/commands/dlv/*.go:S1024 +github.com/beego/bee/utils/*.go:S1026 diff --git a/staticcheck.ignore b/staticcheck.ignore new file mode 100644 index 0000000..70d9589 --- /dev/null +++ b/staticcheck.ignore @@ -0,0 +1 @@ +github.com/beego/bee/generate/swaggergen/*.go:SA1024