chore: sync golangci-lint config

main
sudo pacman -Syu 2024-05-08 01:12:48 +07:00
parent 96c688bd2a
commit cb3b31df1d
1 changed files with 11 additions and 12 deletions

View File

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