Skip to content

Commit

Permalink
set enabled linters
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey1s committed Aug 7, 2019
1 parent 91966ef commit 504a96b
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,36 @@ linters-settings:
ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy

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

issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec

0 comments on commit 504a96b

Please sign in to comment.