Skip to content

Commit

Permalink
fix(lint): fix lint warning on golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
craftslab committed May 15, 2024
1 parent cf9edb2 commit 6264ed7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ linters-settings:
local-prefixes: github.com/golangci/golangci-lint
golint:
min-confidence: 0
gomnd:
checks: argument,case,condition,return
govet:
shadow: true
settings:
Expand All @@ -43,7 +41,8 @@ linters-settings:
suggest-new: true
misspell:
locale: US

mnd:
checks: argument,case,condition,return
linters:
disable-all: true
enable:
Expand All @@ -56,7 +55,7 @@ linters:
- gocritic
- gocyclo
- gofmt
- gomnd
- mnd
- goprintffuncname
- gosec
- govet
Expand All @@ -67,7 +66,6 @@ linters:
- typecheck
- unconvert
- whitespace

# don't enable:
# - deadcode
# - depguard
Expand All @@ -84,7 +82,6 @@ linters:
# - unparam
# - unused
# - varcheck

issues:
exclude-dirs:
- external
Expand Down

0 comments on commit 6264ed7

Please sign in to comment.