chore: sync golangci-lint config

main
sudo pacman -Syu 2024-08-22 01:47:27 +07:00
parent f7b058d8bf
commit 1d58b584d2
1 changed files with 12 additions and 12 deletions

View File

@ -112,14 +112,6 @@ jobs:
run:
timeout: 5m
tests: false
skip-dirs:
- ".*test.*"
- ".*mock.*"
- ".*example.*"
- ".*utils.*"
skip-files:
- ".*Mock.*"
- ".*_mock.*"
output:
sort-results: true
@ -136,13 +128,12 @@ linters:
- typecheck
- unused
# Custom
- err113
- errchkjson
- errname
- errorlint
- execinquery
- forcetypeassert
- gocritic
- goerr113
- gofumpt
- gosec
- importas
@ -151,10 +142,8 @@ linters:
- noctx
- prealloc
- reassign
# - rowserrcheck
- sqlclosecheck
- unconvert
# - wastedassign
fast: true
linters-settings:
@ -194,6 +183,7 @@ linters-settings:
excludes:
- G101
- G112
- G115
- G402
- G404
- G501
@ -202,6 +192,16 @@ linters-settings:
reassign:
patterns:
- ".*"
issues:
exclude-dirs:
- ".*test.*"
- ".*mock.*"
- ".*example.*"
- ".*utils.*"
exclude-files:
- ".*Mock.*"
- ".*_mock.*"
```
`.goreleaser.yml`: