diff --git a/.golangci.yml b/.golangci.yml index bcf249f..7672dbe 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,11 +18,10 @@ linters: - errchkjson - errname # - errorlint - - execinquery # - exhaustive # - exhaustivestruct # - exhaustruct - - exportloopref + - copyloopvar # - forbidigo # - forcetypeassert # - funlen @@ -68,3 +67,14 @@ linters: - whitespace # - wrapcheck # - wsl + +linters-settings: + depguard: + rules: + main: + files: + - $all + - "!$test" + allow: + - $gostd + - github.com/jmespath-community/go-jmespath \ No newline at end of file diff --git a/Makefile b/Makefile index 5984c9d..d8065f5 100644 --- a/Makefile +++ b/Makefile @@ -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; }