diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..aa3c86b --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,52 @@ +run: + timeout: 5m + output: + format: tab + +linters-settings: + govet: + check-shadowing: true + golint: + min-confidence: 0.1 + maligned: + suggest-new: true + goconst: + min-len: 2 + min-occurrences: 2 + misspell: + locale: US + lll: + line-length: 140 + gocritic: + enabled-tags: + - performance + - style + - experimental + disabled-checks: + - unnamedResult + - paramTypeCombine + +linters: + enable: + - megacheck + - revive + - govet + - unconvert + - megacheck + - unused + - gas + - gocyclo + - dupl + - misspell + - unparam + - typecheck + - ineffassign + - stylecheck + - gochecknoinits + - exportloopref + - gocritic + - nakedret + - gosimple + - prealloc + fast: false + disable-all: true