chore: sync golangci-lint config

main
sudo pacman -Syu 2024-05-08 01:17:25 +07:00
parent 5eace91514
commit 746055fd63
1 changed files with 12 additions and 13 deletions

View File

@ -1,14 +1,6 @@
run: run:
timeout: 20m timeout: 5m
tests: false tests: false
skip-dirs:
- ".*test.*"
- ".*mock.*"
- ".*example.*"
- ".*utils.*"
skip-files:
- ".*Mock.*"
- ".*_mock.*"
output: output:
sort-results: true sort-results: true
@ -25,13 +17,12 @@ linters:
- typecheck - typecheck
- unused - unused
# Custom # Custom
- err113
- errchkjson - errchkjson
- errname - errname
- errorlint - errorlint
- execinquery
- forcetypeassert - forcetypeassert
- gocritic - gocritic
- goerr113
- gofumpt - gofumpt
- gosec - gosec
- importas - importas
@ -40,10 +31,8 @@ linters:
- noctx - noctx
- prealloc - prealloc
- reassign - reassign
# - rowserrcheck
- sqlclosecheck - sqlclosecheck
- unconvert - unconvert
# - wastedassign
fast: true fast: true
linters-settings: linters-settings:
@ -91,3 +80,13 @@ linters-settings:
reassign: reassign:
patterns: patterns:
- ".*" - ".*"
issues:
exclude-dirs:
- ".*test.*"
- ".*mock.*"
- ".*example.*"
- ".*utils.*"
exclude-files:
- ".*Mock.*"
- ".*_mock.*"