Browse Source

Update linter

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
pull/1853/head
Mark Sagi-Kazar 5 years ago
parent
commit
cafea292ca
No known key found for this signature in database
GPG Key ID: 34CC109EB5ED1C2A
  1. 4
      .golangci.yml
  2. 2
      Makefile

4
.golangci.yml

@ -34,6 +34,7 @@ linters:
- staticcheck
- structcheck
- stylecheck
- tparallel
- typecheck
- unconvert
- unused
@ -41,8 +42,10 @@ linters:
- whitespace
# TODO: fix linter errors before enabling
# - exhaustivestruct
# - gci
# - gochecknoglobals
# - errorlint
# - gocognit
# - godot
# - gofumpt
@ -50,6 +53,7 @@ linters:
# - noctx
# - prealloc
# - sqlclosecheck
# - wrapcheck
# TODO: fix linter errors before enabling (from original config)
# - dupl

2
Makefile

@ -18,7 +18,7 @@ export GOBIN=$(PWD)/bin
LD_FLAGS="-w -X $(REPO_PATH)/version.Version=$(VERSION)"
# Dependency versions
GOLANGCI_VERSION = 1.31.0
GOLANGCI_VERSION = 1.32.2
build: bin/dex

Loading…
Cancel
Save