Skip to content

Commit

Permalink
add golang-ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Apr 3, 2019
1 parent d94e1c1 commit eb2635a
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
60 changes: 60 additions & 0 deletions .golangci.yml
@@ -0,0 +1,60 @@
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 15
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
misspell:
locale: US
lll:
line-length: 140
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- wrapperFunc

linters:
disable-all: true
enable:
- megacheck
- govet
- unconvert
- megacheck
- structcheck
- gas
- gocyclo
- dupl
- misspell
- unparam
- varcheck
- deadcode
- typecheck
- ineffassign
- varcheck
fast: false


run:
# modules-download-mode: vendor
skip-dirs:
- vendor

issues:
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec

service:
golangci-lint-version: 1.16.x
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,5 +14,5 @@ before_install:
script:
- GO111MODULE=on go get ./...
- GO111MODULE=on go test -v -covermode=count -coverprofile=profile.cov ./... || travis_terminate 1;
- golangci-lint run || travis_terminate 1;
- golangci-lint run || travis_terminate 1;
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci

0 comments on commit eb2635a

Please sign in to comment.