forked from External/mediamtx
update golangci-lint
This commit is contained in:
parent
ad195a6bd0
commit
36caa51081
2 changed files with 5 additions and 3 deletions
|
|
@ -1,11 +1,12 @@
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable:
|
|
||||||
- errcheck
|
|
||||||
enable:
|
enable:
|
||||||
- gofmt
|
- gofmt
|
||||||
- golint
|
- golint
|
||||||
- misspell
|
- misspell
|
||||||
|
- unconvert
|
||||||
|
disable:
|
||||||
|
- errcheck
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-use-default: false
|
exclude-use-default: false
|
||||||
|
|
|
||||||
3
Makefile
3
Makefile
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
BASE_IMAGE = golang:1.15-alpine3.12
|
BASE_IMAGE = golang:1.15-alpine3.12
|
||||||
|
GO_LINT_IMAGE = golangci/golangci-lint:v1.33.0
|
||||||
|
|
||||||
.PHONY: $(shell ls)
|
.PHONY: $(shell ls)
|
||||||
|
|
||||||
|
|
@ -56,7 +57,7 @@ test-nodocker:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
docker run --rm -v $(PWD):/app -w /app \
|
docker run --rm -v $(PWD):/app -w /app \
|
||||||
golangci/golangci-lint:v1.33.0 \
|
$(GO_LINT_IMAGE) \
|
||||||
golangci-lint run -v
|
golangci-lint run -v
|
||||||
|
|
||||||
stress:
|
stress:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue