Skip to content

Commit

Permalink
Add .golangci.yml config
Browse files Browse the repository at this point in the history
This allows this repo (or its forks) to be configured for golangCI linting platform.

This also provide settings for local golangci-lint tool. See also PR louketo#448.

Signed-off-by: Frederic BIDON <[email protected]>
  • Loading branch information
fredbi authored and Bruno Oliveira da Silva committed Feb 18, 2019
1 parent 1b7ee69 commit e217f34
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 60
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2

linters:
enable-all: true
disable:
- maligned
- unparam
- lll
- gochecknoinits
- gochecknoglobals

0 comments on commit e217f34

Please sign in to comment.