chore: sync golangci-lint

main
sudo pacman -Syu 2023-06-29 10:55:02 +07:00
parent f224e2150b
commit 39cd5e1c8e
1 changed files with 13 additions and 5 deletions

View File

@ -1,16 +1,14 @@
run: run:
timeout: 2m timeout: 5m
tests: false tests: false
skip-dirs: skip-dirs:
- ".*test.*" - ".*test.*"
- ".*mock.*" - ".*mock.*"
- ".*generated.*"
- ".*example.*" - ".*example.*"
- ".*utils.*" - ".*utils.*"
skip-files: skip-files:
- ".*Mock.*" - ".*Mock.*"
- ".*_mock.*" - ".*_mock.*"
- ".*_generated.*"
output: output:
sort-results: true sort-results: true
@ -35,11 +33,11 @@ linters:
- gocritic - gocritic
- goerr113 - goerr113
- gofumpt - gofumpt
- gomodguard
- gosec - gosec
- importas - importas
- makezero - makezero
- nilnil - nilnil
- noctx
- prealloc - prealloc
- reassign - reassign
# - rowserrcheck # - rowserrcheck
@ -69,16 +67,26 @@ linters-settings:
- unmarshal - unmarshal
- unreachable - unreachable
- unusedresult - unusedresult
staticcheck:
checks: ["all", "-SA1019"]
# Custom # Custom
gocritic: gocritic:
disabled-checks: disabled-checks:
- ifElseChain - ifElseChain
- singleCaseSwitch - singleCaseSwitch
- unnamedResult
- whyNoLint
enabled-tags: enabled-tags:
- diagnostic - diagnostic
- style - style
- performance
gosec: gosec:
excludes:
- G101
- G112
- G402
- G404
- G501
- G505
exclude-generated: true exclude-generated: true
reassign: reassign:
patterns: patterns: