From 393801368b2f75914f6f5a2b7c76c9c76ccdd378 Mon Sep 17 00:00:00 2001 From: Anton Zadvorny Date: Mon, 26 Jun 2023 01:45:33 +0600 Subject: [PATCH] Add golangci-lint config --- .golangci.yml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .golangci.yml 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