From 88c2a16ffe99b9810f6d8f9fd75843042d56a3b1 Mon Sep 17 00:00:00 2001 From: Dusan Malusev Date: Tue, 16 Apr 2024 20:15:36 +0200 Subject: [PATCH] Add golangci Signed-off-by: Dusan Malusev --- .golangci.yml | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..1a34cc7 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,88 @@ +run: + concurrency: 16 + timeout: 5m + issues-exit-code: 1 + tests: true + go: '1.22' + modules-download-mode: mod + allow-parallel-runners: true + +output: + print-issued-lines: true + print-linter-name: true + uniq-by-line: true + sort-results: true + +linters: + disable-all: true + enable: + - asasalint + - bidichk + - bodyclose + - decorder + - dupl + - durationcheck + - errcheck + - errchkjson + - errname + - errorlint + - exportloopref + - forbidigo + - gofumpt + - ginkgolinter + - gocheckcompilerdirectives + - gocognit + - goconst + - gocritic + - gocyclo + - godox + - goerr113 + - goheader + - goimports + - gomodguard + - goprintffuncname + - gosec + - gosimple + - gosmopolitan + - govet + - grouper + - importas + - ineffassign + - interfacebloat + - loggercheck + - maintidx + - makezero + - mirror + - misspell + - nakedret + - nestif + - nilerr + - nilnil + - noctx + - nolintlint + - nonamedreturns + - nosprintfhostport + - paralleltest + - prealloc + - predeclared + - promlinter + - reassign + - revive + - rowserrcheck + - sqlclosecheck + - staticcheck + - stylecheck + - tenv + - testableexamples + - testpackage + - thelper + - tparallel + - unconvert + - unparam + - unused + - usestdlibvars + - wastedassign + - whitespace + - zerologlint + - prealloc + - perfsprint