Skip to content

Commit

Permalink
Updating golangci-lint config
Browse files Browse the repository at this point in the history
To handle deprecated linter and testing duplication

Signed-off-by: Matt Farina <matt@mattfarina.com>
  • Loading branch information
mattfarina committed Aug 9, 2022
1 parent 27a0910 commit 582a258
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@ run:
linters:
disable-all: true
enable:
- misspell
- structcheck
- govet
- staticcheck
- deadcode
- dupl
- errcheck
- gofmt
- goimports
- golint
- gosimple
- govet
- varcheck
- unparam
- ineffassign
- misspell
- nakedret
- structcheck
- gocyclo
- dupl
- goimports
- revive
- gosec
- gosimple
- typecheck
- unused
- varcheck

linters-settings:
gofmt:
simplify: true
dupl:
threshold: 400
threshold: 600

0 comments on commit 582a258

Please sign in to comment.