bring back staticcheck

This commit is contained in:
A.Unger
2020-06-02 11:47:52 +02:00
parent ae8f49b794
commit 4c5d5578c1
3 changed files with 6 additions and 34 deletions

View File

@@ -62,10 +62,10 @@ def testing(ctx):
},
{
'name': 'staticcheck',
'image': 'golangci/golangci-lint:latest',
'image': 'webhippie/golang:1.13',
'pull': 'always',
'commands': [
'golangci-lint run --timeout 30s',
'make staticcheck',
],
'volumes': [
{

View File

@@ -1,32 +0,0 @@
linters:
enable:
- bodyclose
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- depguard
- golint
- goimports
- unconvert
- scopelint
- maligned
- misspell
- gocritic
- prealloc
- gosec
- rowserrcheck
- goconst
- gocyclo
- maligned
- unparam
- goprintffuncname
- nestif
- nolintlint
# - gomnd

View File

@@ -106,6 +106,10 @@ $(BIN)/$(EXECUTABLE)-debug: $(SOURCES)
$(BIN)/$(EXECUTABLE)-linux: $(SOURCES)
GOOS=linux GOARCH=amd64 $(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
.PHONY: staticcheck
staticcheck:
go run honnef.co/go/tools/cmd/staticcheck -tags '$(TAGS)' $(PACKAGES)
.PHONY: release
release: release-dirs release-linux release-windows release-darwin release-copy release-check