Skip to content

Commit

Permalink
Update golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Aug 24, 2023
1 parent fa16f81 commit 4fc1d07
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
run:
timeout: 5m
skip-files:
- '(.+)_test\.go'

tests: false
linters:
disable-all: false
enable:
- funlen
- dogsled
- dupl
# - lll
- whitespace
- wsl
- exportloopref
disable:
- scopelint
- bodyclose
- contextcheck
- nilerr
- noctx
- rowserrcheck
- sqlclosecheck
- structcheck
- unparam
presets:
- bugs
- unused
# - style
fast: false
enable-all: true
disable:
- cyclop
- depguard
- exhaustivestruct
- exhaustruct
- forbidigo
- gci
- gochecknoglobals
- gochecknoinits
- godox
- goerr113
- gofumpt
- gomnd
- lll
- musttag
- nakedret
- nlreturn
- nolintlint
- nonamedreturns
- tagliatelle
- varnamelen
- wrapcheck
linters-settings:
estif:
min-complexity: 4
maligned:
suggest-new: true

0 comments on commit 4fc1d07

Please sign in to comment.