mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-18 11:28:48 -06:00
bring back staticcheck
This commit is contained in:
@@ -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': [
|
||||
{
|
||||
|
||||
@@ -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
|
||||
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user