Skip to content

Commit

Permalink
Update golangci config file (stripe#364)
Browse files Browse the repository at this point in the history
* Disable mnd linter (magic numbers)

* Update golangci config
  • Loading branch information
tomer-stripe authored Feb 6, 2020
1 parent 556d57a commit 00f9afc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 13 deletions.
41 changes: 29 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,35 @@ run:
tests: true

linters:
enable-all: true
disable:
- errcheck
- gochecknoglobals
- gochecknoinits
- godox
- gosec
- lll
- maligned
- unparam
- stylecheck
- funlen
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- goprintffuncname
- gosimple
- govet
- ineffassign
- interfacer
- misspell
- nakedret
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace

linters-settings:
goimports:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export GO111MODULE := on
export GOBIN := $(shell pwd)/bin
export PATH := $(GOBIN):$(PATH)
export GOPROXY := https://gocenter.io
export GOLANGCI_LINT_VERSION := v1.21.0
export GOLANGCI_LINT_VERSION := v1.23.3

# Install all the build and lint dependencies
setup:
Expand Down

0 comments on commit 00f9afc

Please sign in to comment.