Skip to content

Commit

Permalink
Update golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lvmingze123 authored Oct 28, 2024
1 parent 640e793 commit 20ebe05
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions golangci-lint
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
linters:
enable:
- gofmt
- govet
- errcheck
- staticcheck
- gosimple
- ineffassign
- typecheck
- unused
- misspell
- gosec
- revive
- gocyclo

linters-settings:
gocyclo:
min-complexity: 15
revive:
rules:
- name: exported
arguments:
- "checkPrivateReceivers"
- "sayRepetitiveInsteadOfStutters"

run:
deadline: 5m
tests: true
skip-dirs:
- vendor/
- third_party/

issues:
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl

0 comments on commit 20ebe05

Please sign in to comment.