Browse Source

simplify linter settings

pull/169/head
aler9 5 years ago
parent
commit
769e1a7e1a
  1. 5
      .github/workflows/lint.yml
  2. 8
      .golangci.yml
  3. 6
      Makefile

5
.github/workflows/lint.yml

@ -18,8 +18,3 @@ jobs: @@ -18,8 +18,3 @@ jobs:
- uses: golangci/golangci-lint-action@v2
with:
version: v1.33
args: >
--disable=errcheck
--enable=gofmt
--enable=golint
--enable=misspell

8
.golangci.yml

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
linters:
disable:
- errcheck
enable:
- gofmt
- golint
- misspell

6
Makefile

@ -57,11 +57,7 @@ test-nodocker: @@ -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

Loading…
Cancel
Save