Skip to content

Commit

Permalink
Updated linter settings
Browse files Browse the repository at this point in the history
Signed-off-by: Springcomp <[email protected]>
  • Loading branch information
springcomp committed Oct 27, 2024
1 parent a2e7b18 commit bc8f23a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ linters:
- errchkjson
- errname
# - errorlint
- execinquery
# - exhaustive
# - exhaustivestruct
# - exhaustruct
- exportloopref
- copyloopvar
# - forbidigo
# - forcetypeassert
# - funlen
Expand Down Expand Up @@ -68,3 +67,14 @@ linters:
- whitespace
# - wrapcheck
# - wsl

linters-settings:
depguard:
rules:
main:
files:
- $all
- "!$test"
allow:
- $gostd
- github.com/jmespath-community/go-jmespath
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ pprof-cpu:
install-dev-cmds:
go install golang.org/x/lint/golint@latest
go install golang.org/x/tools/cmd/stringer@latest
command -v golangci-lint || { curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.46.2; }
command -v golangci-lint || { curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.61.0; }

0 comments on commit bc8f23a

Please sign in to comment.