Skip to content

Commit

Permalink
update config golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey1s committed Jul 24, 2019
1 parent 373359d commit 477e804
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
run:
tests: true
skip-dirs:
- bin
- vendor
- var
- tmp
- example/*

linters-settings:
errcheck:
ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy

linters:
enable-all: true
disable:
- lll
- gochecknoglobals
- gochecknoinits
- unparam
- gocritic
- goimports
- misspell
- gocyclo
- scopelint
- prealloc
- goconst
- maligned
- golint

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

0 comments on commit 477e804

Please sign in to comment.