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: 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
@ -136,13 +128,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
@ -151,10 +142,8 @@ linters:
- noctx - noctx
- prealloc - prealloc
- reassign - reassign
# - rowserrcheck
- sqlclosecheck - sqlclosecheck
- unconvert - unconvert
# - wastedassign
fast: true fast: true
linters-settings: linters-settings:
@ -194,6 +183,7 @@ linters-settings:
excludes: excludes:
- G101 - G101
- G112 - G112
- G115
- G402 - G402
- G404 - G404
- G501 - G501
@ -202,6 +192,16 @@ linters-settings:
reassign: reassign:
patterns: patterns:
- ".*" - ".*"
issues:
exclude-dirs:
- ".*test.*"
- ".*mock.*"
- ".*example.*"
- ".*utils.*"
exclude-files:
- ".*Mock.*"
- ".*_mock.*"
``` ```
`.goreleaser.yml`: `.goreleaser.yml`: