Skip to content

Commit

Permalink
Add golangci
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <dusan@dusanmalusev.dev>
  • Loading branch information
CodeLieutenant committed Apr 16, 2024
1 parent d60eabe commit 88c2a16
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 88c2a16

Please sign in to comment.