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: run:
timeout: 5m 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.*"