Skip to content

Commit

Permalink
update to latest linter
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Oct 7, 2019
1 parent fde2b31 commit 1bf0f67
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
60 changes: 60 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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.19.x
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go_import_path: github.com/go-pkgz/lcw

before_install:
- export TZ=America/Chicago
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.13.2
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.19.1
- go get github.com/mattn/goveralls
- export PATH=$(pwd)/bin:$PATH

Expand Down

0 comments on commit 1bf0f67

Please sign in to comment.