Skip to content

Commit

Permalink
chore: sync golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Jun 29, 2023
1 parent f224e21 commit 39cd5e1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
run:
timeout: 2m
timeout: 5m
tests: false
skip-dirs:
- ".*test.*"
- ".*mock.*"
- ".*generated.*"
- ".*example.*"
- ".*utils.*"
skip-files:
- ".*Mock.*"
- ".*_mock.*"
- ".*_generated.*"

output:
sort-results: true
Expand All @@ -35,11 +33,11 @@ linters:
- gocritic
- goerr113
- gofumpt
- gomodguard
- gosec
- importas
- makezero
- nilnil
- noctx
- prealloc
- reassign
# - rowserrcheck
Expand Down Expand Up @@ -69,16 +67,26 @@ linters-settings:
- unmarshal
- unreachable
- unusedresult
staticcheck:
checks: ["all", "-SA1019"]
# Custom
gocritic:
disabled-checks:
- ifElseChain
- singleCaseSwitch
- unnamedResult
- whyNoLint
enabled-tags:
- diagnostic
- style
- performance
gosec:
excludes:
- G101
- G112
- G402
- G404
- G501
- G505
exclude-generated: true
reassign:
patterns:
Expand Down

0 comments on commit 39cd5e1

Please sign in to comment.