diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 02511d81..148dd6f8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,8 +18,3 @@ jobs: - uses: golangci/golangci-lint-action@v2 with: version: v1.33 - args: > - --disable=errcheck - --enable=gofmt - --enable=golint - --enable=misspell diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 00000000..028b6ae8 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,8 @@ + +linters: + disable: + - errcheck + enable: + - gofmt + - golint + - misspell diff --git a/Makefile b/Makefile index 81c33e58..b66c3601 100644 --- a/Makefile +++ b/Makefile @@ -57,11 +57,7 @@ test-nodocker: lint: docker run --rm -v $(PWD):/app -w /app \ golangci/golangci-lint:v1.33.0 \ - golangci-lint run -v \ - --disable=errcheck \ - --enable=gofmt \ - --enable=golint \ - --enable=misspell + golangci-lint run -v stress: docker build -q . -f stress/$(NAME)/Dockerfile -t temp