chore: sync golangci-lint config

main
sudo pacman -Syu 2024-05-11 10:22:59 +07:00
parent efd9fd7311
commit 65e4d59717
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.*"